-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.yamllint
More file actions
42 lines (40 loc) · 941 Bytes
/
.yamllint
File metadata and controls
42 lines (40 loc) · 941 Bytes
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
---
# Specify the files to lint
yaml-files:
- '*.yaml'
- '*.yml'
- .yamllint
# Define the linting rules
rules:
braces: enable
brackets: enable
colons: enable
commas: enable
comments:
level: error
comments-indentation:
level: error
document-end: disable
document-start:
present: true # Ensure that documents start with '---'
level: error # Set the level to error
empty-lines: enable
empty-values: disable
hyphens: enable
indentation:
spaces: 2 # Use 2 spaces for indentation
level: error # Set the level to error
indent-sequences: true
check-multi-line-strings: false
key-duplicates: enable
key-ordering: disable
# Unavoidable due to long queries.
line-length: disable
new-line-at-end-of-file: enable
new-lines: enable
octal-values: disable
quoted-strings: disable
trailing-spaces:
level: error # Warn about trailing spaces
truthy:
level: error