Class: ThemeCheck::ValidHTMLTranslation
- Defined in:
- lib/theme_check/checks/valid_html_translation.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, category, #category, #code_name, doc, #doc, #ignore!, #ignored?, severity, #severity, #to_s, #unignore!
Methods included from JsonHelpers
Instance Method Details
#on_file(file) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/theme_check/checks/valid_html_translation.rb', line 9 def on_file(file) return unless file.name.starts_with?("locales/") return unless file.content.is_a?(Hash) visit_nested(file.content) end |