Add audit check for system "xcodebuild"
This commit is contained in:
parent
c72f9a469d
commit
26c71b19f6
@ -296,8 +296,12 @@ class FormulaAuditor
|
||||
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\""
|
||||
if text =~ /system\s+['"]xcodebuild/
|
||||
problem %{use "xcodebuild *args" instead of "system 'xcodebuild', *args"}
|
||||
end
|
||||
|
||||
if text =~ /xcodebuild[ (]["'*]/ && text !~ /SYMROOT=/
|
||||
problem %{xcodebuild should be passed an explicit "SYMROOT"}
|
||||
end
|
||||
|
||||
if text =~ /Formula\.factory\(/
|
||||
|
Loading…
x
Reference in New Issue
Block a user