Merge pull request #3655 from MikeMcQuaid/formula-cop-hash-match-array

formula_cop: match any values in hash match.
This commit is contained in:
Mike McQuaid 2018-01-10 09:09:50 +00:00 committed by GitHub
commit b29213a663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@ module RuboCop
EOS
def_node_search :dependency_name_hash_match?, <<~EOS
(hash (pair ({str sym} %1) ({str sym array} _)))
(hash (pair ({str sym} %1) (...)))
EOS
# To compare node with appropriate Ruby variable