Enable complexity at the default max_tasks and empty warn_list so experimental findings fail Lint. Replace the repository-wide role-name skip with an ignore line for the internal role _binary_update, so a misnamed public role fails. Closes #138 Assisted-by: Claude Code:claude-opus-5-5
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
---
|
|
# The production profile is ansible-lint's strictest. It enforces
|
|
# var-naming[no-role-prefix]: every role variable carries the role name as a prefix.
|
|
profile: production
|
|
|
|
exclude_paths:
|
|
- .gitea
|
|
- .venv
|
|
- apm_modules
|
|
- apm.lock.yaml
|
|
- changelogs
|
|
- images
|
|
|
|
# The collections of the Collection's dependencies (galaxy.yml) are pinned in requirements.yml and
|
|
# resolved offline: the ci image bakes them into /opt/collections and scripts/dev-setup.sh installs
|
|
# them into .ansible/collections, so their modules are linted, not mocked. The Collection's own role
|
|
# names (mortis.kamino.<role>, used by the scenarios) resolve the same way: scripts/ansible-lint.sh,
|
|
# which the hook runs, links the checkout as ansible_collections/mortis/kamino. A bare `ansible-lint`
|
|
# does not do that and reports the role names as not found; run it through the hook.
|
|
|
|
# meta-runtime[unsupported-version] checks requires_ansible against a list built into
|
|
# ansible-lint, which ends at 2.19 in 26.10.1. The floor is the pinned ansible-core minor
|
|
# (meta/runtime.yml), so that minor is added here; move it with the pin.
|
|
supported_ansible_also:
|
|
- "2.22."
|
|
|
|
# complexity runs at the default max_tasks (100) until the schema accepts the key (#139). An empty
|
|
# warn_list makes experimental rules (complexity), jinja[spacing] and fqcn[deep] fail Lint.
|
|
enable_list:
|
|
- complexity
|
|
warn_list: []
|