brew-audit - check for include? --HEAD

This commit is contained in:
Adam Vandenberg 2010-10-08 20:11:40 -07:00
parent d501b256e5
commit 48cdd7bc87

View File

@ -84,6 +84,10 @@ def audit_formula_text text
problems << " * Trailing whitespace was found." problems << " * Trailing whitespace was found."
end end
if text =~ /if\s+ARGV\.include\?\s+'--HEAD'/
problems << " * Use \"if ARGV.build_head?\" instead"
end
return problems return problems
end end