Skip to content

Document linters.All() in pkg/linters spec - #48015

Merged
pelikhan merged 2 commits into
mainfrom
copilot/spec-librarian-fix-accuracy-issue
Jul 25, 2026
Merged

Document linters.All() in pkg/linters spec#48015
pelikhan merged 2 commits into
mainfrom
copilot/spec-librarian-fix-accuracy-issue

Conversation

Copilot AI commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

pkg/linters/README.md had drifted from the package surface: the exported All() registry function was undocumented, and the source-verified appendix still reported zero exported functions. This updates the spec to match the current namespace API.

  • Public API

    • adds All to the Namespace exports table
    • describes it as the canonical []*analysis.Analyzer registry for multichecker wiring and doc/test synchronization
  • Source-verified export coverage

    • updates the exported function count from 0 to 1
    • preserves the appendix’s statement that all exported symbols are already documented above

Example of the added API surface:

// All returns all registered custom analysis linters.
func All() []*analysis.Analyzer

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix exported function documentation for linters package Document linters.All() in pkg/linters spec Jul 25, 2026
Copilot AI requested a review from pelikhan July 25, 2026 14:06
@pelikhan
pelikhan marked this pull request as ready for review July 25, 2026 14:14
Copilot AI review requested due to automatic review settings July 25, 2026 14:14
@pelikhan
pelikhan merged commit b223674 into main Jul 25, 2026
@pelikhan
pelikhan deleted the copilot/spec-librarian-fix-accuracy-issue branch July 25, 2026 14:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Documents the existing linters.All() API and corrects exported-symbol coverage.

Changes:

  • Adds All to namespace exports.
  • Updates the exported function count from 0 to 1.
Show a summary per file
File Description
pkg/linters/README.md Documents All() and corrects export coverage.

Review details

Tip

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.4

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.

[spec-librarian] Specification Audit — 2026-07-25 — 1 issue found

3 participants