-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy path.yamllint
43 lines (38 loc) · 1.66 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
extends: default
ignore:
- config # Skip autogenerated config dir from liniting
rules:
# Rules to control the number of spaces around operators
braces:
min-spaces-inside: 0 # No spaces required inside braces
max-spaces-inside: 1 # Maximum one space inside braces
brackets:
min-spaces-inside: 0
max-spaces-inside: 1
colons:
max-spaces-before: 0
max-spaces-after: 1
commas:
max-spaces-before: 0
max-spaces-after: 1
hyphens:
max-spaces-after: 1
# Rules to control indentation
indentation:
spaces: consistent # Spaces should be consistently used for indentation
indent-sequences: whatever # Either indenting or not indenting individual block sequences is OK
comments-indentation: enable # Comments should be indented the same as the content
# Rules to control lines
line-length:
max: 200 # Maximum 150 characters per line
allow-non-breakable-words: true # Allow long words without breaks
allow-non-breakable-inline-mappings: true # Allow long inline mappings without breaks
empty-lines:
max: 2 # Maximum two consecutive empty lines allowed
trailing-spaces: enable # Ensure no trailing spaces at the end of lines
# Other rules
comments:
min-spaces-from-content: 1 # At least one space required between content and comment
key-duplicates: enable # Ensure no duplicate keys in mappings
truthy:
allowed-values: ['true', 'false', 'on', 'off'] # Allow only these values for boolean scalars