class RuboCop::Cop::Performance::CaseWhenSplat
def needs_reorder?(when_node)
def needs_reorder?(when_node) following_branches = when_node.parent.when_branches[(when_node.branch_index + 1)..] following_branches.any? do |when_branch| when_branch.conditions.any? do |condition| non_splat?(condition) end end end