mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
17 lines
586 B
Swift
17 lines
586 B
Swift
import SwiftLintCore
|
|
|
|
@AutoConfigParser
|
|
struct UnusedDeclarationConfiguration: SeverityBasedRuleConfiguration {
|
|
typealias Parent = UnusedDeclarationRule
|
|
|
|
@ConfigurationElement(key: "severity")
|
|
private(set) var severityConfiguration = SeverityConfiguration<Parent>.error
|
|
@ConfigurationElement(key: "include_public_and_open")
|
|
private(set) var includePublicAndOpen = false
|
|
@ConfigurationElement(
|
|
key: "related_usrs_to_skip",
|
|
postprocessor: { $0.insert("s:7SwiftUI15PreviewProviderP") }
|
|
)
|
|
private(set) var relatedUSRsToSkip = Set<String>()
|
|
}
|