mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
16 lines
415 B
Swift
16 lines
415 B
Swift
@testable import SwiftLintBuiltInRules
|
|
import XCTest
|
|
|
|
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
|
|
)
|
|
}
|
|
}
|