Skip to content

#yamllint enable rule:document-start as first line #804

@koppor

Description

@koppor

(This refs #302)

I have

---

rules:
  document-start:
    present: false

And

# yamllint enable rule:document-start
---
metadata:
  id: AD-001

I get

  2:1       error    found forbidden document start "---"  (document-start)

According to https://yamllint.readthedocs.io/en/stable/disable_with_comments.html#disabling-checks-for-all-or-part-of-the-file and https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.document_start, this should work, but yamllint still requires document-start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions