Skip to content
This repository has been archived by the owner on Apr 1, 2018. It is now read-only.

Latest commit

 

History

History
74 lines (55 loc) · 2.94 KB

GoErrCheckBear.rst

File metadata and controls

74 lines (55 loc) · 2.94 KB

Checks the code for all function calls that have unchecked errors. GoErrCheckBear runs errcheck over each file to find such functions.

For more information on the analysis visit <https://github.com/kisielk/errcheck>.

  • Go

Settings

Setting Meaning
asserts Enables checking for ignored type assertion results. (Optional, defaults to 'False'.)
blank Enables checking for assignments of errors to the blank identifier. (Optional, defaults to 'False'.)
ignore Comma-separated list of pairs of the form package:regex. For each package, the regex describes which functions to ignore within that package. The package may be omitted to have the regex apply to all packages. (Optional, defaults to '[]'.)
ignorepkg Takes a comma-separated list of package import paths to ignore. (Optional, defaults to '[]'.)

Demo

asciicast

Dependencies

  • go - github.com/kisielk/errcheck

Can Detect

  • Syntax

License

AGPL-3.0

Authors