Skip to content

Commit fc608e7

Browse files
committed
Cleanup golangci-lint errcheck
Move the errcheck excludes list from an external file to inline in the golangci-lint config file. Signed-off-by: SuperQ <[email protected]>
1 parent e26aafa commit fc608e7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.golangci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ issues:
1212

1313
linters-settings:
1414
errcheck:
15-
exclude: scripts/errcheck_excludes.txt
15+
exclude-functions:
16+
# Used in HTTP handlers, any error is handled by the server itself.
17+
- (net/http.ResponseWriter).Write
18+
# Never check for logger errors.
19+
- (github.com/go-kit/log.Logger).Log
20+

scripts/errcheck_excludes.txt

-4
This file was deleted.

0 commit comments

Comments
 (0)