class

Krikri::Lint::YamlTruthyRule

Inherits Krikri::Lint::Rule < Reference < Object

Upstream parity: yaml[truthy] (from yamllint). Flags plain scalars that YAML 1.1 resolves as booleans other than true/false (yes, no, on, off, and their case variants); quoted strings are fine.

Constants

TRUTHY = ["yes", "no", "on", "off", "Yes", "No", "On", "Off", "YES", "NO", "ON", "OFF"] of ::String

Instance methods

applies_to
Source
check(file : PositionedFile, violations : Array(Violation)) : Nil
Source
severity
Source
tags
Source
transformable?

Upstream's yaml transform is a documented no-op (the reformatting happens in the data dumper), so it never marks a match fixed; every yaml[*] match gets a "not applied" ERROR.

Source