mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
18 lines
496 B
Swift
18 lines
496 B
Swift
import SwiftLintCore
|
|
|
|
@AutoConfigParser
|
|
struct TodoConfiguration: SeverityBasedRuleConfiguration {
|
|
typealias Parent = TodoRule
|
|
|
|
@AcceptableByConfigurationElement
|
|
enum TodoKeyword: String, CaseIterable {
|
|
case todo = "TODO"
|
|
case fixme = "FIXME"
|
|
}
|
|
|
|
@ConfigurationElement(key: "severity")
|
|
private(set) var severityConfiguration = SeverityConfiguration<Parent>(.warning)
|
|
@ConfigurationElement(key: "only")
|
|
private(set) var only = TodoKeyword.allCases
|
|
}
|