---
# 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."

skip_list:
  # role-name requires ^[a-z][a-z0-9_]*$, which rejects the leading underscore that marks an
  # internal role (_binary_update), as in prometheus.prometheus (roles/_common).
  - role-name
