Open
Description
(via HaTS)
Gopls has an analyzer that reports failure to use the result of a call to certain functions. We haven't yet come up with a way to generalize this feature without adding a lot of noisy diagnostics. However, it would be easy to add an (optional) discrete inlay hint showing that an error result has been ignored, as this is often a mistake. (Clearly common functions like fmt.Println would need to be excluded.) For example:
🙈 file.Close()
(That's U+1F648 SEE-NO-EVIL MONKEY. Better ideas welcome.)