New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: add 'unused' analyses from staticcheck #36602
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Comments
/cc @ridersofrohan |
Change https://golang.org/cl/222817 mentions this issue: |
https://golang.org/cl/222817 provides an opt in analyzer to detect potentially unused parameters. It still needs some work, specifically:
|
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Mar 26, 2020
This change adds a pass that checks for unused parameters inside of a function. It is disabled by default. Updates golang/go#36602 Change-Id: I9e8de3368f16f27e7816ec4ddb16935e1a05584e Reviewed-on: https://go-review.googlesource.com/c/tools/+/222817 Run-TryBot: Rohan Challa <rohan@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Change https://golang.org/cl/374254 mentions this issue: |
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Jan 14, 2022
Suggest replacing the unused function parameter with _. Updates golang/go#36602 Change-Id: I53738e65907b8a4b4857dd8954f1477a043cf442 Reviewed-on: https://go-review.googlesource.com/c/tools/+/374254 Trust: Suzy Mueller <suzmue@golang.org> Run-TryBot: Suzy Mueller <suzmue@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
We don't have https://pkg.go.dev/honnef.co/go/tools/unused?tab=doc analyses in
gopls
because they require whole program evaluation (due to test variants). We should investigate how we can add these analyses.The text was updated successfully, but these errors were encountered: