Skip to content

Commit 49439f8

Browse files
committed
Add golangci-lint config excluding errcheck noise
Exclude fmt.Fprint* (best-effort status output) and io.Closer.Close (deferred cleanup) from errcheck — covers all 13 findings from the linter's first real run.
1 parent 4f58c29 commit 49439f8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: "2"
2+
3+
linters:
4+
settings:
5+
errcheck:
6+
exclude-functions:
7+
- fmt.Fprint
8+
- fmt.Fprintf
9+
- fmt.Fprintln
10+
- (io.Closer).Close

0 commit comments

Comments
 (0)