generated from the-liberated-edge/wikijs
Set up proper task dependency for linters
This commit is contained in:
parent
84200615bf
commit
df7c944fa4
@ -173,6 +173,9 @@ Lint all YAML documents.
|
|||||||
task lint-yml
|
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.
|
Use `ansible-lint` to verify good practices relevant to Ansible.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@ -4,6 +4,7 @@ tasks:
|
|||||||
format-yml:
|
format-yml:
|
||||||
cmds: [yamlfix .]
|
cmds: [yamlfix .]
|
||||||
lint-yml:
|
lint-yml:
|
||||||
|
deps: [format-yml]
|
||||||
cmds: [yamllint .]
|
cmds: [yamllint .]
|
||||||
lint-ansible:
|
lint-ansible:
|
||||||
deps: [lint-yml]
|
deps: [lint-yml]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user