class

Krikri::Lint::YamlCommentsRule

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

Upstream parity: yaml[comments] (from yamllint, as configured by ansible-lint's bundled .yamllint: require-starting-space true, min-spaces-from-content 1, ignore-shebangs true). Warning level upstream, so VERY_LOW here. Two messages, both reported at the comment's line with no column: "Missing starting space in comment" and "Too few spaces before comment: expected 1".

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