Skip to content

emptyMappingKeys

Reports empty mapping keys.

✅ This rule is included in the yml logical preset.

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.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.