diff options
| author | Adam Vandenberg | 2010-10-08 20:11:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-08 20:12:11 -0700 |
| commit | 48cdd7bc87029e4a080ebe393441fe3f70eff831 (patch) | |
| tree | 1a68e808e9a876197afe7ab3289ad1f8feb49a4a | |
| parent | d501b256e5a81176b4efe0b3f008ddf090b29b39 (diff) | |
| download | brew-48cdd7bc87029e4a080ebe393441fe3f70eff831.tar.bz2 | |
brew-audit - check for include? --HEAD
| -rwxr-xr-x | Library/Contributions/examples/brew-audit.rb | 4 |
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 |
