Skip to content

Commit

Permalink
Fix issues after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Jul 24, 2018
1 parent bd91c51 commit b0704b1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public struct VerticalWhitespaceBetweenCasesRule: ConfigurationProviderRule {
private let pattern = "([^\\n{][ \\t]*\\n)([ \\t]*(?:case[^\\n]+|default):[ \\t]*\\n)"
}

extension VerticalWhitespaceBetweenCasesRule: OptInRule {
extension VerticalWhitespaceBetweenCasesRule: OptInRule, AutomaticTestableRule {
public var configurationDescription: String { return "N/A" }

public init(configuration: Any) throws {}
Expand Down
7 changes: 7 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,12 @@ extension VerticalParameterAlignmentRuleTests {
]
}

extension VerticalWhitespaceBetweenCasesRuleTests {
static var allTests: [(String, (VerticalWhitespaceBetweenCasesRuleTests) -> () throws -> Void)] = [
("testWithDefaultConfiguration", testWithDefaultConfiguration)
]
}

extension VerticalWhitespaceRuleTests {
static var allTests: [(String, (VerticalWhitespaceRuleTests) -> () throws -> Void)] = [
("testVerticalWhitespaceWithDefaultConfiguration", testVerticalWhitespaceWithDefaultConfiguration),
Expand Down Expand Up @@ -1330,6 +1336,7 @@ XCTMain([
testCase(ValidIBInspectableRuleTests.allTests),
testCase(VerticalParameterAlignmentOnCallRuleTests.allTests),
testCase(VerticalParameterAlignmentRuleTests.allTests),
testCase(VerticalWhitespaceBetweenCasesRuleTests.allTests),
testCase(VerticalWhitespaceRuleTests.allTests),
testCase(VoidReturnRuleTests.allTests),
testCase(WeakDelegateRuleTests.allTests),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,12 @@ class VerticalParameterAlignmentRuleTests: XCTestCase {
}
}

class VerticalWhitespaceBetweenCasesRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(VerticalWhitespaceBetweenCasesRule.description)
}
}

class VoidReturnRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(VoidReturnRule.description)
Expand Down

0 comments on commit b0704b1

Please sign in to comment.