From c0ea86c4992b5713bbc76127af4d2f33fe4d5a0e Mon Sep 17 00:00:00 2001 From: Malcolm O'Hare Date: Sun, 25 Feb 2024 08:58:02 -0500 Subject: [PATCH] ignore complexity rubocop --- lib/rspec/support/method_signature_verifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rspec/support/method_signature_verifier.rb b/lib/rspec/support/method_signature_verifier.rb index 56af7851..990ba7c7 100644 --- a/lib/rspec/support/method_signature_verifier.rb +++ b/lib/rspec/support/method_signature_verifier.rb @@ -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, Metrics/PerceivedComplexity 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)