Skip to content

Commit

Permalink
Fix a few test which failed due to comment_spacing being a default rule
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsark769 committed Nov 11, 2020
1 parent bf2790d commit 6d4487c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Tests/SwiftLintFrameworkTests/CommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,22 +257,22 @@ class CommandTests: XCTestCase {
func testDisableAllOverridesSuperfluousDisableCommand() {
XCTAssert(
violations(
Example("//swiftlint:disable all\n// swiftlint:disable nesting\nprint(123)\n")
Example("// swiftlint:disable all\n// swiftlint:disable nesting\nprint(123)\n")
).isEmpty
)
XCTAssert(
violations(
Example("//swiftlint:disable all\n// swiftlint:disable:next nesting\nprint(123)\n")
Example("// swiftlint:disable all\n// swiftlint:disable:next nesting\nprint(123)\n")
).isEmpty
)
XCTAssert(
violations(
Example("//swiftlint:disable all\n// swiftlint:disable:this nesting\nprint(123)\n")
Example("// swiftlint:disable all\n// swiftlint:disable:this nesting\nprint(123)\n")
).isEmpty
)
XCTAssert(
violations(
Example("//swiftlint:disable all\n// swiftlint:disable:previous nesting\nprint(123)\n")
Example("// swiftlint:disable all\n// swiftlint:disable:previous nesting\nprint(123)\n")
).isEmpty
)
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftLintFrameworkTests/LineEndingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class LineEndingTests: XCTestCase {
func testCarriageReturnDoesNotCauseError() {
XCTAssert(
violations(
Example("//swiftlint:disable all\r\nprint(123)\r\n")
Example("// swiftlint:disable all\r\nprint(123)\r\n")
).isEmpty
)
}
Expand Down

0 comments on commit 6d4487c

Please sign in to comment.