Files
SwiftLint/Source/SwiftLintBuiltInRules/Rules/RuleConfigurations/XCTSpecificMatcherConfiguration.swift
2023-10-03 18:05:31 +02:00

18 lines
579 B
Swift

import SwiftLintCore
@AutoApply
struct XCTSpecificMatcherConfiguration: SeverityBasedRuleConfiguration {
typealias Parent = XCTSpecificMatcherRule
@MakeAcceptableByConfigurationElement
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
}