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
Running auto-correct on our files. Narrowed down this issue to the Style/Next cop. If the if/end block is not properly indented, when it changes to next, the line above the previous 'end' is truncated by however much the indenting was off.
Expected behavior
Expect an auto-correction and indenting is correct
Since the indenting of end was not aligned correctly with its if, when it changes to next, it truncates the last letter of the previous line. In this case, causing a syntax error
Running auto-correct on our files. Narrowed down this issue to the
Style/Next
cop. If theif/end
block is not properly indented, when it changes tonext
, the line above the previous 'end' is truncated by however much the indenting was off.Expected behavior
Expect an auto-correction and indenting is correct
Actual behavior
Since the indenting of
end
was not aligned correctly with itsif
, when it changes to next, it truncates the last letter of the previous line. In this case, causing a syntax errorSteps to reproduce the problem
$rubocop --only Next -a test_file.rb
RuboCop version
The text was updated successfully, but these errors were encountered: