Skip to content

Commit

Permalink
Cleanup golangci-lint errcheck (#1339)
Browse files Browse the repository at this point in the history
Move the errcheck excludes list from an external file to inline in the golangci-lint config file.

Signed-off-by: SuperQ <superq@gmail.com>
  • Loading branch information
SuperQ authored Sep 3, 2023
1 parent ca6ba04 commit d03abf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 0 additions & 5 deletions scripts/errcheck_excludes.txt

This file was deleted.

0 comments on commit d03abf3

Please sign in to comment.