mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
* Short names for test modules * Lint plugins and `Package.swift` in integration tests * Simplify and merge file groups in Bazel * Move common functions to `TestHelpers`
16 lines
421 B
Swift
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
|
|
)
|
|
}
|
|
}
|