mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
More CI debugging.
This commit is contained in:
@@ -13,6 +13,7 @@ class TrailingCommaRuleTests: XCTestCase {
|
||||
|
||||
func testTrailingCommaRuleWithDefaultConfiguration() {
|
||||
print("Starting default test.")
|
||||
/*
|
||||
// Verify TrailingCommaRule with test values for when mandatory_comma is false (default).
|
||||
verifyRule(TrailingCommaRule.description)
|
||||
print("Verified rule.")
|
||||
@@ -25,8 +26,8 @@ class TrailingCommaRuleTests: XCTestCase {
|
||||
location: Location(file: nil, line: 3, character: 3),
|
||||
reason: "Collection literals should not have trailing commas."
|
||||
)]
|
||||
)
|
||||
print("Intensionally triggered failure.")
|
||||
)*/
|
||||
print("Finished test.")
|
||||
}
|
||||
|
||||
private let mandatoryCommaRuleDescription = RuleDescription(
|
||||
@@ -68,6 +69,8 @@ class TrailingCommaRuleTests: XCTestCase {
|
||||
)
|
||||
|
||||
func testTrailingCommaRuleWithMandatoryComma() {
|
||||
print("Started customized tests.")
|
||||
/*
|
||||
// Verify TrailingCommaRule with test values for when mandatory_comma is true.
|
||||
let ruleDescription = mandatoryCommaRuleDescription
|
||||
let ruleConfiguration = ["mandatory_comma": true]
|
||||
@@ -82,7 +85,8 @@ class TrailingCommaRuleTests: XCTestCase {
|
||||
location: Location(file: nil, line: 3, character: 2),
|
||||
reason: "Multi-line collection literals should have trailing commas."
|
||||
)]
|
||||
)
|
||||
)*/
|
||||
print("Finished test.")
|
||||
}
|
||||
|
||||
private func trailingCommaViolations(_ string: String, ruleConfiguration: Any? = nil) -> [StyleViolation] {
|
||||
@@ -94,7 +98,7 @@ class TrailingCommaRuleTests: XCTestCase {
|
||||
extension TrailingCommaRuleTests {
|
||||
static var allTests: [(String, (TrailingCommaRuleTests) -> () throws -> Void)] {
|
||||
return [
|
||||
//("testTrailingCommaRuleWithDefaultConfiguration", testTrailingCommaRuleWithDefaultConfiguration),
|
||||
("testTrailingCommaRuleWithDefaultConfiguration", testTrailingCommaRuleWithDefaultConfiguration),
|
||||
("testTrailingCommaRuleWithMandatoryComma", testTrailingCommaRuleWithMandatoryComma)
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user