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
I'm not sure if the only solution is to add Layout/CommentIndentation to the list of recommended cops to disable in https://github.com/Shopify/erb-lint#Rubocop or if something better can be done to avoid the problem altogether.
The text was updated successfully, but these errors were encountered:
Consider the following ERB:
The second line is wrong, and correctly gets caught by erb-lint, failing with
Bad ERB comment syntax. Should be <%# without a space between.
However, if you also have Rubocop enabled with Layout/CommentIndentation, for example with this erb-lint config:
The test file above gets corrected to:
Which is definitely wrong!
I'm not sure if the only solution is to add
Layout/CommentIndentation
to the list of recommended cops to disable in https://github.com/Shopify/erb-lint#Rubocop or if something better can be done to avoid the problem altogether.The text was updated successfully, but these errors were encountered: