New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ForceEqualSignAlignment + SpaceAroundOperators causes infinite loop #7422
Comments
Similar problem: Equals signs are aligned (operator aligned on the right), no complain from rubocop.
Plus sign and equal sign are aligned (operator aligned on the left), rubocop complaining (
ConfigWhich is the default:
|
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! |
unstale |
… `Layout/SpaceAroundOperators`.
[Fix #7422] Treat `casgn` nodes like other assignment nodes in `Layout/SpaceAroundOperators`
Expected behavior
It should not report an error if more than a single space is around the operator when
ForceEqualSignAlignment
is in place.Actual behavior
The cop forces a single space around the operator even when
ForceEqualSignAlignment
is in place, generating an infinite loop.Steps to reproduce the problem
.rubocop.yml
sample.rb
RuboCop version
ps: I may tackle this issue when expected behavior is confirmed :)
The text was updated successfully, but these errors were encountered: