mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
043f9cac5b
Start with a command that generates a template for a new SwiftSyntax rule. This tool could remain separate or be merged into the official binary under a `dev` sub-command at a later point in time.
14 lines
572 B
Swift
14 lines
572 B
Swift
/// All the possible rule kinds (categories).
|
|
public enum RuleKind: String, CaseIterable, Codable, Sendable {
|
|
/// Describes rules that validate Swift source conventions.
|
|
case lint
|
|
/// Describes rules that validate common practices in the Swift community.
|
|
case idiomatic
|
|
/// Describes rules that validate stylistic choices.
|
|
case style
|
|
/// Describes rules that validate magnitudes or measurements of Swift source.
|
|
case metrics
|
|
/// Describes rules that validate that code patterns with poor performance are avoided.
|
|
case performance
|
|
}
|