Krikri::Lint::YamlTrailingSpacesRule
Inherits Krikri::Lint::Rule < Reference < Object
Upstream parity: yaml[trailing-spaces] (from yamllint, as configured by ansible-lint's bundled .yamllint). Reports each line ending in whitespace at that line, no column.
Instance methods
Autofix support, mirroring upstream's TransformMixin: a rule opts in by overriding fixable? (and carrying the "autofix" tag like upstream does) and implementing fix. fix must only make line-local edits through the FixBuffer (replace spans within existing lines, delete whole lines, add the final newline); returning true marks the violation fixed so the CLI drops it from the report.
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.