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.

PR-URL: #41756
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
  • Loading branch information
Mesteery authored and bengl committed Feb 22, 2022
1 parent f4cb726 commit cd04ed1
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 cd04ed1

Please sign in to comment.