Skip to content
Snippets Groups Projects
Commit 26c71b19 authored by Jack Nagel's avatar Jack Nagel
Browse files

Add audit check for system "xcodebuild"

parent c72f9a46
No related branches found
No related tags found
No related merge requests found
......@@ -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\(/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment