da7239d3c5
- Remove redundant and duplicate ignore patterns - Simplify .DS_Store handling to a single global rule - Ensure custom_components/ is fully ignored - Replace multiple include rules with recursive patterns (e.g. include/**/*.yaml) - Collapse view and include folder whitelisting - Generalize PEM file allowance (!*.pem) - Improve readability and maintainability Result: - ~40% reduction in file size - Same effective ignore/whitelist behavior - Easier to extend and maintain going forward
48 lines
635 B
Plaintext
Executable File
48 lines
635 B
Plaintext
Executable File
# --- Global ignores ---
|
|
.DS_Store
|
|
custom_components/
|
|
old*
|
|
|
|
# System / runtime folders
|
|
.storage/
|
|
.cloud/
|
|
.google.token/
|
|
.Rproj.user/
|
|
|
|
# Logs / DB / temp
|
|
*.log*
|
|
*.db*
|
|
.com*
|
|
|
|
# Sensitive files
|
|
ip_bans.yaml
|
|
secrets.yaml
|
|
known_devices.yaml
|
|
configuration_full.yaml
|
|
configuration_minimal.yaml
|
|
|
|
# Specific ignore
|
|
include/automations/lys_have.yaml
|
|
|
|
# --- Whitelist core files ---
|
|
!*.yaml
|
|
!*.md
|
|
!.gitignore
|
|
!.travis.yml
|
|
!*.pem
|
|
!.HA_VERSION
|
|
!customize
|
|
|
|
# --- Whitelist directories ---
|
|
!www/
|
|
!include/
|
|
!themes/
|
|
!python_scripts/
|
|
!view/
|
|
|
|
# --- Allow structured YAML inside include/ ---
|
|
!include/**/*.yaml
|
|
|
|
# --- Allow view YAML ---
|
|
!view/**/*.yaml
|