aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-10-08 20:11:40 -0700
committerAdam Vandenberg2010-10-08 20:12:11 -0700
commit48cdd7bc87029e4a080ebe393441fe3f70eff831 (patch)
tree1a68e808e9a876197afe7ab3289ad1f8feb49a4a
parentd501b256e5a81176b4efe0b3f008ddf090b29b39 (diff)
downloadbrew-48cdd7bc87029e4a080ebe393441fe3f70eff831.tar.bz2
brew-audit - check for include? --HEAD
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index 3a0407fe0..28e966f7c 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -84,6 +84,10 @@ def audit_formula_text text
problems << " * Trailing whitespace was found."
end
+ if text =~ /if\s+ARGV\.include\?\s+'--HEAD'/
+ problems << " * Use \"if ARGV.build_head?\" instead"
+ end
+
return problems
end