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
15 lines
1.1 KiB
Plaintext
15 lines
1.1 KiB
Plaintext
# var-naming[no-role-prefix] cannot pass inside a role whose name starts with an underscore:
|
|
# ansible-lint strips leading underscores from the variable name but not from the role name, so
|
|
# `_binary_update_x` is compared with the prefix `_binary_update_` as `binary_update_x` and fails.
|
|
# The variables do carry the prefix. Only the internal role's own files are listed; a caller's
|
|
# include_role by FQCN is not checked against that prefix.
|
|
roles/_binary_update/defaults/main.yml var-naming[no-role-prefix]
|
|
roles/_binary_update/tasks/main.yml var-naming[no-role-prefix]
|
|
roles/_binary_update/molecule/check_mode/verify.yml var-naming[no-role-prefix]
|
|
roles/_binary_update/molecule/default/verify.yml var-naming[no-role-prefix]
|
|
roles/_binary_update/molecule/default/tasks/assert_state.yml var-naming[no-role-prefix]
|
|
roles/_binary_update/molecule/resources/roles/binary_update_caller/tasks/main.yml var-naming[no-role-prefix]
|
|
# 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).
|
|
roles/_binary_update role-name
|