mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
087278c052
It's supposed to test code from SwiftLintCore.
17 lines
422 B
Swift
17 lines
422 B
Swift
import SwiftLintCore
|
|
import TestHelpers
|
|
import XCTest
|
|
|
|
final class LineEndingTests: SwiftLintTestCase {
|
|
func testCarriageReturnDoesNotCauseError() {
|
|
XCTAssert(
|
|
violations(
|
|
Example(
|
|
"// swiftlint:disable:next blanket_disable_command\r\n" +
|
|
"// swiftlint:disable all\r\nprint(123)\r\n"
|
|
)
|
|
).isEmpty
|
|
)
|
|
}
|
|
}
|