Skip to content

Commit

Permalink
Yamllint configuration updated
Browse files Browse the repository at this point in the history
This fixes a warning about incompatible yamllint configuration by ansible-lint.
  • Loading branch information
wsmirnow committed Jan 31, 2025
1 parent 338e704 commit b08b121
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
---
# Yamllint configuration should be compatible with Ansible,
# see https://ansible.readthedocs.io/projects/lint/rules/yaml/#yamllint-configuration

extends: default

rules:
line-length: disable
comments:
# https://github.com/prettier/prettier/issues/6780
min-spaces-from-content: 1
# https://github.com/adrienverge/yamllint/issues/384
comments-indentation: false
document-start: disable
# 160 chars was the default used by old E204 rule, but
# you can easily change it or disable in your .yamllint file.
line-length:
max: 160
# We are adding an extra space inside braces as that's how prettier does it
# and we are trying not to fight other linters.
braces:
min-spaces-inside: 0 # yamllint defaults to 0
max-spaces-inside: 1 # yamllint defaults to 0
# key-duplicates:
# forbid-duplicated-merge-keys: true # not enabled by default
octal-values:
forbid-implicit-octal: true # yamllint defaults to false
forbid-explicit-octal: true # yamllint defaults to false
# quoted-strings:
# quote-type: double
# required: only-when-needed


ignore: |
venv/
.roles/
.cache/
.github/
venv/

0 comments on commit b08b121

Please sign in to comment.