audit: prefer ARGV.build_head? to inspecting 'version'

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-06-17 18:01:22 -05:00
parent 6a94df360a
commit 9ebb1a3d08

View File

@ -133,6 +133,10 @@ def audit_formula_text name, text
problems << " * Use ENV instead of invoking '#{$1}' to modify the environment"
end
if text =~ /version == ['"]HEAD['"]/
problems << " * Use 'ARGV.build_head?' instead of inspecting 'version'"
end
return problems
end