-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.yamllint.yml
83 lines (82 loc) · 2.47 KB
/
.yamllint.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
extends: default
rules:
anchors:
forbid-undeclared-aliases: true
forbid-duplicated-anchors: true
forbid-unused-anchors: true
braces:
forbid: non-empty
min-spaces-inside: 0
max-spaces-inside: 0
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
brackets:
forbid: false
min-spaces-inside: 0
max-spaces-inside: 0
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
comments:
require-starting-space: true
ignore-shebangs: true
min-spaces-from-content: 1
comments-indentation: disable
document-start: disable
empty-lines:
max: 2
max-start: 0
max-end: 0
empty-values:
forbid-in-block-mappings: true
forbid-in-flow-mappings: true
forbid-in-block-sequences: true
float-values:
forbid-inf: false
forbid-nan: false
forbid-scientific-notation: false
require-numeral-before-decimal: true
hyphens:
max-spaces-after: 1
indentation:
spaces: 2
indent-sequences: true
check-multi-line-strings: false
key-duplicates:
forbid-duplicated-merge-keys: false
line-length:
max: 256
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: false
level: warning
new-line-at-end-of-file: {}
new-lines:
type: unix
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: false
quoted-strings:
quote-type: double
required: only-when-needed
extra-required:
# Quoting variables like $FOO, ${FOO} or ${{FOO}} is required, since some tools, like k3d, preprocess the YAML files
# and replace the variables with their values. If the value is not quoted, it sometimes leads to schema validation errors.
# For example, if the configuration is like `port: ${REGISTRY_PORT}`, it will be replaced with `5000`, and the resulting
# configuration will be `port: 5000` which type is number, but the schema expects a string like `port: "5000". To prevent
# this, we should quote every variable for safety. About this regex, see https://regex101.com/r/IblYeC/1
- \$([a-zA-Z0-9_.]+|{\s*[a-zA-Z0-9_.]+\s*}|{{\s*[a-zA-Z0-9_.]+\s*}})
extra-allowed: []
allow-quoted-quotes: true
check-keys: false
trailing-spaces: {}
truthy:
allowed-values:
- "true"
- "false"
check-keys: false # prevent checking keys since GitHub Actions workflow uses "on" as a key
ignore: |
node_modules/
**/charts/*/templates
**/charts/*/crds
**/charts/*/Chart.yaml
**/charts/*/values.yaml
.moon/docker