audit: allow ARGV.find

This fixes a false positive for mongodb.

Closes Homebrew/homebrew#18370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Tobias Lidskog 2013-03-10 09:37:05 +01:00 committed by Adam Vandenberg
parent a4a795c096
commit 06f98132d3

View File

@ -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