go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.56k stars 570 forks source link

Warn against reading from a closed channel #2845

Open dlsniper opened 7 years ago

dlsniper commented 7 years ago

When the plugin will get more advanced functionality for flow analysis, a possible inspection to have would be detecting reads from channels that can be closed or writes on channels that are closed in other functions. I'll follow up with examples of such code.