mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
18 lines
582 B
Swift
18 lines
582 B
Swift
import SwiftLintCore
|
|
|
|
@AutoConfigParser
|
|
struct XCTSpecificMatcherConfiguration: SeverityBasedRuleConfiguration {
|
|
typealias Parent = XCTSpecificMatcherRule
|
|
|
|
@AcceptableByConfigurationElement
|
|
enum Matcher: String, CaseIterable {
|
|
case oneArgumentAsserts = "one-argument-asserts"
|
|
case twoArgumentAsserts = "two-argument-asserts"
|
|
}
|
|
|
|
@ConfigurationElement(key: "severity")
|
|
private(set) var severityConfiguration = SeverityConfiguration<Parent>(.warning)
|
|
@ConfigurationElement(key: "matchers")
|
|
private(set) var matchers = Matcher.allCases
|
|
}
|