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 12300] Fix an error for Style/IdenticalConditionalBranches #12304

Merged

Commits on Oct 23, 2023

  1. [Fix 12300] Fix an error for Style/IdenticalConditionalBranches

    Fixes rubocop#12300.
    
    This PR fixes an error for `Style/IdenticalConditionalBranches`
    when `if`...`else` with identical leading lines and using index assign.
    
    In RuboCop, the `send` node is used instead of the `indexasgn` node, so `name` cannot be used.
    https://github.com/rubocop/rubocop-ast/blob/v1.29.0/lib/rubocop/ast/node/indexasgn_node.rb
    koic committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    1725bdc View commit details
    Browse the repository at this point in the history