ci(lint): enable and gate ansible-lint's complexity rule
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
This commit is contained in:
1 parent
31634c4eef
commit
3b20a1b6c6
3 files changed
+11
-6
No files matched your search
+5
-4
@@ -24,7 +24,8 @@ exclude_paths:
|
||||
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
|
||||
# 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: []
|
||||
Reference in new issue
Block a user