You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doc-sync: pkg/linters/doc.go says "45 active analyzers" but 51 are registered — 6 newest linters omitted #46131
pkg/linters/doc.go has drifted out of sync with the analyzer registry in cmd/linters/main.go. The doc header reads // All 45 active analyzers: and lists 45 bullets, but 51 analyzers are actually registered — a drift of 6.
This is the same doc-sync class fixed before (#40436, #45185); the list has simply fallen behind again as 6 new linters landed without doc updates.
Documented: pkg/linters/doc.go:3 header // All 45 active analyzers: + 45 // - <name> bullets.
The 6 omitted analyzers (registered but absent from doc.go bullets)
bytesbufferstring
ioutildeprecated
logfatallibrary
mapclearloop
mapdeletecheck
stringscountcontains
These are exactly the 6 newest linters.
Impact
The package doc is the canonical human-facing inventory of the custom linters; a 6-analyzer undercount plus a wrong header count misleads contributors about what coverage exists and which linters to reference for //nolint directives.
Low runtime risk, but it recurs every few linters and has previously been treated as worth fixing.
Recommendation
Update the header to // All 51 active analyzers:.
Add the 6 missing bullets (alphabetical, matching the existing one-line name — description style; descriptions can be lifted from each analyzer's Doc field).
Activity
github-actions commentedon Jul 17, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪