Skip to content

Commit

Permalink
Update .yamllint for ansible-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Bas Meijer <bas.meijer@enexis.nl>
  • Loading branch information
bbaassssiiee committed Jul 18, 2024
1 parent 3b9f03d commit 37d3ff2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,25 @@ ignore: |
.github/
# Generated file
tests/files/custom_cni/cilium.yaml

# https://ansible.readthedocs.io/projects/lint/rules/yaml/
rules:
braces:
min-spaces-inside: 0
max-spaces-inside: 1
brackets:
min-spaces-inside: 0
max-spaces-inside: 1
comments:
# https://github.com/prettier/prettier/issues/6780
min-spaces-from-content: 1
# https://github.com/adrienverge/yamllint/issues/384
comments-indentation: false
indentation:
spaces: 2
indent-sequences: consistent
line-length: disable
new-line-at-end-of-file: disable
octal-values:
forbid-implicit-octal: true # yamllint defaults to false
forbid-explicit-octal: true # yamllint defaults to false
truthy: disable

0 comments on commit 37d3ff2

Please sign in to comment.