Skip to content

document-end

GitHub ActionsYAMLstylefix: safedefault: off

Reports a document without the ... end marker, or with present: false one that has it.

Some projects require the end marker so a stream that was cut off is easy to tell from one that is complete. Most files leave it out, which is why the rule is off by default.

With this configuration:

document-end:
level: warn
options:
present: false
Reported
a: 1
...
github-actions:
lint:
rules:
document-end:
level: warn # off (default), warn, error
options:
present: true
yaml:
lint:
rules:
document-end:
level: warn # off (default), warn, error
options:
present: true
Option Type Default Description
present bool true true requires ... after every document (fixable); false forbids it.

Suppress one line with sudsy-disable-next-line document-end in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
yamllint document-end full