-
Notifications
You must be signed in to change notification settings - Fork 60
/
.yamllint
73 lines (52 loc) · 1.87 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
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
yaml-files:
- '*.yaml'
- '*.yml'
- '*.map'
rules:
# Enforces consistent usage of braces {} for inline mappings
braces: enable
# Enforces consistent usage of brackets [] for inline sequences
brackets: enable
# Ensures colons are used correctly in key-value pairs, as per YAML's specifications
colons: enable
# Ensures that commas are used correctly in YAML files
commas: enable
# Flags comments that are problematic, but set to warning level
comments:
level: warning
# Flags inconsistent indentation in comments, but set to warning level
comments-indentation:
level: warning
# Disables requirement for a '...' to signify the end of a document
document-end: disable
# Disables requirement for '---' at the start of a document
document-start: disable
# Enforces consistent usage of empty lines between blocks
empty-lines: enable
# Disables the check for empty values in YAML files
empty-values: disable
# Enforces correct usage of hyphens for list items
hyphens: enable
# Ensures that the indentation in YAML files is consistent
indentation: enable
# Checks that keys within a mapping are unique
key-duplicates: enable
# Disables the rule for key ordering within a mapping
key-ordering: disable
# Disables line length check
line-length: disable
# Enables the requirement for a new line at the end of the file
new-line-at-end-of-file: enable
# Disables the check for Unix-style newlines (LF)
new-lines: disable
# Disables the check for octal values in YAML files
octal-values: disable
# Disables the rule for enforcing quoted strings
quoted-strings: disable
# Checks for trailing whitespaces at the end of lines
trailing-spaces: enable
# Flags truthy values (e.g., 'yes', 'no', 'true', 'false') but set to warning level
# Also disables check for keys
truthy:
check-keys: false
level: warning