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 +++++++ 1 file changed, 7 insertions(+) (limited to '.precious.toml') 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" -- cgit v1.2.3