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

Add option to allow case equality when the receiver is a constant #7861

Merged

Commits on Apr 9, 2020

  1. Add option to allow case equality when the receiver is a constant

    For some constant, specially direct subclasses of `BasicObject`, using
    `is_a?` is not an option since `BasicObject` doesn't respond to that
    method.
    
    In those cases it would be interesting to allow this config so apps can
    opt-out that cop only when the receiver is a constant.
    rafaelfranca committed Apr 9, 2020
    Copy the full SHA
    c48064f View commit details
    Browse the repository at this point in the history