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 5 additions and 0 deletions
Showing only changes of commit 84200615bf - Show all commits

View File

@ -179,6 +179,10 @@ Use `ansible-lint` to verify good practices relevant to Ansible.
task lint-ansible
```
Note that this task depends on `lint-yml`, which means that linting YML will
happen before linting the Ansible code base. Linting the Ansible code base will
only be triggered when linting all YML documents in the repository has been successful.
## YAML code formatting
Navigate to the root folder of the local copy of this git repository.

View File

@ -6,4 +6,5 @@ tasks:
lint-yml:
cmds: [yamllint .]
lint-ansible:
deps: [lint-yml]
cmds: [LC_ALL=C.UTF-8 ansible-lint .]