diff options
| author | Tobias Lidskog | 2013-03-10 09:37:05 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-03-10 12:13:50 -0700 |
| commit | 06f98132d309284c6b23311ceaeb0c539dcdd7c3 (patch) | |
| tree | 957028bd29f9184bb988456f704278f35e829106 /Library | |
| parent | a4a795c09684dcd744e6108a1bc819e390c89957 (diff) | |
| download | brew-06f98132d309284c6b23311ceaeb0c539dcdd7c3.tar.bz2 | |
audit: allow ARGV.find
This fixes a false positive for mongodb.
Closes Homebrew/homebrew#18370.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
