add audit for ENV.x11
This commit is contained in:
parent
33233f5039
commit
26f887d4ab
@ -352,6 +352,10 @@ class FormulaAuditor
|
||||
problem "xcodebuild should be passed an explicit \"SYMROOT\""
|
||||
end
|
||||
|
||||
if text =~ /ENV\.x11/
|
||||
problem "Use \"depends_on :x11\" instead of \"ENV.x11\""
|
||||
end
|
||||
|
||||
# Avoid hard-coding compilers
|
||||
if text =~ %r[(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?(gcc|llvm-gcc|clang)['" ]]
|
||||
problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{$3}\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user