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:
parent
a4a795c096
commit
06f98132d3
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user