From 48cdd7bc87029e4a080ebe393441fe3f70eff831 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 8 Oct 2010 20:11:40 -0700 Subject: brew-audit - check for include? --HEAD --- Library/Contributions/examples/brew-audit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3