mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
18 lines
663 B
Swift
18 lines
663 B
Swift
import SwiftLintCore
|
|
|
|
@AutoApply
|
|
struct FileNameConfiguration: SeverityBasedRuleConfiguration {
|
|
typealias Parent = FileNameRule
|
|
|
|
@ConfigurationElement(key: "severity")
|
|
private(set) var severityConfiguration = SeverityConfiguration<Parent>(.warning)
|
|
@ConfigurationElement(key: "excluded")
|
|
private(set) var excluded: Set = ["main.swift", "LinuxMain.swift"]
|
|
@ConfigurationElement(key: "prefix_pattern")
|
|
private(set) var prefixPattern = ""
|
|
@ConfigurationElement(key: "suffix_pattern")
|
|
private(set) var suffixPattern = "\\+.*"
|
|
@ConfigurationElement(key: "nested_type_separator")
|
|
private(set) var nestedTypeSeparator = "."
|
|
}
|