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

Support pattern matching for Style/IdenticalConditionalBranches cop #9855

Commits on Jun 5, 2021

  1. Support pattern matching for Style/IdenticalConditionalBranches cop

    This PR supports Ruby 2.7's pattern matching syntax for `Style/IdenticalConditionalBranches` cop.
    
    This `Style/IdenticalConditionalBranches` cop is detecting for `if` and` case`.
    Therefore, I think about detecting `case-match` with the cop instead of a new cop.
    
    It may also be suitable for the cop's role of detecting duplicated conditional branches.
    koic committed Jun 5, 2021
    Copy the full SHA
    21a535d View commit details
    Browse the repository at this point in the history