audit: skip an audit for mongodb

This commit is contained in:
Adam Vandenberg 2013-07-07 11:56:11 -07:00
parent 456621bb54
commit ebcf8be789

View File

@ -463,8 +463,10 @@ class FormulaAuditor
problem "No double 'without': Use `build.without? '#{$1}'` to check for \"--without-#{$1}\""
end
if line =~ /ARGV\.(?!(debug\?|verbose\?|value[\(\s]))/
problem "Use build instead of ARGV to check options"
unless f.name == 'mongodb' # Mongo writes out a Ruby script that uses ARGV
if line =~ /ARGV\.(?!(debug\?|verbose\?|value[\(\s]))/
problem "Use build instead of ARGV to check options"
end
end
if line =~ /def options/