-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.yamllint
More file actions
42 lines (40 loc) · 1.04 KB
/
.yamllint
File metadata and controls
42 lines (40 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
extends: default
ignore: |
.git/
**/templates/
crds.yaml
rules:
comments:
min-spaces-from-content: 1
line-length: disable
new-line-at-end-of-file: enable
new-lines:
type: unix
braces:
# Keep 0 min-spaces to not error on empty {} collection definitions
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
# set at least 1 space on non empty braces
min-spaces-inside: 1
max-spaces-inside: 1
brackets:
# Keep 0 min-spaces to not error on empty [] collection definitions
min-spaces-inside: 0
# Allow one space inside braces to improve code readability
max-spaces-inside: 1
colons:
# Allow multiple spaces after a colon to allow indentation of YAML
# dictionary values
max-spaces-after: -1
commas:
# Allow multiple spaces after a comma to allow indentation of YAML
# dictionary values
max-spaces-after: -1
indentation:
# Require 2 space indentation
spaces: 2
indent-sequences: consistent
truthy:
allowed-values: ['true', 'false']
check-keys: true