From 06f98132d309284c6b23311ceaeb0c539dcdd7c3 Mon Sep 17 00:00:00 2001 From: Tobias Lidskog Date: Sun, 10 Mar 2013 09:37:05 +0100 Subject: [PATCH] audit: allow ARGV.find This fixes a false positive for mongodb. Closes Homebrew/homebrew#18370. Signed-off-by: Adam Vandenberg --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 74f18c367e..8bea451926 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