From df7c944fa4d69e0d879a920b583001a074e9dde1 Mon Sep 17 00:00:00 2001 From: emo Date: Sat, 2 Mar 2024 02:34:02 +0100 Subject: [PATCH] Set up proper task dependency for linters --- README.md | 3 +++ Taskfile.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 4193fb8..8447005 100644 --- a/README.md +++ b/README.md @@ -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. ``` diff --git a/Taskfile.yml b/Taskfile.yml index 1f15e45..12e2671 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -4,6 +4,7 @@ tasks: format-yml: cmds: [yamlfix .] lint-yml: + deps: [format-yml] cmds: [yamllint .] lint-ansible: deps: [lint-yml]