aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTobias Lidskog2013-03-10 09:37:05 +0100
committerAdam Vandenberg2013-03-10 12:13:50 -0700
commit5da9cd87547d43d6f874268eac31c65bad5dab4e (patch)
treeb6e7f63a02ecf0b02c8ddf559e58b5268a4e1e79 /Library
parent6ba5dafaf1ddd44942e28368656d9099ed4d9650 (diff)
downloadhomebrew-5da9cd87547d43d6f874268eac31c65bad5dab4e.tar.bz2
audit: allow ARGV.find
This fixes a false positive for mongodb. Closes #18370. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 74f18c367..8bea45192 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -389,7 +389,7 @@ class FormulaAuditor
problem "Reference '#{$1}' without dashes"
end
- if text =~ /ARGV\.(?!(debug|verbose|find)\?)/
+ if text =~ /ARGV\.(?!(debug\?|verbose\?|find[\(\s]))/
problem "Use build instead of ARGV to check options"
end