Set up proper task dependency for linters

This commit is contained in:
emo 2024-03-02 02:34:02 +01:00
parent 84200615bf
commit df7c944fa4
2 changed files with 4 additions and 0 deletions

View File

@ -173,6 +173,9 @@ Lint all YAML documents.
task lint-yml
```
Note that this task will trigger formatting of all YAML documents
in the repository as a prerequisite to linting.
Use `ansible-lint` to verify good practices relevant to Ansible.
```

View File

@ -4,6 +4,7 @@ tasks:
format-yml:
cmds: [yamlfix .]
lint-yml:
deps: [format-yml]
cmds: [yamllint .]
lint-ansible:
deps: [lint-yml]