chore(lint): scope ansible-lint to files it can analyze #40
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/chore/ansible-lint-exclude"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ansible-lint was expanding roles/ and playbooks/ into 166-167 files (71 Jinja templates, 23 CLAUDE.md, shipped scripts, Python tests it cannot analyze). Excludes role templates, shipped files, role tests and markdown.
Measured in a CI-like setup (dummy vault password, collections installed): 167 files processed before, 93 after; 0 findings in both, identical output. Local wall time is unchanged at about 12-13s (dominated by the per-playbook syntax checks), so this narrows the scope and silences the "Directory expansion discovered N file(s)" warning but is not a speed-up by itself.
🤖 Generated with Claude Code