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
The auto-correct of the Layout/BlockEndNewline cop moves closing block
delimiters to a separate line.
When doing this, the auto-correct was not taking into account the
whitespaces that seperate the code of the block from it's delimiter.
Therefore it introduced trailing whitespaces when auto-correcting.
Fixesrubocop#4866
The auto-correct of the Layout/BlockEndNewline cop moves closing block
delimiters to a separate line.
When doing this, the auto-correct was not taking into account the
whitespaces that seperate the code of the block from it's delimiter.
Therefore it introduced trailing whitespaces when auto-correcting.
Fixes#4866
Expected behavior
The Layout/BlockEndNewline cop is introducing trailing whitespaces when doing the auto-correct.
Here is a diff of the rspec test for that cop. I would expect that it doesn't introduce trailing whitespaces:
Actual behavior
Running the auto-correct introduces trailing whitespaces.
Steps to reproduce the problem
Adjust the test like done above.
RuboCop version
0.49.1 as well as master branch
The text was updated successfully, but these errors were encountered: