Skip to content

Instantly share code, notes, and snippets.

@maasha
Created April 16, 2015 15:04
Show Gist options
  • Save maasha/af1252a2fe46a7bf41d5 to your computer and use it in GitHub Desktop.
Save maasha/af1252a2fe46a7bf41d5 to your computer and use it in GitHub Desktop.
C: Cyclomatic complexity for exact_match? is too high. [7/6]
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