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 have enabled the MultilineOperationIndentation with EnforcedStyle: aligned and using Rubocop Version 0.36.0.
When i span an operation across multiple lines i can indent the subsequent lines by 2 spaces. But when i open a second block there, it looks like Rubocop gets confused and brings a warning when i do this there.
Example to show what i mean:
## This is ok:a=b.mapdo |c|
c +
bend## Invalid:a=b.mapdo |c|
c +
b + # This is allowedddox +
y# "Align the operands of an expression spanning multiple lines." at this lineendend## Second example as valid code:a=b.mapdo |c|
c +
b +
ddox +
y# No 2 space indentationendend
This is occurs in version 0.37.1.
The text was updated successfully, but these errors were encountered:
hoffi
changed the title
MultilineOperationIndentation-Cop wants different indentation when using multiple blocks
MultilineOperationIndentation wants different indentation when using multiple blocks
Feb 11, 2016
I have enabled the
MultilineOperationIndentation
withEnforcedStyle: aligned
and using Rubocop Version 0.36.0.When i span an operation across multiple lines i can indent the subsequent lines by 2 spaces. But when i open a second block there, it looks like Rubocop gets confused and brings a warning when i do this there.
Example to show what i mean:
This is occurs in version 0.37.1.
The text was updated successfully, but these errors were encountered: