Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/LineLength
Option
Description
max
Maximum number of columns a single line can have. (default 80)
Wrap lines at 80 characters. You can configure this amount via the max
option on the linter, e.g. by adding the following to your .haml-lint.yml:
linters:
LineLength:
max:100
Long lines are harder to read and usually indicative of complexity. You can
avoid them by splitting long attribute hashes on a comma, for example:
%tag{attr1:1,
attr2:2,
attr3:3}
This significantly improves readability.
HamlLint/LineLength
Option
Description
max
Maximum number of columns a single line can have. (default 80)
Wrap lines at 80 characters. You can configure this amount via the max
option on the linter, e.g. by adding the following to your .haml-lint.yml:
linters:
LineLength:
max:100
Long lines are harder to read and usually indicative of complexity. You can
avoid them by splitting long attribute hashes on a comma, for example:
%tag{attr1:1,
attr2:2,
attr3:3}
This significantly improves readability.
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/LineLength
Option
Description
max
Maximum number of columns a single line can have. (default 80)
Wrap lines at 80 characters. You can configure this amount via the max
option on the linter, e.g. by adding the following to your .haml-lint.yml:
linters:
LineLength:
max:100
Long lines are harder to read and usually indicative of complexity. You can
avoid them by splitting long attribute hashes on a comma, for example:
%tag{attr1:1,
attr2:2,
attr3:3}
This significantly improves readability.
HamlLint/LineLength
Option
Description
max
Maximum number of columns a single line can have. (default 80)
Wrap lines at 80 characters. You can configure this amount via the max
option on the linter, e.g. by adding the following to your .haml-lint.yml:
linters:
LineLength:
max:100
Long lines are harder to read and usually indicative of complexity. You can
avoid them by splitting long attribute hashes on a comma, for example:
%tag{attr1:1,
attr2:2,
attr3:3}
This significantly improves readability.
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/FinalNewline
Files should always have a final newline. This results in better diffs when
adding lines to the file, since SCM systems such as git won't think that you
touched the last line if you append to the end of a file.
You can customize whether or not a final newline exists with the present
option.
Configuration Option
Description
present
Whether a final newline should be present (default true)
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).
HamlLint/SpaceInsideHashAttributes
Check the style of hash attributes against one of two possible preferred
styles, space (default) or no_space:
Bad: inconsistent spacing inside hash attributes braceshaml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space style option: require a single space inside
hash attributes braceshaml
%tag{ foo: bar }
With no_space style option: require no space inside
hash attributes braceshaml
%tag{foo: bar}
This offers the ability to ensure consistency of Haml hash
attributes style with ruby hash literal style (compare with
the Style/SpaceInsideHashLiteralBraces cop in Rubocop).