add audit for scons

This commit is contained in:
Adam Vandenberg 2014-02-25 07:36:47 -08:00
parent 9055c1e361
commit 758a601555

View File

@ -292,6 +292,10 @@ class FormulaAuditor
end end
def audit_text 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=/ if text =~ /system\s+['"]xcodebuild/ && text !~ /SYMROOT=/
problem "xcodebuild should be passed an explicit \"SYMROOT\"" problem "xcodebuild should be passed an explicit \"SYMROOT\""
end end