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

audit: deprecate env :std/:userpaths for strict.
This commit is contained in:
Mike McQuaid 2017-01-04 10:31:31 +00:00 committed by GitHub
commit 2fba252a36

View File

@ -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 }