-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.yamllint
58 lines (55 loc) · 1.38 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
---
# Based on ansible-lint config
extends: default
locale: en_US.UTF-8
## ignore paths
## ref: https://github.com/adrienverge/yamllint/blob/master/docs/configuration.rst#ignoring-paths
ignore-from-file: [.gitignore, .yamlignore]
#ignore:
# - .github/stale.yml
# - .travis.yml
# - archive/
# - collections/
# - save/
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
# comments: disable
comments:
## compatibility with ansible-lint
## ref: https://ansible.readthedocs.io/projects/lint/rules/yaml/#yamllint-configuration
min-spaces-from-content: 1 # prettier compatibility
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
# indentation: disable
key-duplicates: enable
# key-ordering: enable
line-length: disable
# line-length:
# max: 120
# level: warning
new-line-at-end-of-file: disable
new-lines:
type: unix
octal-values:
## compatibility with ansible-lint
## ref: https://ansible.readthedocs.io/projects/lint/rules/yaml/#yamllint-configuration
forbid-implicit-octal: true # yamllint defaults to false
forbid-explicit-octal: true # yamllint defaults to false
trailing-spaces: disable
truthy: disable