class HamlLint::Linter::NoPlaceholders

Checks that placeholder attributes are not used.

Constants

HASH_REGEXP
HTML_REGEXP
MSG

Public Instance Methods

visit_tag(node) click to toggle source
# File lib/haml_lint/linter/no_placeholders.rb, line 12
def visit_tag(node)
  return unless node.hash_attributes_source =~ HASH_REGEXP || node.html_attributes_source =~ HTML_REGEXP

  record_lint(node, MSG)
end