mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
51544bb4cc
This allows custom rules to define an `excluded_match_kinds` array instead of listing out all but one or a few of the `SyntaxKind`s in `match_kinds`. Rules that include both `match_kinds` and `excluded_match_kinds` will be invalid, since there's not an obvious way to resolve the two without an arbitrary priority between them.
8 lines
297 B
Swift
8 lines
297 B
Swift
/// All possible configuration errors.
|
|
public enum ConfigurationError: Error {
|
|
/// The configuration didn't match internal expectations.
|
|
case unknownConfiguration
|
|
/// The configuration had both `match_kind` and `excluded_match_kind` parameters.
|
|
case ambiguousMatchKindParameters
|
|
}
|