From 758a60155538820e11bea5c473c2171cd4df183f Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 25 Feb 2014 07:36:47 -0800 Subject: [PATCH] add audit for scons --- Library/Homebrew/cmd/audit.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 71445ca4d9..3f2a31774c 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