File: errcheck_excludes.txt

package info (click to toggle)
prometheus 2.42.0%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,628 kB
  • sloc: javascript: 2,423; yacc: 587; sh: 378; lex: 183; makefile: 179
file content (13 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Don't flag lines such as "io.Copy(io.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.
(github.com/go-kit/log.Logger).Log

// Never check for rollback errors as Rollback() is called when a previous error was detected.
(github.com/prometheus/prometheus/storage.Appender).Rollback