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 #8781] Change how comments are determined for Style/SafeNavigation autocorrection #8813

Merged
merged 1 commit into from Oct 17, 2020

Commits on Oct 16, 2020

  1. [Fix rubocop#8781] Change how comments are determined for `Style/Safe…

    …Navigation` autocorrection.
    
    Previously, every comment within the source range of the `if` being auto-corrected was captured and moved above the rewritten line. This resulted in comment duplication, as some comments belonged to internal blocks within the if. This change only considers line ranges between internal if blocks as entry points for comments that are allowed to be moved.
    dvandersluis committed Oct 16, 2020
    Copy the full SHA
    c5cbacd View commit details
    Browse the repository at this point in the history