Class: HamlLint::Linter::Indentation
- Inherits:
-
Linter
- Object
- Linter
- HamlLint::Linter::Indentation
- Includes:
- HamlLint::LinterRegistry
- Defined in:
- lib/haml_lint/linter/indentation.rb
Overview
Checks the character used for indentation.
Constant Summary collapse
- INDENT_REGEX =
Allowed leading indentation for each character type.
{ space: /^ *(?!\t)/, tab: /^\t*(?! )/, }.freeze
- LEADING_SPACES_REGEX =
/^( +)(?! )/
Instance Method Summary collapse
Methods included from HamlLint::LinterRegistry
extract_linters_from, included