From ac51259e87c4777514c03d115242c083b881904f Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 7 Jan 2024 13:17:15 +0000 Subject: Re-introduct yamllint There are some checks that are enabled by default in yamllint, that are not caught by default by ansible-lint. For instance, ansible-lint does not check for line lengths in its default configuration. Therefore, we would like to re-introduce yamllint to make sure we do not miss any checks. --- .precious.toml | 7 +++++++ README.md | 1 + 2 files changed, 8 insertions(+) diff --git a/.precious.toml b/.precious.toml index 9727732..dac87d0 100644 --- a/.precious.toml +++ b/.precious.toml @@ -33,3 +33,10 @@ 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" diff --git a/README.md b/README.md index 11812f0..77049b5 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ following packages are installed: * precious * reuse * shellcheck +* yamllint ```shell $ git config core.hooksPath hooks -- cgit v1.2.3