/
.yamllint.yaml
53 lines (49 loc) · 1.28 KB
/
.yamllint.yaml
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
# yamllint configuration for use with Home Assistant YAML-files. All formatting
# related rules are disabled – this is left to Prettier instead.
#
# This configuration is explicitly scoped to *only* include YAML-files that
# belong to Home Assistant (i.e. non-HA files are intentionally excluded).
yaml-files:
- "*.yaml"
ignore: |
/.*
/.cloud
/.github
/.storage
/blueprints
/custom_components
/known_devices.yaml
extends: default
rules:
braces:
forbid: non-empty
brackets:
forbid: non-empty
colons: disable
commas: disable
comments: disable
comments-indentation: disable
document-end: disable
document-start: disable
empty-lines: disable
empty-values:
forbid-in-block-mappings: true
forbid-in-flow-mappings: true
hyphens: disable
indentation: disable
key-duplicates: enable
key-ordering: disable
line-length: disable
new-line-at-end-of-file: disable
new-lines: disable
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true
quoted-strings:
required: only-when-needed
extra-required:
# Force the 24-hour clock format (e.g. 09:30:00) to be quoted even though
# it's not strictly necessary from a YAML perspective.
- ^[0-9]{2}:[0-9]{2}(:[0-9]{2})?$
trailing-spaces: disable
truthy: enable