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 #159] Fix a false positive for Performance/AncestorsInclude #160

Merged

Commits on Aug 26, 2020

  1. [Fix rubocop#159] Fix a false positive for `Performance/AncestorsIncl…

    …ude`
    
    Fixes rubocop#159.
    
    This PR fixes a false positive for `Performance/AncestorsInclude`
    when receiver is a variable.
    
    As the cop's example shows, this change mainly targets when the receiver
    is a constant. It can cause false negatives, but it may be less than
    false positives.
    And this change may lead to removing unsafe marked by rubocop#149.
    koic committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    e69d586 View commit details
    Browse the repository at this point in the history