Set Layout/First_#{}_LineBreak
lints as disabled in rubocop config
#536
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Set 3 of the 4
Layout/First_#{}_LineBreak
lints asenabled: false
inconfig/forced_rubocop_config.yml
Leaving 1 of the 4 as is:
Why
These lints run into a conflict with MultilinePipe
One example of this is that the autocorrect changes:
to:
It is quite possible that this is showcasing a lack of understanding I have of haml syntax/best practice but I wasn't able to figure out a workaround that can satisfy both lints.
I left out Layout/FirstMethodParameterLineBreak because in order to trigger this (which I couldn't figure out how to do without triggering a syntax error) you are probably doing something you shouldn't in the first place (defining a method inside a haml file is something that comes across to me as bad practice) and an additional safeguard against this is probably a good thing.