-
Notifications
You must be signed in to change notification settings - Fork 1
/
.yamllint
61 lines (59 loc) · 1.48 KB
/
.yamllint
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#copied from https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/main/.github/linter-rules/.yaml-lint-config.yaml
yaml-files:
- '*.yaml'
- '*.yml'
# ignore yaml files in these folders, super-linter will still look at them but yamllint will ignore
ignore: |
.github/
docs/
k8s/clusters/
k8s/components/configs
k8s/components/controllers
rules:
braces: disable
brackets: disable
colons:
level: warning
max-spaces-before: 0
max-spaces-after: 1
commas:
level: warning
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
comments:
level: error
require-starting-space: true
ignore-shebangs: true
min-spaces-from-content: 1
comments-indentation:
level: error
document-end: disable
# disable document-start, some kpt functions remove the document start
document-start: disable
# no empty lines permitted to minimize rendering issues
empty-lines:
level: error
max: 0
max-start: 0
max-end: 1
empty-values: disable
hyphens:
level: warning
max-spaces-after: 1
indentation:
level: error
spaces: consistent
indent-sequences: true
check-multi-line-strings: false
key-duplicates: enable
key-ordering: disable
# disable line-length, kpt-set comments would almost always trigger warnings
line-length: disable
new-line-at-end-of-file: enable
new-lines:
type: unix
octal-values: disable
quoted-strings: disable
trailing-spaces: enable
truthy: disable