Skip to content

Commit

Permalink
Merge pull request #72 from projectsyn/feat/yamllint-ambiguous
Browse files Browse the repository at this point in the history
Forbid YAML octal literals and restrict YAML truthy values in yamllint
  • Loading branch information
simu authored Sep 19, 2023
2 parents 4705104 + 80144f3 commit d8afca0
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 d8afca0

Please sign in to comment.