-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy path.yamllint
More file actions
38 lines (36 loc) · 1.07 KB
/
.yamllint
File metadata and controls
38 lines (36 loc) · 1.07 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
---
extends: default
rules:
# the default of 80 is overly-restrictive, particularly when nested
line-length:
max: 120
level: warning
# as this repository also contains generated yaml, we only enforce
# indentation consistency within a file
indentation:
spaces: consistent
indent-sequences: consistent
# we can only choose from true or false. since we have files containing
# several documents, we explicitly require document-starts
document-start:
present: true
comments:
min-spaces-from-content: 1
# comments-indentation linting has unwanted edgecases:
# https://github.com/adrienverge/yamllint/issues/141
comments-indentation: disable
ignore:
# generated files
- config/crd
- config/certmanager
- config/prometheus
- config/rbac
- out
# clusterctl templates use envsubst syntax that isn't valid yaml
# TODO: find a way to lint these (preprocess with envsubst + dummy values?)
- templates
- test/e2e
# conversion tool testdata contains envsubst templates
- pkg/convert/testdata
# github actions have no document-start markers
- .github/workflows