Skip to content
Snippets Groups Projects
Commit bb88de67 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

style: add new yamllint config that is compatible with latest version

parent 8d739212
No related branches found
No related tags found
No related merge requests found
---
# based on documentation available at
# https://yamllint.readthedocs.io/en/stable/rules.html
# Based on ansible-lint config
extends: default
rules:
......@@ -11,15 +9,29 @@ rules:
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments:
min-spaces-from-content: 4
min-spaces-from-content: 1 # prettier compatibility
comments-indentation: disable
document-end: disable
document-start:
level: warning
octal-values:
forbid-explicit-octal: false
line-length: disable
truthy: enable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: disable
new-lines:
type: unix
octal-values:
forbid-implicit-octal: true # yamllint defaults to false
forbid-explicit-octal: true # yamllint defaults to false
trailing-spaces: disable
truthy: disable
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment