From 80144f3c80cddcc14ed54b0e3b4ddddfb0f34f0a Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Tue, 19 Sep 2023 16:53:39 +0200 Subject: [PATCH] Forbid YAML octal literals and restrict YAML truthy values in yamllint --- {{ cookiecutter.slug }}/.yamllint.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/{{ cookiecutter.slug }}/.yamllint.yml b/{{ cookiecutter.slug }}/.yamllint.yml index 6824102..92aea6c 100644 --- a/{{ cookiecutter.slug }}/.yamllint.yml +++ b/{{ cookiecutter.slug }}/.yamllint.yml @@ -6,6 +6,16 @@ rules: max: 80 level: warning + # Forbid octal literals until we've fully migrated to reclass-rs + octal-values: + forbid-implicit-octal: true + forbid-explicit-octal: true + + # Restrict truthy values to set which is parsed as boolean by reclass-rs + truthy: + allowed-values: ['true', 'false', 'True', 'False', 'TRUE', 'FALSE'] + check-keys: true + ignore: | dependencies/ helmcharts/