Files
Ryan Demo 51544bb4cc Add excluded_match_kinds custom rule config parameter (#3336)
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.
2020-09-10 21:08:41 -04:00

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
}