audit: prefer ARGV.build_head? to inspecting 'version'
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
6a94df360a
commit
9ebb1a3d08
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user