mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
14 lines
570 B
Swift
14 lines
570 B
Swift
import SwiftLintCore
|
|
|
|
@AutoConfigParser
|
|
struct OperatorUsageWhitespaceConfiguration: SeverityBasedRuleConfiguration {
|
|
@ConfigurationElement(key: "severity")
|
|
private(set) var severityConfiguration = SeverityConfiguration<Parent>(.warning)
|
|
@ConfigurationElement(key: "lines_look_around")
|
|
private(set) var linesLookAround = 2
|
|
@ConfigurationElement(key: "skip_aligned_constants")
|
|
private(set) var skipAlignedConstants = true
|
|
@ConfigurationElement(key: "allowed_no_space_operators")
|
|
private(set) var allowedNoSpaceOperators = ["...", "..<"]
|
|
}
|