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
Layout/SpaceAroundOperators currently does not see comments as breaks for indentation, and in fact there's a test that would fail otherwise (currently only blank lines are seen as breaks for alignment purposes):
@koic I was looking into fixing this and I can make it consider comments to be breaks as well, but this will change the behaviour and break tests (for Layout/ExtraSpacing as well). So this probably should remain as is. Thoughts? FWIW the comment node about AllowForAlignment is probably confusing given the behaviour.
Expected behavior
The alignment should be preserved.
Actual behavior
Alignment is preserved only in some lines.
Steps to reproduce the problem
Add this two files:
scene_title.rb
.rubocop.yml
Run auto-correcting:
Alignment is not preserved from this line
$game_temp = Game_Temp.new
to this line$game_variables = Game_Variables.new
.scene_title.rb (auto-corrected)
RuboCop version
The text was updated successfully, but these errors were encountered: