Merge pull request #1775 from MikeMcQuaid/deprecate-env-std-userpaths
audit: deprecate env :std/:userpaths for strict.
This commit is contained in:
commit
2fba252a36
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user