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
+3
-2
@@ -18,7 +18,7 @@ names a check that does not exist yet and its backlog issue.
|
||||
*Why:* a consumer finds the same thing in the same place. *Held:* review.
|
||||
- **Complexity.** A task file stays within ansible-lint's `complexity` limit, `max_tasks` 100
|
||||
(40 once ansible-lint accepts the key). *Why:* a long task file is hard to review. *Held:*
|
||||
review until the Lint job enables `complexity` and fails on it (#138).
|
||||
control, ansible-lint `complexity` in the Lint job.
|
||||
- **Roadmap.** The pull request that adds a role removes it from the README "Roadmap" list, and
|
||||
the section goes when the list is empty. *Why:* the list is useful only if true. *Held:* review.
|
||||
|
||||
@@ -125,4 +125,5 @@ names a check that does not exist yet and its backlog issue.
|
||||
review that each new internal role has it.
|
||||
- **`role-name` for internal roles.** An internal role is exempted from ansible-lint `role-name`
|
||||
by its own line in `.ansible-lint-ignore`. *Why:* a misnamed public role must still fail.
|
||||
*Held:* review; until #138 replaces it, `.ansible-lint` skips `role-name` repository-wide.
|
||||
*Held:* control, ansible-lint `role-name` in the Lint job; review that each new internal role
|
||||
has its line.
|
||||
Reference in new issue
Block a user