Skip to content

Commit

Permalink
Forbid YAML octal literals and restrict YAML truthy values in yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Sep 19, 2023
1 parent 4705104 commit 80144f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions {{ cookiecutter.slug }}/.yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 80144f3

Please sign in to comment.