Cleanup golangci-lint errcheck (#1339)
Move the errcheck excludes list from an external file to inline in the golangci-lint config file. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
ca6ba04f2f
commit
d03abf3a31
|
@ -53,7 +53,11 @@ linters-settings:
|
|||
#- pkg: "regexp"
|
||||
# desc: "Use github.com/grafana/regexp instead of regexp"
|
||||
errcheck:
|
||||
exclude: scripts/errcheck_excludes.txt
|
||||
exclude-functions:
|
||||
# The following 2 methods always return nil as the error
|
||||
- (*github.com/cespare/xxhash/v2.Digest).Write
|
||||
- (*github.com/cespare/xxhash/v2.Digest).WriteString
|
||||
- (*bufio.Writer).WriteRune
|
||||
goimports:
|
||||
local-prefixes: github.com/prometheus/client_golang
|
||||
gofumpt:
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
// The following 2 methods always return nil as the error
|
||||
(*github.com/cespare/xxhash/v2.Digest).Write
|
||||
(*github.com/cespare/xxhash/v2.Digest).WriteString
|
||||
|
||||
(*bufio.Writer).WriteRune
|
Loading…
Reference in New Issue