Skip to content
Snippets Groups Projects
Commit 06f98132 authored by Tobias Lidskog's avatar Tobias Lidskog Committed by Adam Vandenberg
Browse files

audit: allow ARGV.find


This fixes a false positive for mongodb.

Closes Homebrew/homebrew#18370.

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent a4a795c0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment