aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-09-03 19:18:58 -0700
committerAdam Vandenberg2012-09-03 19:49:33 -0700
commit26f887d4ab02c9e1e061cb3537238fc5d6e81508 (patch)
tree35be104f08a8fd540779b225cc14c113c20964d2 /Library
parent33233f5039ed5421ddabe33410424c9c3898c576 (diff)
downloadbrew-26f887d4ab02c9e1e061cb3537238fc5d6e81508.tar.bz2
add audit for ENV.x11
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index b0efe040f..030555beb 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -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}\""