-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.golangci.yml
More file actions
34 lines (31 loc) · 839 Bytes
/
Copy path.golangci.yml
File metadata and controls
34 lines (31 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
run:
timeout: 5m
go: "1.26"
linters:
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
disable:
- typecheck # Can be noisy with new Go versions
linters-settings:
errcheck:
check-type-assertions: false
check-blank: false
exclude-functions:
# HTTP response encoding: if the client is gone the write just fails and
# there's nothing to do — ignoring the error is idiomatic for handlers.
- (*encoding/json.Encoder).Encode
issues:
exclude-rules:
# Allow unchecked errors in test files for cleaner tests
- path: _test\.go
linters:
- errcheck
# t.Fatal terminates the test, so a deref after a nil-check + t.Fatal is safe;
# SA5011 flags these as false positives in tests.
- path: _test\.go
text: "SA5011"