Skip to content

Commit

Permalink
Ignore ABC size for NodePattern#compile_any_order
Browse files Browse the repository at this point in the history
  • Loading branch information
buehmann authored and bbatsov committed Oct 25, 2019
1 parent f7baecd commit b11eb59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rubocop/node_pattern.rb
Expand Up @@ -429,6 +429,7 @@ def compile_ellipsis
[0..Float::INFINITY, 'true']
end

# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/MethodLength
def compile_any_order(capture_all = nil)
rest = capture_rest = nil
Expand All @@ -448,6 +449,7 @@ def compile_any_order(capture_all = nil)
end
end
# rubocop:enable Metrics/MethodLength
# rubocop:enable Metrics/AbcSize

def insure_same_captures(enum, what)
return to_enum __method__, enum, what unless block_given?
Expand Down

0 comments on commit b11eb59

Please sign in to comment.