mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
16 lines
463 B
Swift
16 lines
463 B
Swift
import SwiftLintCore
|
|
|
|
@AutoConfigParser
|
|
struct TodoConfiguration: SeverityBasedRuleConfiguration {
|
|
@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
|
|
}
|