x/tools/gopls: ui.diagnostic.analyses -> shadow should allow exclude-rules, eg for err #67440
Labels
gopls/analysis
Issues related to running analysis in gopls
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Is your feature request related to a problem? Please describe.
Showing shadowed variables can help to prevent some bugs but in most go code, the variable
err
is quite often shadowed which is ok. Therefore we see a lot of shadowed warnings which are not relevant and it is harder to see the relevant ones.Describe the solution you'd like
When
shadow
is enabled, it should also be possible to add some kind ofignores
like either directly exclude variable names or at least messages likegovet
withexclude-rules
.Describe alternatives you've considered
I couldn't find an alternative except for keeping
shadow
disabled.The text was updated successfully, but these errors were encountered: