Repository navigation
go: strict tier runs staticcheck's full set, forvar, and SA as errors (#14655) - #14716
Merged
Merged
Conversation
…#14655) Strict staticcheck now runs every check except SA9003, ST1000, ST1003, ST1016 and ST1020-ST1023, listed as -NAME so gopls turns them off too. Strict govet adds forvar, x/tools' successor to copyloopvar. staticcheck SA findings are errors and the tool is supported. New real-result cases cover SA4006, errcheck type assertions, forvar and the opt-in ST1003. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hxcqqAoDeuSr83mscS
Collaborator
Author
|
Review: approved I found nothing that blocks merge. Checked against #14655 and the PR head (84d407b). What I checked:
Non-blocking notes:
🤖 Generated with Claude Code |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #14655
-NAME, andcore/quality/tiers/gopls/gen.rswrites them asfalse, because gopls's staticcheck switch would otherwise turn them on.forvar, x/tools' successor to copyloopvar. The other analyzers the issue names already run by default.SAfindings are errors.S,STandU1000findings stay warnings. The tool moves fromknowntosupported.The third-party analyzers from the issue (errorlint, exhaustive, noctx, bodyclose, sqlclosecheck, contextcheck, gosec, forbidigo/nolintlint) are tracked in #14714.
Tested
tools/dx teston the touched packages, real-result cases and gopls drift tests: 248 passed.//tools/ci:prose_rules_testfails on design pages this PR does not touch. 121 passed again after rebasing on main.tools/dx format/lint/typecheckon the touched packages: format and typecheck pass. Lint reports warnings only in files this PR does not change.tools/dx check --affected: generate fails on gate: full dx generate fails on ambiguous Kotlin grades imports after #14343 (part of #9216) #14500 (Kotlingradesambiguous imports, Flutter locks), so the gate skips the later phases.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hxcqqAoDeuSr83mscS