aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorDominyk Tiller2017-08-31 21:33:09 +0100
committerDominyk Tiller2017-08-31 21:33:09 +0100
commitf301e5c4f4a3094aa9a1a1cf76a34efbd04b838d (patch)
tree70e7be34a3340e1e67e2feb6ad3278a710a0b7ec /Library/Homebrew/dev-cmd/audit.rb
parent0cb6307f2d5207c794760727df579cd8015b23e9 (diff)
downloadbrew-f301e5c4f4a3094aa9a1a1cf76a34efbd04b838d.tar.bz2
audit: add a nudge to remove ENV.java_cache
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index be332481c..3c6867f45 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -869,6 +869,10 @@ class FormulaAuditor
problem "Use \"depends_on :x11\" instead of \"ENV.x11\""
end
+ if line.include?("ENV.java_cache")
+ problem "In-formula ENV.java_cache usage has been deprecated & should be removed."
+ end
+
# Avoid hard-coding compilers
if line =~ %r{(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?(gcc|llvm-gcc|clang)['" ]}
problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{Regexp.last_match(3)}\""