document-end¶
What this rule does¶
Requires or forbids the YAML document end marker (...).
Why this matters¶
- Streaming consumers. Producers that emit multiple YAML documents benefit from explicit end markers so consumers know each document is complete.
- Single-document files. Most single-document YAML files omit
...; forbidding it removes a trailing footer that adds no information.
Configuration¶
| Option | Default | Description |
|---|---|---|
present |
true |
When true, require a ... marker at the end of every document. When false, forbid it. |
Examples¶
Allowed (with present: true)¶
Reported (with present: true)¶
Allowed (with present: false)¶
Automatic fixing¶
This rule does not auto-fix; add or remove the marker manually.
Related rules¶
document-start— the matching rule for the---start marker.new-line-at-end-of-file— controls the final newline character.