Class: HamlLint::Linter::AlignmentTabs
- Inherits:
-
Linter
- Object
- Linter
- HamlLint::Linter::AlignmentTabs
- Defined in:
- lib/haml_lint/linter/alignment_tabs.rb
Overview
Checks for tabs that are placed for alignment of tag content
Constant Summary collapse
- REGEX =
/[^\s*]\t+/
Instance Method Summary collapse
Instance Method Details
#visit_tag(node) ⇒ Object
8 9 10 11 12 |
# File 'lib/haml_lint/linter/alignment_tabs.rb', line 8 def visit_tag(node) if REGEX.match?(node.source_code) record_lint(node, 'Avoid using tabs for alignment') end end |