Skip to content

doc: sync pkg/linters/doc.go — add trimleftright, update count to 53 - #46535

Merged
pelikhan merged 2 commits into
mainfrom
copilot/doc-sync-fix-analyzer-count
Jul 19, 2026
Merged

doc: sync pkg/linters/doc.go — add trimleftright, update count to 53#46535
pelikhan merged 2 commits into
mainfrom
copilot/doc-sync-fix-analyzer-count

Conversation

Copilot AI commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

pkg/linters/doc.go declared 52 active analyzers but cmd/linters/main.go registers 53; trimleftright was present in the registry but absent from the doc catalog.

Changes

  • pkg/linters/doc.go: Added trimleftright bullet in alphabetical position (between tolowerequalfold and uncheckedtypeassertion); updated header count from 52 → 53.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix analyzer count in pkg/linters/doc.go doc: sync pkg/linters/doc.go — add trimleftright, update count to 53 Jul 19, 2026
Copilot AI requested a review from pelikhan July 19, 2026 06:27
@pelikhan
pelikhan marked this pull request as ready for review July 19, 2026 06:54
Copilot AI review requested due to automatic review settings July 19, 2026 06:54
@pelikhan
pelikhan merged commit b9599d4 into main Jul 19, 2026
@pelikhan
pelikhan deleted the copilot/doc-sync-fix-analyzer-count branch July 19, 2026 06:54

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

Synchronizes the linter package catalog with the 53 registered analyzers.

Changes:

  • Updates the analyzer count from 52 to 53.
  • Adds the missing trimleftright entry.
Show a summary per file
File Description
pkg/linters/doc.go Updates the analyzer catalog and count.

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: 1
  • Review effort level: Medium

Comment thread pkg/linters/doc.go
// - timeafterleak — flags time.After in select cases inside loops that leak timer channels
// - timesleepnocontext — flags time.Sleep calls in context-aware functions that should propagate cancellation
// - tolowerequalfold — flags case-insensitive comparisons via ToLower/ToUpper that should use EqualFold
// - trimleftright — flags strings.TrimLeft/TrimRight calls with a multi-character literal cutset where TrimPrefix/TrimSuffix was likely intended
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.14

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.

doc-sync: pkg/linters/doc.go says "52 active analyzers" but 53 are registered — trimleftright is omitted

3 participants