This repository was archived by the owner on Jun 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
IBAnalyzer.xcodeproj/xcshareddata/xcschemes Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 7272 ReferencedContainer = " container:IBAnalyzer.xcodeproj" >
7373 </BuildableReference >
7474 </BuildableProductRunnable >
75+ <CommandLineArguments >
76+ <CommandLineArgument
77+ argument = " $(SRCROOT)/IBAnalyzerTests/"
78+ isEnabled = " YES" >
79+ </CommandLineArgument >
80+ </CommandLineArguments >
7581 <EnvironmentVariables >
7682 <EnvironmentVariable
7783 key = " SRCROOT"
Original file line number Diff line number Diff line change @@ -19,14 +19,17 @@ if !isInUnitTests {
1919 exit ( 1 )
2020 }
2121
22+ let currentDirectoryPath = FileManager . default. currentDirectoryPath
2223 let path = args [ 1 ]
23- let url = URL ( fileURLWithPath: args [ 1 ] , relativeTo: URL ( fileURLWithPath: args [ 0 ] ) )
24+ let url = URL ( fileURLWithPath: args [ 1 ] , relativeTo: URL ( fileURLWithPath: currentDirectoryPath ) )
2425
2526 guard FileManager . default. fileExists ( atPath: url. path) else {
2627 print ( " Path \( url. path) doesn't exist. " )
2728 exit ( 1 )
2829 }
2930
31+ print ( " Analyzing files located at: \( url. path) " )
32+
3033 let runner = Runner ( path: url. path)
3134 let issues = try runner. issues ( using: [ ConnectionAnalyzer ( ) ] )
3235 for issue in issues {
You can’t perform that action at this time.
0 commit comments