document-end
What it does
Section titled “What it does”Reports a document without the ... end marker, or with present: false one that has it.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”With this configuration:
document-end: level: warn options: present: falsea: 1...Configuration
Section titled “Configuration”github-actions: lint: rules: document-end: level: warn # off (default), warn, error options: present: trueyaml: 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.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| yamllint | document-end |
full |