Skip to content

Commit

Permalink
Cleanup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Mar 27, 2019
1 parent 423f300 commit 38277b7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SwiftLintFramework/Rules/FileTypesOrderRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import SourceKittenFramework

// swiftlint:disable:next type_body_length
public struct FileTypesOrderRule: ConfigurationProviderRule, OptInRule {
public struct FileTypesOrderRule: ConfigurationProviderRule, OptInRule, AutomaticTestableRule {
private typealias FileTypeOffset = (fileType: FileType, offset: Int)

public var configuration = FileTypesOrderConfiguration()
Expand Down
14 changes: 14 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,12 @@ extension FileNameRuleTests {
]
}

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

extension FirstWhereRuleTests {
static var allTests: [(String, (FirstWhereRuleTests) -> () throws -> Void)] = [
("testWithDefaultConfiguration", testWithDefaultConfiguration)
Expand Down Expand Up @@ -1281,6 +1287,12 @@ extension TypeBodyLengthRuleTests {
]
}

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

extension TypeNameRuleTests {
static var allTests: [(String, (TypeNameRuleTests) -> () throws -> Void)] = [
("testTypeName", testTypeName),
Expand Down Expand Up @@ -1528,6 +1540,7 @@ XCTMain([
testCase(FileHeaderRuleTests.allTests),
testCase(FileLengthRuleTests.allTests),
testCase(FileNameRuleTests.allTests),
testCase(FileTypesOrderRuleTests.allTests),
testCase(FirstWhereRuleTests.allTests),
testCase(ForWhereRuleTests.allTests),
testCase(ForceCastRuleTests.allTests),
Expand Down Expand Up @@ -1636,6 +1649,7 @@ XCTMain([
testCase(TrailingSemicolonRuleTests.allTests),
testCase(TrailingWhitespaceTests.allTests),
testCase(TypeBodyLengthRuleTests.allTests),
testCase(TypeContentsOrderRuleTests.allTests),
testCase(TypeNameRuleTests.allTests),
testCase(UnavailableFunctionRuleTests.allTests),
testCase(UnneededBreakInSwitchRuleTests.allTests),
Expand Down
12 changes: 12 additions & 0 deletions Tests/SwiftLintFrameworkTests/AutomaticRuleTests.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ class FatalErrorMessageRuleTests: XCTestCase {
}
}

class FileTypesOrderRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(FileTypesOrderRule.description)
}
}

class FirstWhereRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(FirstWhereRule.description)
Expand Down Expand Up @@ -648,6 +654,12 @@ class TypeBodyLengthRuleTests: XCTestCase {
}
}

class TypeContentsOrderRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(TypeContentsOrderRule.description)
}
}

class UnavailableFunctionRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(UnavailableFunctionRule.description)
Expand Down

0 comments on commit 38277b7

Please sign in to comment.