Skip to content
Snippets Groups Projects
Commit 9ebb1a3d authored by Jack Nagel's avatar Jack Nagel
Browse files

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


Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent 6a94df36
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment