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

audit: prefer modifying ENV to using env or export


Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent 38a28285
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,10 @@ def audit_formula_text name, text
problems << " * Use \"\#{ENV.cxx}\" instead of hard-coding \"#{$3}\""
end
if text =~ /system\s+['"](env|export)/
problems << " * Use ENV instead of invoking '#{$1}' to modify the environment"
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