module

Krikri::Lint::YamlSpacing

Shared spacing-gap checks for the token-level yamllint rules, so yaml[commas] and yaml[colons] agree on pyyaml's spaces_before / spaces_after semantics: both only compare tokens on the same line, and both discard a previous token that ended at a line start.

Constants

MAX_SPACES_AFTER_COLON = 1
MAX_SPACES_AFTER_COMMA = 1
MAX_SPACES_BEFORE_COLON = 0
MAX_SPACES_BEFORE_COMMA = 0
MIN_SPACES_AFTER_COMMA = 1

Instance methods

check_colons(file : PositionedFile, id : String, sev : Severity, &) : Nil
Source
check_commas(file : PositionedFile, id : String, sev : Severity, &) : Nil
Source