audit: warn about ARGV.include? '--devel'

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-02-16 23:43:07 -06:00
parent f1dc59ca11
commit 856fe669e2

View File

@ -84,8 +84,8 @@ def audit_formula_text name, text
problems << " * Trailing whitespace was found."
end
if text =~ /if\s+ARGV\.include\?\s+'--HEAD'/
problems << " * Use \"if ARGV.build_head?\" instead"
if text =~ /if\s+ARGV\.include\?\s+'--(HEAD|devel)'/
problems << " * Use \"if ARGV.build_#{$1.downcase}?\" instead"
end
if text =~ /make && make/