Class: ThemeCheck::ValidJson
- Defined in:
- lib/theme_check/checks/valid_json.rb
Constant Summary
Constants inherited from Check
Check::CATEGORIES, Check::SEVERITIES
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
Methods inherited from JsonCheck
Methods included from ChecksTracking
Methods inherited from Check
all, can_disable, #can_disable?, category, #category, #code_name, doc, #doc, #ignore!, #ignored?, #severity, severity, #to_s, #unignore!
Methods included from JsonHelpers
Instance Method Details
#on_file(file) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/theme_check/checks/valid_json.rb', line 7 def on_file(file) if file.parse_error = format_json_parse_error(file.parse_error) add_offense(, template: file) end end |