-
-
Save maasha/af1252a2fe46a7bf41d5 to your computer and use it in GitHub Desktop.
C: Cyclomatic complexity for exact_match? is too high. [7/6]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def exact_match?(record) | |
keys = @keys || record.keys | |
return true if @keys_only && exact_match_keys?(keys) | |
return true if @vals_only && exact_match_values?(record, keys) | |
return true if exact_match_key_values?(record, keys) | |
false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment