class Playgroundbook::PageManifestLinter

A linter for verifying the contents of a page's Manifest.plist

Constants

SUPPORTED_LIVE_VIEW_MODES

Public Instance Methods

lint() click to toggle source
Calls superclass method Playgroundbook::ManifestLinter#lint
# File lib/linter/page_manifest_linter.rb, line 9
def lint
  super()

  live_view_mode = manifest_plist_contents["LiveViewMode"]
  unless live_view_mode.nil?
    fail_lint "Unsopported LiveViewMoode '#{live_view_mode}'" unless SUPPORTED_LIVE_VIEW_MODES.include? live_view_mode
  end
end