aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-22 20:59:43 -0700
committerAdam Vandenberg2012-08-22 20:59:43 -0700
commit2566ec85cb2e8587427e7f7234e41bc3642e199e (patch)
tree4688026dc19589b33dccb8fa59f87ce3f588702e /Library/Homebrew/cmd
parent78dcafaa10fa37b07bb519f3b668a5c761376abb (diff)
downloadbrew-2566ec85cb2e8587427e7f7234e41bc3642e199e.tar.bz2
audit: complain until we use option and build
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 6e3dce11e..39fd8e498 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -351,11 +351,6 @@ class FormulaAuditor
problem "xcodebuild should be passed an explicit \"SYMROOT\""
end
- # using ARGV.flag? for formula options is generally a bad thing
- if text =~ /ARGV\.flag\?/
- problem "Use 'ARGV.include?' instead of 'ARGV.flag?'"
- end
-
# Avoid hard-coding compilers
if text =~ %r[(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?(gcc|llvm-gcc|clang)['" ]]
problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{$3}\""
@@ -370,7 +365,15 @@ class FormulaAuditor
end
if text =~ /version == ['"]HEAD['"]/
- problem "Use 'ARGV.build_head?' instead of inspecting 'version'"
+ problem "Use 'build.head?' instead of inspecting 'version'"
+ end
+
+ if text =~ /ARGV/
+ problem "Use build instead of ARGV to check options."
+ end
+
+ if text =~ /def options/
+ problem "Use new-style option definitions."
end
end