...

Text file src/github.com/prometheus/alertmanager/scripts/errcheck_excludes.txt

Documentation: github.com/prometheus/alertmanager/scripts

     1// Don't flag lines such as "io.Copy(io.Discard, resp.Body)".
     2io.Copy
     3// The next two are used in HTTP handlers, any error is handled by the server itself.
     4io.WriteString
     5(net/http.ResponseWriter).Write
     6// No need to check for errors on server's shutdown.
     7(*net/http.Server).Shutdown
     8
     9// Never check for logger errors.
    10(github.com/go-kit/log.Logger).Log
    11
    12// Never check for rollback errors as Rollback() is called when a previous error was detected.
    13(github.com/prometheus/prometheus/storage.Appender).Rollback

View as plain text