-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
.yamllint.yaml
60 lines (52 loc) 路 1.08 KB
/
.yamllint.yaml
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
---
locale: en_US.UTF-8
yaml-files:
- "*.yaml"
- "*.yml"
# - '*.yml.tpl'
ignore: |
.helmwave/
tests/
.changie.yaml
.github
# See: https://yamllint.readthedocs.io/en/stable/rules.html
rules:
braces:
forbid: non-empty
min-spaces-inside: 0
max-spaces-inside: 2
min-spaces-inside-empty: 0
max-spaces-inside-empty: 2
brackets:
forbid: false
min-spaces-inside: 0
max-spaces-inside: 2
min-spaces-inside-empty: 0
max-spaces-inside-empty: 2
colons: enable
commas: enable
# I like comments
comments: disable
comments-indentation:
level: warning
# I don't like yaml ---
document-end: disable
document-start: disable
empty-lines:
max: 10
max-end: 10
max-start: 10
empty-values: enable
float-values: enable
octal-values: disable
hyphens: enable
indentation: disable # maybe later
key-duplicates: enable
key-ordering: disable # I prefer ordering by meaning
line-length:
max: 120
new-line-at-end-of-file: enable
new-lines: enable
quoted-strings: disable
trailing-spaces: disable
truthy: disable