File tree 2 files changed +2
-2
lines changed
Sources/Danger/Plugins/SwiftLint
Tests/DangerTests/SwiftLint
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ extension SwiftLint {
185
185
var arguments = arguments
186
186
187
187
if let directory = directory {
188
- arguments. append ( " --path \" \( directory) \" " )
188
+ arguments. append ( directory)
189
189
}
190
190
191
191
return swiftlintViolations ( swiftlintPath: swiftlintPath,
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ final class DangerSwiftLintTests: XCTestCase {
268
268
XCTAssertNotNil ( swiftlintCommand)
269
269
XCTAssertEqual ( swiftlintCommand!. environmentVariables. count, 0 )
270
270
XCTAssertFalse ( swiftlintCommand!. environmentVariables. values. contains { $0. contains ( " Tests/SomeFile.swift " ) } )
271
- XCTAssertTrue ( swiftlintCommand!. arguments. contains ( " --path \" Tests \" " ) )
271
+ XCTAssertEqual ( swiftlintCommand!. arguments. last , directory )
272
272
}
273
273
274
274
func testFiltersOnSwiftFiles( ) {
You can’t perform that action at this time.
0 commit comments