From 7a75827b7c6cef7dfbb7bf9025561051eacc50b0 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 7 Jan 2024 13:10:12 +0000 Subject: Replace yamllint with ansible-lint ansible-lint uses yamllint under the hood, and also checks for many more "logical" errors in the ansible config. --- .precious.toml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '.precious.toml') diff --git a/.precious.toml b/.precious.toml index 89e21de..9727732 100644 --- a/.precious.toml +++ b/.precious.toml @@ -2,6 +2,14 @@ # # SPDX-License-Identifier: AGPL-3.0-only +[commands.ansiblelint] +cmd = ["ansible-lint", "-q"] +include = "*" +invoke = "once" +ok_exit_codes = [0] +path_args = "none" +type = "lint" + [commands.gitlint] cmd = ["gitlint"] include = "*" @@ -25,10 +33,3 @@ include = ["hooks/*"] lint_failure_exit_codes = [1] ok_exit_codes = [0] type = "lint" - -[commands.yamllint] -cmd = ["yamllint", "--strict"] -include = ["*.yaml"] -lint_failure_exit_codes = [1, 2] -ok_exit_codes = [0] -type = "lint" -- cgit v1.2.3