i-3 Introduce a new task to automate linting from command line #14

Merged
emil merged 4 commits from i-3-automate-linters into main 2024-03-02 01:37:00 +00:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit df7c944fa4 - Show all commits

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]