x/tools/gopls: add the nilness analysis #44627
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.
Projects
Milestone
The nilness analysis pass can detect some absurd conditions, like checking a value that has already been proven non-nil against nil. This is especially useful during refactoring, when a new nil check appears before an existing one. I think that this analysis would be a good fit for the
gopls
analysis suite. If I recall correctly, it uses SSA, so it should probably be disabled by default.If there are no objections, I am ready to send a CL soon-ish.
The text was updated successfully, but these errors were encountered: