{"repo":"kisielk/errcheck","free":true,"listed":false,"github":"https://github.com/kisielk/errcheck","clone":"git clone https://github.com/kisielk/errcheck.git","description":"errcheck checks that you checked errors.","language":"Go","stars":2527,"topics":["go","errcheck","error","linter"],"license":"MIT","category":"dev-tools","readme_excerpt":"errcheck errcheck finds silently ignored errors in Go code. For all callables that are not in the excluded list, all returned errors must be either assigned to a variable or explicitly discarded by being assigned to . Please note that errcheck does not do any further analysis on assigned errors. For example, it will not complain about this: For such analysis and more, please see staticcheck. Install go install github.com/kisielk/errcheck@latest errcheck requires Go 1.25 or newer. Use For basic usage, just give the package path of interest as the first argument: errcheck github.com/kisielk/errcheck/testdata To check all packages beneath the current directory: errcheck ./... Or check all packages in your $GOPATH and $GOROOT : errcheck all errcheck also recognizes the following command-line options: The -tags flag takes a space-separated list of build tags, just like go build . If you are using any custom build tags in your code base, you may need to specify the relevant tags here. The -asserts flag enables checking for ignored type assertion results. It takes no arguments. The -blank flag enables checking for assignments of errors to the blank identifier. It takes no arguments. The -abspath flag prints the absolute paths to files with unchecked errors. The -mod flag sets the module download mode to use: readonly or vendor . go/analysis The package provides Analyzer instance that can be used with go/analysis API. Currently supported flags are blank , assert , exclude , and exclu","default_branch":null,"files":null,"tree":[],"storefront":"/r/kisielk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kisielk/errcheck/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}