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 6, 2022
1 parent 75693dd commit 3ac1989
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -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 3ac1989

Please sign in to comment.