Pattern: Malformed use of ---
Issue: -
This rule requires or forbids the use of document start marker (---
).
- Set
present
totrue
when the document start marker is required, or tofalse
when it is forbidden.
-
With
document-start: {present: true}
the following code snippet would PASS:
--- this: is: [a, document] --- - this - is: another one
the following code snippet would FAIL:
this: is: [a, document] --- - this - is: another one
-
With
document-start: {present: false}
the following code snippet would PASS:
this: is: [a, document] ...
the following code snippet would FAIL:
--- this: is: [a, document] ...