forked from aristanetworks/avd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyamllintrc
59 lines (57 loc) · 1.51 KB
/
yamllintrc
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
---
# Used by pre-commit. There is a similar file under the Ansible collection used by ansible-lint.
extends: default
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
rules:
braces:
min-spaces-inside: 0
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:
# prettier compatibility
min-spaces-from-content: 1
level: error
comments-indentation: false
document-start: disable
empty-lines:
max: 1
level: error
ignore:
- /python-avd/pyavd/**/schema/*.schema.yml
- /python-avd/tests/pyavd/schema/
- /python-avd/tests/schema_tools/artifacts/*.schema.yml
hyphens:
level: error
key-duplicates:
forbid-duplicated-merge-keys: true
line-length:
max: 160
ignore:
- /ansible_collections/arista/avd/molecule/**/intended/structured_configs/
- /ansible_collections/arista/avd/molecule/**/intended/structured_configs/cvp/
- /ansible_collections/arista/avd/examples/**/intended/structured_configs/cvp/
- /ansible_collections/arista/avd/changelogs/fragments_backup/
- /ansible_collections/arista/avd/tests/inventory/**/expected_output/
- /python-avd/pyavd/**/schema/
- /.github/workflows/
new-lines:
type: unix
indentation:
level: error
indent-sequences: consistent
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true
truthy: disable