diff options
| author | Adam Vandenberg | 2010-10-08 20:11:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-08 20:12:11 -0700 |
| commit | 9b8206f7c2524ea7d2b9f10d6bca60db8f464761 (patch) | |
| tree | 940e5e67e5cb9864d2e252ddf2f7c89b46355acf /Library | |
| parent | 09a02645fcf1aa3313f631174016e36917539a6e (diff) | |
| download | homebrew-9b8206f7c2524ea7d2b9f10d6bca60db8f464761.tar.bz2 | |
brew-audit - check for include? --HEAD
Diffstat (limited to 'Library')
| -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 |
