From 5da9cd87547d43d6f874268eac31c65bad5dab4e Mon Sep 17 00:00:00 2001 From: Tobias Lidskog Date: Sun, 10 Mar 2013 09:37:05 +0100 Subject: audit: allow ARGV.find This fixes a false positive for mongodb. Closes #18370. Signed-off-by: Adam Vandenberg --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3