x/tools/gopls: add analyzer for finding unnecessary any
type constraints
#51792
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Go1.18 is released and we can now use generics.
We need to have an analyzer to find unnecessary
any
, because I think there are many people that useany
for type constraints without thinking.I developed an analyzer called
gencon
for finding theany
and give some hints of type constraints here.gencon
reports as follows:Would you consider introducing the analyzer to gopls?
The text was updated successfully, but these errors were encountered: