formula_cop: match any values in hash match.

e.g. match an array or symbol or string.
This commit is contained in:
Mike McQuaid 2018-01-09 20:08:22 +00:00
parent 9464616897
commit 7f2fda104a

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