class

Krikri::Lint::YamlKeyDuplicatesRule

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

Upstream parity: yaml[key-duplicates] (from yamllint defaults; error level, MEDIUM here). Reports each duplicated mapping key at the duplicate key's line with no column: "Duplication of key "key" in mapping". Merge keys ("<<") are exempt.

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