You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
haml-lint always uses 80 as the line length limit independent of the configured value:
klee@gonzales:~/eclipse/justworkshops$ haml-lint app/views/
app/views/devise/confirmations/new.html.haml:3 [W] Line is too long. [108/80]
This is my .haml-lint.yml (in the current working directory):
linters:
LineLength:
max: 400
This happens with haml-lint 0.6.0 and rubocop 0.25.0. I think one of the recent rubocop upgrades has caused this. IIRC, Rubocop has renamed/moved the parameter for their line length parameter. It has moved to Metrics/LineLength: Max.
The text was updated successfully, but these errors were encountered:
@oliverklee I don't see the issue you are describing with the latest version of haml-lint (0.6.0 at time of writing).
Are you sure you're not confusing the Rubocop LineLength cop with haml-lint's LineLength linter?
Rubocop's LineLength cop is disabled by default, since it doesn't make sense in the context of HAML documents since haml-lint auto-generates Ruby code to pass to Rubocop.
You need to add the following to your .haml-lint.yml configuration file (or whichever file you pass in via the -c option) in order to adjust the maximum line length allowed:
linters:
LineLength:
max: 400
I know you mentioned all of this in your issue, but I mention it here for posterity's sake. This definitely works as intended on my system. (is Eclipse running haml-lint in a different working directory?)
haml-lint always uses 80 as the line length limit independent of the configured value:
klee@gonzales:~/eclipse/justworkshops$ haml-lint app/views/
app/views/devise/confirmations/new.html.haml:3 [W] Line is too long. [108/80]
This is my .haml-lint.yml (in the current working directory):
linters:
LineLength:
max: 400
This happens with haml-lint 0.6.0 and rubocop 0.25.0. I think one of the recent rubocop upgrades has caused this. IIRC, Rubocop has renamed/moved the parameter for their line length parameter. It has moved to Metrics/LineLength: Max.
The text was updated successfully, but these errors were encountered: