aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2018-01-09 20:08:22 +0000
committerMike McQuaid2018-01-09 20:08:22 +0000
commit7f2fda104a47b696b4333e424d078b28860cb5c3 (patch)
tree145f73b08f1afede3c928354b05830ed25203f94 /Library
parent9464616897c9ce73e3cd6d571390797aa554e41c (diff)
downloadbrew-7f2fda104a47b696b4333e424d078b28860cb5c3.tar.bz2
formula_cop: match any values in hash match.
e.g. match an array or symbol or string.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/rubocops/extend/formula_cop.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/rubocops/extend/formula_cop.rb b/Library/Homebrew/rubocops/extend/formula_cop.rb
index 71a5caf74..de369a0aa 100644
--- a/Library/Homebrew/rubocops/extend/formula_cop.rb
+++ b/Library/Homebrew/rubocops/extend/formula_cop.rb
@@ -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