Files
2024-04-27 18:43:08 +02:00

16 lines
421 B
Swift

@testable import SwiftLintBuiltInRules
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
)
}
}