Skip to content

Commit d03abf3

Browse files
authored
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>
1 parent ca6ba04 commit d03abf3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.golangci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ linters-settings:
5353
#- pkg: "regexp"
5454
# desc: "Use github.com/grafana/regexp instead of regexp"
5555
errcheck:
56-
exclude: scripts/errcheck_excludes.txt
56+
exclude-functions:
57+
# The following 2 methods always return nil as the error
58+
- (*github.com/cespare/xxhash/v2.Digest).Write
59+
- (*github.com/cespare/xxhash/v2.Digest).WriteString
60+
- (*bufio.Writer).WriteRune
5761
goimports:
5862
local-prefixes: github.com/prometheus/client_golang
5963
gofumpt:

scripts/errcheck_excludes.txt

-5
This file was deleted.

0 commit comments

Comments
 (0)