Class: ThemeCheck::JsonCheck
- Extended by:
- ChecksTracking
- Defined in:
- lib/theme_check/json_check.rb
Direct Known Subclasses
DefaultLocale, MatchingTranslations, ValidHTMLTranslation, ValidJson
Constant Summary
Constants inherited from Check
Check::CATEGORIES, Check::SEVERITIES
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
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
#add_offense(message, markup: nil, line_number: nil, template: nil) ⇒ Object
7 8 9 |
# File 'lib/theme_check/json_check.rb', line 7 def add_offense(, markup: nil, line_number: nil, template: nil) offenses << Offense.new(check: self, message: , markup: markup, line_number: line_number, template: template) end |