2019-05-03 06:11:28 -07:00
|
|
|
// Don't flag lines such as "io.Copy(ioutil.Discard, resp.Body)".
|
|
|
|
io.Copy
|
|
|
|
// The next two are used in HTTP handlers, any error is handled by the server itself.
|
|
|
|
io.WriteString
|
|
|
|
(net/http.ResponseWriter).Write
|
|
|
|
// No need to check for errors on server's shutdown.
|
|
|
|
(*net/http.Server).Shutdown
|
|
|
|
|
|
|
|
// Never check for logger errors.
|
2021-06-11 09:18:59 -07:00
|
|
|
(github.com/go-kit/log.Logger).Log
|
2019-05-03 06:11:28 -07:00
|
|
|
|
|
|
|
// Never check for rollback errors as Rollback() is called when a previous error was detected.
|
|
|
|
(github.com/prometheus/prometheus/storage.Appender).Rollback
|