Skip to content

Commit ff59587

Browse files
authored
Add YAMLint YAML (#40)
1 parent a3df4ec commit ff59587

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

.yamllint.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
rules:
2+
anchors:
3+
forbid-duplicated-anchors: true
4+
forbid-undeclared-aliases: true
5+
forbid-unused-anchors: true
6+
7+
braces:
8+
forbid: 'non-empty'
9+
min-spaces-inside-empty: 0
10+
max-spaces-inside-empty: 0
11+
12+
brackets:
13+
min-spaces-inside: 0
14+
max-spaces-inside: 0
15+
min-spaces-inside-empty: 0
16+
max-spaces-inside-empty: 0
17+
18+
colons:
19+
max-spaces-before: 0
20+
max-spaces-after: 1
21+
22+
commas:
23+
max-spaces-before: 0
24+
min-spaces-after: 1
25+
max-spaces-after: 1
26+
27+
comments:
28+
require-starting-space: true
29+
ignore-shebangs: true
30+
min-spaces-from-content: 1
31+
32+
comments-indentation: {}
33+
34+
document-end:
35+
present: false
36+
37+
document-start:
38+
present: false
39+
40+
empty-lines:
41+
max: 2
42+
max-start: 0
43+
max-end: 1
44+
45+
empty-values:
46+
forbid-in-block-mappings: false
47+
forbid-in-flow-mappings: true
48+
49+
float-values:
50+
forbid-inf: false
51+
forbid-nan: false
52+
forbid-scientific-notation: false
53+
require-numeral-before-decimal: false
54+
55+
hyphens:
56+
max-spaces-after: 1
57+
58+
indentation:
59+
spaces: 2
60+
indent-sequences: true
61+
check-multi-line-strings: false
62+
63+
key-duplicates: {}
64+
65+
new-line-at-end-of-file: {}
66+
67+
new-lines:
68+
type: 'unix'
69+
70+
octal-values:
71+
forbid-implicit-octal: true
72+
forbid-explicit-octal: false
73+
74+
quoted-strings:
75+
quote-type: 'single'
76+
required: true
77+
allow-quoted-quotes: true
78+
79+
trailing-spaces: {}
80+
81+
truthy:
82+
allowed-values: ['true', 'false', 'on'] # GitHub Actions uses "on"
83+
check-keys: true
84+
85+
ignore:
86+
- 'node_modules/'
87+
- 'thirdparty/'
88+
- 'third_party/'
89+
- 'vendor/'

0 commit comments

Comments
 (0)