x/tools/gopls: add the shadow analyser #43245
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
I would like to request the ability to enable the shadow analyser in my
gopls
. I think it's a very useful analyser, and I tend to add it to my project's CI/CD pipelines anyways, so it would be nice to be able to immediately see when I accidentally introduce shadowed variables into my code or when I can fix an existing shadowing issue.A proposed settings object could look something like this:
The possible values are:
""
, disable the analyser, the default value."nonstrict"
, enable without thestrict
option."strict"
, enable with thestrict
option.The text was updated successfully, but these errors were encountered: