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
Thanks for the report! The reproduction steps helped a lot. 🙇
This is reproducible on latest master. The corruption happens because an infinite correction loop between Layout/ExtraSpacing and Layout/SpaceAroundOperators, and subsequently Layout/ExtraSpacing and Layout/IndentationWidth. The loop eventually terminates after a configured number of iterations, leaving the code far off to the right.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!
Extra space characters are inserted when force-aligning equal signs, with if-unless-modifier disabled. Example input:
The above code block showcases an assignment of an if-block, inside which there's another assignment.
Possibly related issues:
Expected behavior
Remains unchanged.
Actual behavior
Scroll to the right and see that it inserted an absurd amount of space characters in between:
Steps to reproduce the problem
When given the following Ruby source,
and the following
.rubocop.yml
,run Rubocop with autofix.
RuboCop version
The text was updated successfully, but these errors were encountered: