Showing 4,018 of 4,054 total issues
Hash attribute should start with one space after the opening brace Open
.card.seedfacts--card{class: seed.plant_before.present? ? '' : 'text-muted'}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Line is too long. [143/120] Open
= f.select(:heirloom, Seed::HEIRLOOM_VALUES, {label: 'Heirloom?', wrapper: { class: 'required'}, required: true}, default: 'unknown')
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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.
Hash attribute should end with one space before the closing brace Open
%span{"aria-hidden" => "true"} ×
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Hash attribute should end with one space before the closing brace Open
.hide{id: "date--#{model.id}-#{field.to_s}"}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Hash attribute should end with one space before the closing brace Open
%a.editable{"data-form" => "#form--#{model.id}-#{field.to_s}", "data-display": display_field, href: "#", name: "#form--#{model.id}-#{field.to_s}"}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Hash attribute should start with one space after the opening brace Open
.dropdown-menu.dropdown-menu-xs{"aria-labelledby" => "post-edit-button"}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
The - symbol should have one space separating it from code Open
-elsif seed.finished?
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
HamlLint/SpaceBeforeScript
Separate Ruby script indicators (-
/=
) from their code with a single space.
Bad: no space between =
and some_expression
haml
=some_expression
Good
haml
= some_expression
Good
haml
- some_value = 'Hello World'
Ensuring space after -
/=
enforces a consistency that all HAML tags/script
indicators are separated from their inline content by a space. Since it is
optional to add a space after -
/=
but required when writing %tag
or
similar, the consistency is best enforced via a linter.
Line is too long. [140/120] Open
.col-md-6= f.number_field :days_until_maturity_min, label_as_placeholder: true, label: 'min', prepend: 'Days until maturity', min: 1
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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.
Classes should be listed before IDs (.modal should precede #modelSeedForm) Open
#modelSeedForm.modal.fade{"aria-hidden" => "true", "aria-labelledby" => "myModalLabel", role: "dialog", tabindex: "-1"}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
HamlLint/ClassesBeforeIds
Whether classes or ID attributes should be listed first in tags.
EnforcedStyle: 'class' (default)
Bad: ID before class
haml
%tag#id.class
Good
haml
%tag.class#id
These attributes should be listed in order of their specificity. Since the tag name (if specified) always comes first and has the lowest specificity, classes and then IDs should follow.
EnforcedStyle: 'id'
Bad: Class before ID
haml
%tag.class#id
Good
haml
%tag#id.class
As IDs are more significant than classes to the element they represent, IDs should be listed first and then classes should follow. This gives a more consistent vertical alignment of IDs.
Hash attribute should end with one space before the closing brace Open
.dropdown-menu.dropdown-menu-xs{"aria-labelledby" => "post-edit-button"}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Hash attribute should end with one space before the closing brace Open
%a.editable-date#description{"data-field" => "#date--#{model.id}-#{field.to_s}",
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Hash attribute should start with one space after the opening brace Open
.modal-dialog{role: "document"}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Hash attribute should start with one space after the opening brace Open
.btn-group.d-grid.flex-column{"aria-label" => "trade to", role: "group"}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Hash attribute should end with one space before the closing brace Open
%a.btn{"data-bs-target" => "#modelSeedForm", "data-bs-toggle" => "modal", href: ""}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
Line is too long. [121/120] Open
= link_to t('photos.show.harvest', crop: harvest.crop.name, owner: harvest.owner.to_s), harvest_path(harvest)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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.
Hash attribute should end with one space before the closing brace Open
.modal-dialog{role: "document"}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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 braces
haml
%tag{ foo: bar}
%tag{foo: bar }
%tag{ foo: bar }
With default space
style option: require a single space inside
hash attributes braces
haml
%tag{ foo: bar }
With no_space
style option: require no space inside
hash attributes braces
haml
%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).
The = symbol should have one space separating it from code Open
=t(title)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
HamlLint/SpaceBeforeScript
Separate Ruby script indicators (-
/=
) from their code with a single space.
Bad: no space between =
and some_expression
haml
=some_expression
Good
haml
= some_expression
Good
haml
- some_value = 'Hello World'
Ensuring space after -
/=
enforces a consistency that all HAML tags/script
indicators are separated from their inline content by a space. Since it is
optional to add a space after -
/=
but required when writing %tag
or
similar, the consistency is best enforced via a linter.
The = symbol should have one space separating it from code Open
=t('buttons.delete')
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
HamlLint/SpaceBeforeScript
Separate Ruby script indicators (-
/=
) from their code with a single space.
Bad: no space between =
and some_expression
haml
=some_expression
Good
haml
= some_expression
Good
haml
- some_value = 'Hello World'
Ensuring space after -
/=
enforces a consistency that all HAML tags/script
indicators are separated from their inline content by a space. Since it is
optional to add a space after -
/=
but required when writing %tag
or
similar, the consistency is best enforced via a linter.