Files
SwiftLint/Source/SwiftLintBuiltInRules/Rules/RuleConfigurations/XCTSpecificMatcherConfiguration.swift
2024-07-23 20:14:29 +02:00

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
}