summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2024-01-07 13:17:15 +0000
committerMatthew Fennell <matthew@fennell.dev>2024-01-07 13:17:15 +0000
commitac51259e87c4777514c03d115242c083b881904f (patch)
tree884fbaf73eaf731ef7c775e4d56bd22eb33d4ffa
parent7a75827b7c6cef7dfbb7bf9025561051eacc50b0 (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.toml7
-rw-r--r--README.md1
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"
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