Golang errcheck: Difference between revisions

From wikinotes
(Created page with "Checks for ignored errors within your application. = Documentation = <blockquote> {| class="wikitable" |- | github || https://github.com/kisielk/errcheck |- |} </blockquote><!-- Documentation --> = Install = <blockquote> <syntaxhighlight lang="bash"> go install github.com/kisielk/errcheck@latest </syntaxhighlight> </blockquote><!-- Install -->")
 
No edit summary
Line 16: Line 16:
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Install -->
</blockquote><!-- Install -->
= Notes =
<blockquote>
[[VimPlugin:: vim-go]] has a pretty nice setup for ErrCheck, it might be nice to take inspiration from that.
https://github.com/fatih/vim-go/blob/master/autoload/go/lint.vim#L296-L375
</blockquote><!-- Notes -->

Revision as of 18:51, 26 June 2022

Checks for ignored errors within your application.

Documentation

github https://github.com/kisielk/errcheck

Install

go install github.com/kisielk/errcheck@latest

Notes

VimPlugin:: vim-go has a pretty nice setup for ErrCheck, it might be nice to take inspiration from that.

https://github.com/fatih/vim-go/blob/master/autoload/go/lint.vim#L296-L375