Skip to content

Commit

Permalink
build: extend yamllint configuration
Browse files Browse the repository at this point in the history
This makes the configuration of yamllint stricter.
For example, single quote is imposed and only when necessary.
  • Loading branch information
Mesteery committed Feb 11, 2022
1 parent cbc3b0c commit 9ea0be7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .yamllint.yaml
@@ -1,9 +1,40 @@
extends: default

rules:
braces:
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0

brackets:
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0

comments-indentation:
level: error

document-end:
present: false

document-start:
level: error
present: false

empty-lines:
max: 1

indentation:
spaces: 2

line-length: disable

quoted-strings:
quote-type: single
required: only-when-needed

truthy:
allowed-values: ['true', 'false', 'on', 'off']

Expand Down

0 comments on commit 9ea0be7

Please sign in to comment.