class HamlLint::Linter::HtmlAttributes
Checks for the setting of attributes via HTML shorthand syntax on elements (e.g. `%tag(lang=en)`).
Public Instance Methods
visit_tag(node)
click to toggle source
# File lib/haml_lint/linter/html_attributes.rb, line 9 def visit_tag(node) return unless node.html_attributes? record_lint(node, "Prefer the hash attributes syntax (%tag{ lang: 'en' }) " \ 'over HTML attributes syntax (%tag(lang=en))') end