aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-25 07:36:47 -0800
committerAdam Vandenberg2014-02-25 20:29:08 -0800
commit758a60155538820e11bea5c473c2171cd4df183f (patch)
treec00d36ade4c28901072cc87f4d9c46301832212f /Library/Homebrew
parent9055c1e3617269e2d28f97addf4d56f6b57d348a (diff)
downloadbrew-758a60155538820e11bea5c473c2171cd4df183f.tar.bz2
add audit for scons
Diffstat (limited to 'Library/Homebrew')
-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 71445ca4d..3f2a31774 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -292,6 +292,10 @@ class FormulaAuditor
end
def audit_text
+ if text =~ /system\s+['"]scons/
+ problem "use \"scons, *args\" instead of \"system 'scons', *args\""
+ end
+
if text =~ /system\s+['"]xcodebuild/ && text !~ /SYMROOT=/
problem "xcodebuild should be passed an explicit \"SYMROOT\""
end