Skip to content

[deep-report] Add 6 missing analyzers to pkg/linters/spec_test.go and fix stale count comment #36941

@github-actions

Description

@github-actions

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 ·

  • expires on Jun 6, 2026, 4:01 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions