5 ms·
In my opinion, it should be a compile error to ignore return values without explicitly throwing them away with _.
by khyryk 13y ago
In my opinion, it should be a compile error to ignore return values without explicitly throwing them away with _.
- Dobbs 13y agoerrcheck will add this as an optional linter. I've adjusted the git hooks on my machine to run errcheck and fail the commit if it doesn't pass (unless I specifically disable it).
- aaronblohowiak 13y agoadd https://github.com/kisielk/errcheck https://github.com/kisielk/errcheck to your continuous integration process.