Skip to content

docs(linters): expand doc.go and spec_test to cover all 21 analyzers#37009

Merged
pelikhan merged 2 commits into
mainfrom
copilot/deep-report-document-custom-analyzers
Jun 4, 2026
Merged

docs(linters): expand doc.go and spec_test to cover all 21 analyzers#37009
pelikhan merged 2 commits into
mainfrom
copilot/deep-report-document-custom-analyzers

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 4, 2026

pkg/linters/doc.go mentioned only 4 of 21 analyzers; spec_test.go tested only 15. The README already had all 21 entries. This brings the other two files in sync.

Changes

  • pkg/linters/doc.go — Replaces the 4-item mention with a full alphabetical list of all 21 analyzers, each with a one-line description of what it catches.
  • pkg/linters/spec_test.go — Adds the 6 previously absent analyzers (contextcancelnotdeferred, fmterrorfnoverbs, jsonmarshalignoredeerror, seenmapbool, strconvparseignorederror, tolowerequalfold) to documentedAnalyzers() with their imports, and updates the count comment from 15 → 21.

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Document all 21 custom analyzers in pkg/linters/README.md and doc.go docs(linters): expand doc.go and spec_test to cover all 21 analyzers Jun 4, 2026
Copilot AI requested a review from gh-aw-bot June 4, 2026 23:46
@pelikhan pelikhan marked this pull request as ready for review June 4, 2026 23:47
Copilot AI review requested due to automatic review settings June 4, 2026 23:47
@pelikhan pelikhan merged commit b2506fb into main Jun 4, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/deep-report-document-custom-analyzers branch June 4, 2026 23:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR synchronizes the linter namespace documentation and the README-driven spec test with the full set of analyzers already documented in pkg/linters/README.md, ensuring the package docs and tests reflect all 21 analyzer subpackages.

Changes:

  • Expand pkg/linters/doc.go to list all 21 analyzer subpackages with one-line descriptions.
  • Update pkg/linters/spec_test.go to include the 6 previously omitted analyzers in documentedAnalyzers() (and their imports), aligning the spec test with the README.
Show a summary per file
File Description
pkg/linters/spec_test.go Adds the missing analyzer imports and extends documentedAnalyzers() to cover all 21 README-documented analyzer subpackages.
pkg/linters/doc.go Replaces the partial analyzer mention with a complete list of all active analyzers and brief descriptions.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[deep-report] Document all 21 custom analyzers in pkg/linters/README.md and doc.go

4 participants