Skip to content
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

[Fix #9928] Fix a false auto-correct for Layout/EndAlignment #9932

Merged

Commits on Jul 14, 2021

  1. [Fix rubocop#9928] Fix a false auto-correct for Layout/EndAlignment

    Fixes rubocop#9928.
    
    This PR fixes an infinite loop error and a false auto-correction behavior for `Layout/EndAlignment`
    when using operator methods and `EnforcedStyleAlignWith: variable`.
    This infinite loop error is due to an offense being registered but not auto-corrected.
    
    `EnforcedStyleAlignWith: variable` enforces alignment to variable,
    it should be auto-corrected to be aligned to variable even when operator method is used.
    koic committed Jul 14, 2021
    Copy the full SHA
    c21ced8 View commit details
    Browse the repository at this point in the history