diff options
| author | Mike McQuaid | 2018-01-10 09:09:50 +0000 |
|---|---|---|
| committer | GitHub | 2018-01-10 09:09:50 +0000 |
| commit | b29213a663c547c64b1cda55f622249c90320604 (patch) | |
| tree | f7f746d60d9768d5c1428cc92c779d398fce48b6 | |
| parent | 69b38dd9db233c8ae2554b62dcd246e46d6d254e (diff) | |
| parent | 7f2fda104a47b696b4333e424d078b28860cb5c3 (diff) | |
| download | brew-b29213a663c547c64b1cda55f622249c90320604.tar.bz2 | |
Merge pull request #3655 from MikeMcQuaid/formula-cop-hash-match-array
formula_cop: match any values in hash match.
| -rw-r--r-- | Library/Homebrew/rubocops/extend/formula_cop.rb | 2 |
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 |
