Files
ansible-docs/.yamllint
Felix Fontein c7c3eea9dc Add yamllint check for RST code listings (#2385)
* Add yamllint check for RST code listings.

* Address review comments.

* Sort languages and remove no longer needed duplicates.

* Enable warnings, but disable all failing rules.

* Improve formulation.

Co-authored-by: Don Naro <dnaro@redhat.com>

* Show allowed languages when no or invalid language is supplied. Improve line lengths.

* Make sure that 'yamllint .' passes.

* Fix indentation issues introduced in #2095.

---------

Co-authored-by: Don Naro <dnaro@redhat.com>
2025-03-21 19:41:40 +01:00

69 lines
1.3 KiB
Plaintext

---
extends: default
ignore:
- /lib/ansible/
rules:
line-length: disable
# max: 160
# level: warning
document-start: disable
document-end: disable
truthy:
level: warning
allowed-values:
- 'true'
- 'false'
- 'True'
- 'False'
- 'TRUE'
- 'FALSE'
- 'yes'
- 'no'
- 'Yes'
- 'No'
- 'YES'
- 'NO'
indentation: disable
# level: warning
# spaces: 2
# indent-sequences: consistent
key-duplicates: disable
# level: warning
# forbid-duplicated-merge-keys: true
trailing-spaces: enable
hyphens: disable
# max-spaces-after: 1
# level: warning
empty-lines:
max: 2
max-start: 0
max-end: 0
level: warning
commas: disable
# max-spaces-before: 0
# min-spaces-after: 1
# max-spaces-after: 1
# level: warning
colons: disable
# max-spaces-before: 0
# max-spaces-after: 1
# level: warning
brackets: disable
# min-spaces-inside: 0
# max-spaces-inside: 0
# level: warning
braces:
min-spaces-inside: 0
max-spaces-inside: 1
level: warning
octal-values: disable
# forbid-implicit-octal: true
# forbid-explicit-octal: true
# level: warning
comments: disable
# min-spaces-from-content: 1
# level: warning
comments-indentation: disable