Skip to content

Commit

Permalink
ignore complexity rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmohare committed Feb 25, 2024
1 parent ef33ab7 commit d61bf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/support/method_signature_verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def invalid_kw_args_from(given_kw_args)
end

# Considering the arg types, are there kw_args?
def has_kw_args_in?(args)
def has_kw_args_in?(args) # rubocop:disable Metrics/CyclomaticComplexity
if RubyFeatures.kw_arg_separation?
# If the last arg is a hash, depending on the signature it could be kw_args or a positional parameter.
return false unless Hash === args.last && could_contain_kw_args?(args)
Expand Down

0 comments on commit d61bf73

Please sign in to comment.