Skip to content
Snippets Groups Projects
Commit 2fba252a authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1775 from MikeMcQuaid/deprecate-env-std-userpaths

audit: deprecate env :std/:userpaths for strict.
parents fc11f633 d7ab913f
No related branches found
No related tags found
No related merge requests found
......@@ -1048,6 +1048,8 @@ class FormulaAuditor
return unless @strict
problem "`#{$1}` in formulae is deprecated" if line =~ /(env :(std|userpaths))/
if line =~ /system ((["'])[^"' ]*(?:\s[^"' ]*)+\2)/
bad_system = $1
unless %w[| < > & ; *].any? { |c| bad_system.include? c }
......
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