Class: ThemeCheck::DefaultLocale
- Defined in:
- lib/theme_check/checks/default_locale.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?, categories, #categories, category, #code_name, #doc, doc, docs_url, #ignore!, #ignored?, #severity, severity, #to_s, #unignore!
Methods included from JsonHelpers
Instance Method Details
#on_end ⇒ Object
8 9 10 11 |
# File 'lib/theme_check/checks/default_locale.rb', line 8 def on_end return if @theme.default_locale_json add_offense("Default translation file not found (for example locales/en.default.json)") end |