mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
19 lines
432 B
Swift
19 lines
432 B
Swift
import SwiftLintCore
|
|
import TestHelpers
|
|
import Testing
|
|
|
|
@Suite(.rulesRegistered)
|
|
struct LineEndingTests {
|
|
@Test
|
|
func carriageReturnDoesNotCauseError() {
|
|
#expect(
|
|
violations(
|
|
Example(
|
|
"// swiftlint:disable:next blanket_disable_command\r\n"
|
|
+ "// swiftlint:disable all\r\nprint(123)\r\n"
|
|
)
|
|
).isEmpty
|
|
)
|
|
}
|
|
}
|