audit: add a nudge to remove ENV.java_cache

This commit is contained in:
Dominyk Tiller 2017-08-31 21:33:09 +01:00
parent 0cb6307f2d
commit f301e5c4f4
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -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)}\""