x/tools/gopls: provide a suggested fix for unused variables #48975
Labels
FeatureRequest
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
help wanted
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
As pointed out in #48938, gopls doesn't currently tag unused variables as 'unnecessary', because we compute the 'unnecessary' tag by looking for suggested fixes that are pure deletions. We could change the way we compute the 'unnecessary' tag, but it is approximately the same amount of work to provide a suggested fix.
This is a good issue for an external contributor, as it just involves writing and hooking up an analyzer.
The text was updated successfully, but these errors were encountered: