Docs
Checks
consistency

consistency

Learn about the consistency extension point.

NameTypeDescription
nonwordboolRemoves the default word boundaries (\b).
ignorecaseboolMakes all matches case-insensitive.
eitherarrayA map of option 1: option 2 pairs of which only one may appear.

consistency will ensure that a key and its value (e.g., “advisor” and “adviser”) don’t both occur in its scope.

yaml
extends: consistency message: "Inconsistent spelling of '%s'." level: error ignorecase: true # We only want one of these to appear. either: advisor: adviser centre: center