add-ha-gitops #2
@@ -9,12 +9,22 @@ rules:
|
|||||||
|
|
||||||
# Allow indentation to be flexible for Home Assistant configs
|
# Allow indentation to be flexible for Home Assistant configs
|
||||||
indentation:
|
indentation:
|
||||||
spaces: 2
|
spaces: consistent
|
||||||
indent-sequences: true
|
indent-sequences: whatever
|
||||||
|
check-multi-line-strings: false
|
||||||
|
|
||||||
# Allow comments at various positions
|
# Allow comments at various positions
|
||||||
comments:
|
comments:
|
||||||
min-spaces-from-content: 1
|
min-spaces-from-content: 1
|
||||||
|
level: warning
|
||||||
|
|
||||||
|
# Allow comment indentation flexibility
|
||||||
|
comments-indentation: disable
|
||||||
|
|
||||||
|
# Allow empty lines
|
||||||
|
empty-lines:
|
||||||
|
max: 2
|
||||||
|
level: warning
|
||||||
|
|
||||||
# Allow empty values (common in HA configs)
|
# Allow empty values (common in HA configs)
|
||||||
empty-values:
|
empty-values:
|
||||||
@@ -28,6 +38,7 @@ rules:
|
|||||||
# Relax truthy checks for on/off (common in HA)
|
# Relax truthy checks for on/off (common in HA)
|
||||||
truthy:
|
truthy:
|
||||||
allowed-values: ['true', 'false', 'yes', 'no', 'on', 'off']
|
allowed-values: ['true', 'false', 'yes', 'no', 'on', 'off']
|
||||||
|
check-keys: false
|
||||||
|
|
||||||
# Allow both flow and block styles
|
# Allow both flow and block styles
|
||||||
braces:
|
braces:
|
||||||
@@ -43,6 +54,19 @@ rules:
|
|||||||
quote-type: any
|
quote-type: any
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
# Disable document start requirement (HA doesn't use ---)
|
||||||
|
document-start: disable
|
||||||
|
|
||||||
|
# Allow trailing spaces (HA auto-formats may add them)
|
||||||
|
trailing-spaces: disable
|
||||||
|
|
||||||
|
# Allow new line at end of file to be missing
|
||||||
|
new-line-at-end-of-file: disable
|
||||||
|
|
||||||
|
# Relax new lines rules
|
||||||
|
new-lines:
|
||||||
|
type: unix
|
||||||
|
|
||||||
ignore: |
|
ignore: |
|
||||||
.venv/
|
.venv/
|
||||||
venv/
|
venv/
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
# Loads default set of integrations. Do not remove.
|
# Loads default set of integrations. Do not remove.
|
||||||
default_config:
|
default_config:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user