homelab/.yamllint.yml
Nik Afiq 08d2b97410 chore: add yamllint and ansible-lint configs for local validation
Stage 2 of REFACTOR_PLAN.md. Repo had no CI or local validation tooling at
all. Tuned rules to match this repo's existing conventions (no trailing
newline on hand-written manifests, aligned comment blocks) rather than
rewriting hundreds of pre-existing files to satisfy defaults.

Baseline is clean: yamllint reports 0 issues repo-wide, kubeconform validates
117 manifests + 20 Argo CD Applications, and all Ansible playbooks pass
--syntax-check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-23 18:14:50 +09:00

26 lines
511 B
YAML

# Config for: yamllint
# Applied by: yamllint -c .yamllint.yml .
extends: default
rules:
line-length: disable
document-start: disable
new-line-at-end-of-file: disable
comments-indentation: disable
commas:
max-spaces-after: -1
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true
truthy:
allowed-values: ["true", "false", "on"]
comments:
min-spaces-from-content: 1
braces:
max-spaces-inside: 1
brackets:
max-spaces-inside: 1
ignore: |
router/