Add YAML linter config

Based on the errors and warnings of the first run
This commit is contained in:
Norbi Peti 2018-11-09 23:05:40 +01:00 committed by GitHub
parent a4f394d548
commit 620e869d11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

57
.yamllint Normal file
View file

@ -0,0 +1,57 @@
---
rules:
braces:
min-spaces-inside: 0
max-spaces-inside: 0
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
brackets:
min-spaces-inside: 0
max-spaces-inside: 0
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
colons:
max-spaces-before: 0
max-spaces-after: 1
commas:
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
comments:
level: warning
require-starting-space: false
min-spaces-from-content: 1
comments-indentation:
level: warning
document-end: disable
document-start:
level: warning
present: false
empty-lines:
max: 2
max-start: 0
max-end: 1
level: warning
quoted-strings: disable
empty-values:
forbid-in-block-mappings: false
forbid-in-flow-mappings: false
hyphens:
max-spaces-after: 1
indentation:
spaces: consistent
indent-sequences: whatever
check-multi-line-strings: false
key-duplicates: enable
key-ordering: disable
line-length: disable
new-line-at-end-of-file: disable
new-lines:
type: unix
octal-values:
forbid-implicit-octal: false
forbid-explicit-octal: false
trailing-spaces: enable
truthy:
level: warning