Skip to content

emptySequenceEntries

Reports empty sequence entries.

✅ This rule is included in the yaml logical presets.

Empty entries in YAML sequences can lead to unexpected null values in the parsed data. If an empty entry is intentional, use explicit null to clarify intent.

- one
-
- three
items:
- first
-
- third

This rule is not configurable.

If your project intentionally uses empty sequence entries to represent null values and you have consistent parser behavior, you may not need this rule. Projects with established conventions around implicit null values in YAML sequences may also choose to disable this rule.

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