document-start
What it does
Section titled “What it does”Reports a first document that does not start with ---. A document that has directives (%YAML) already starts with ---.
Why it matters
Section titled “Why it matters”The --- marker makes it clear where a document starts, and it is required to put a directive in front. Some projects require it so that every file looks the same and several documents can be concatenated.
Example
Section titled “Example”# commenta: 1Configuration
Section titled “Configuration”github-actions: lint: rules: document-start: warn # off (default), warn, erroryaml: lint: rules: document-start: warn # off (default), warn, errorEnabled by the presets: yaml/yamllint.
Suppress one line with sudsy-disable-next-line document-start 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-start |
full |