diff options
| author | Mike McQuaid | 2017-01-03 22:12:21 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-01-03 22:12:21 +0000 |
| commit | d7ab913f312a3dd0852ba874d7585c4aad3c6166 (patch) | |
| tree | db2f0675de1581d4b46da1685dba5b0ef7b16484 /Library/Homebrew/dev-cmd | |
| parent | fc11f633b29e6a2c9c4d49d5fd5452549b328193 (diff) | |
| download | brew-d7ab913f312a3dd0852ba874d7585c4aad3c6166.tar.bz2 | |
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.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 74ba987f6..601031d6e 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -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 } |
