audit: deprecate env :std/:userpaths for strict.

This should apply only for new formulae but we should start gradually
phasing it out for older ones too.
This commit is contained in:
Mike McQuaid 2017-01-03 22:12:21 +00:00
parent fc11f633b2
commit d7ab913f31

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 }