Class: ThemeCheck::ValidHTMLTranslation
- Defined in:
- lib/theme_check/checks/valid_html_translation.rb
Constant Summary
Constants inherited from Check
Check::CATEGORIES, Check::SEVERITIES, Check::SEVERITY_VALUES
Instance Attribute Summary
Attributes inherited from Check
#ignored_patterns, #offenses, #options, #theme
Instance Method Summary collapse
Methods inherited from JsonCheck
Methods included from ChecksTracking
Methods inherited from Check
#==, #add_offense, all, can_disable, #can_disable?, categories, #categories, category, #code_name, doc, #doc, docs_url, #ignore!, #ignored?, #severity, severity, #severity=, #severity_value, severity_value, single_file, #single_file?, #to_s, #whole_theme?
Methods included from JsonHelpers
Instance Method Details
#on_file(file) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/theme_check/checks/valid_html_translation.rb', line 11 def on_file(file) return unless file.name.start_with?("locales/") return unless file.content.is_a?(Hash) visit_nested(file.content) end |