Skip to content

emptyMappingKeys

Reports empty mapping keys.

✅ This rule is included in the yaml logicalpresets.

Empty keys are invalid in YAML and may cause parsers to reject the document or misinterpret its structure. Even if allowed by a parser, empty keys can be confusing for developers and lead to accidental mistakes in code.

: "value"

This rule is not configurable.