Description
The custom linter multichecker registers 21 analyzers in cmd/linters/main.go, but pkg/linters/spec_test.go (documentedAnalyzers()) only validates 15 — leaving 6 production-active analyzers with no spec regression protection: contextcancelnotdeferred, fmterrorfnoverbs, jsonmarshalignoredeerror, seenmapbool, strconvparseignorederror, tolowerequalfold. All 6 are fully implemented with unit tests and testdata; jsonmarshalignoredeerror even has 13 active //nolint: sites proving live enforcement. The stale comment at spec_test.go:44 still says the README documents 15.
Acceptance Criteria
- Add all 6 analyzers to
documentedAnalyzers() in pkg/linters/spec_test.go.
- Update the
15 count comment to 21.
go test ./pkg/linters/... passes.
Expected Impact
Closes the spec-coverage gap so future analyzer additions/removals are caught by the spec test; protects 6 currently-unguarded production linters.
Suggested Agent
Dead Code Removal Agent or any Go refactoring agent.
Estimated Effort
Quick (< 1 hour)
Data Source
DeepReport 2026-06-04; source report #36919.
Generated by 🔬 DeepReport - Intelligence Gathering Agent · opus48 17.8M · ◷
Description
The custom linter multichecker registers 21 analyzers in
cmd/linters/main.go, butpkg/linters/spec_test.go(documentedAnalyzers()) only validates 15 — leaving 6 production-active analyzers with no spec regression protection:contextcancelnotdeferred,fmterrorfnoverbs,jsonmarshalignoredeerror,seenmapbool,strconvparseignorederror,tolowerequalfold. All 6 are fully implemented with unit tests and testdata;jsonmarshalignoredeerroreven has 13 active//nolint:sites proving live enforcement. The stale comment atspec_test.go:44still says the README documents 15.Acceptance Criteria
documentedAnalyzers()inpkg/linters/spec_test.go.15count comment to21.go test ./pkg/linters/...passes.Expected Impact
Closes the spec-coverage gap so future analyzer additions/removals are caught by the spec test; protects 6 currently-unguarded production linters.
Suggested Agent
Dead Code Removal Agent or any Go refactoring agent.
Estimated Effort
Quick (< 1 hour)
Data Source
DeepReport 2026-06-04; source report #36919.