Skip to content

lint: enable the expanded shared rubocop-go cop catalog - #4564

Merged
dgageot merged 3 commits into
docker:mainfrom
dgageot:worktree-board-621170e4784f14ab
Oct 9, 2026
Merged

dgageot merged 3 commits into
docker:mainfrom
dgageot:worktree-board-621170e4784f14ab

Conversation

@dgageot

@dgageot dgageot commented Oct 9, 2026

Copy link
Copy Markdown
Member

We bumped github.com/dgageot/rubocop-go to pick up a batch of new
shared opt-in cops, then turned them on for this repo. The goal is to
close the gap between what the shared catalog offers and what we
actually enforce, so new code gets the same scrutiny across projects
that use the catalog.

This enables 11 additional cops, bringing us to 34 of the 36 available
cops. ContextFirstParameter and NoContextField stay disabled for
now: turning them on here would mean adding new suppressions or doing
an unrelated refactor, which is out of scope for a lint-catalog bump.
Application code is unchanged — no new nolint directives were
needed anywhere in the codebase. The lint package itself gained
registration, scope, test-package, build-tag, and version-gating
fixtures to cover the newly enabled cops, and the contributing docs
were updated to reflect the current enablement count and link.

Verified with task build, task test, and task lint (golangci-lint
2.14.0). Nothing here changes runtime behavior.

Assisted-By: cagent
Signed-off-by: David Gageot <david.gageot@docker.com>
Turn on the remaining shared rubocop-go checks (context handling,
maps/slices/wait-group modernizations, etc.) across the codebase, add
reasoned suppressions for the lifecycle contexts and public
constructors that legitimately need them, and update the registration
tests and contributing docs to match.

Assisted-By: cagent
@dgageot
dgageot requested a review from a team as a code owner October 9, 2026 12:20
@aheritier aheritier added area/deps Dependency updates and version bumps area/docs Documentation changes area/testing Test infrastructure, CI/CD, test runners, evaluation kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix) labels Oct 9, 2026
@dgageot
dgageot added this pull request to the merge queue Oct 9, 2026
Merged via the queue into docker:main with commit e0f6267 Oct 9, 2026
22 checks passed
@dgageot
dgageot deleted the worktree-board-621170e4784f14ab branch October 9, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/deps Dependency updates and version bumps area/docs Documentation changes area/testing Test infrastructure, CI/CD, test runners, evaluation kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants