mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Fix a few test which failed due to comment_spacing being a default rule
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user