class HamlLint::Linter::InlineStyles

Detects use of inline `style` attributes on any tag

Constants

MESSAGE

Public Instance Methods

visit_tag(node) click to toggle source
# File lib/haml_lint/linter/inline_styles.rb, line 10
def visit_tag(node)
  if node.has_hash_attribute?(:style)
    record_lint(node, MESSAGE)
  end
end