formula_cop: match any values in hash match.
e.g. match an array or symbol or string.
This commit is contained in:
parent
9464616897
commit
7f2fda104a
@ -214,7 +214,7 @@ module RuboCop
|
|||||||
EOS
|
EOS
|
||||||
|
|
||||||
def_node_search :dependency_name_hash_match?, <<~EOS
|
def_node_search :dependency_name_hash_match?, <<~EOS
|
||||||
(hash (pair ({str sym} %1) ({str sym array} _)))
|
(hash (pair ({str sym} %1) (...)))
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
# To compare node with appropriate Ruby variable
|
# To compare node with appropriate Ruby variable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user