diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-01-07 13:17:15 +0000 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-01-07 13:17:15 +0000 |
commit | ac51259e87c4777514c03d115242c083b881904f (patch) | |
tree | 884fbaf73eaf731ef7c775e4d56bd22eb33d4ffa | |
parent | 7a75827b7c6cef7dfbb7bf9025561051eacc50b0 (diff) |
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.
-rw-r--r-- | .precious.toml | 7 | ||||
-rw-r--r-- | README.md | 1 |
2 files changed, 8 insertions, 0 deletions
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" @@ -84,6 +84,7 @@ following packages are installed: * precious * reuse * shellcheck +* yamllint ```shell $ git config core.hooksPath hooks |