-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
51 lines (50 loc) · 1.35 KB
/
.golangci.yml
File metadata and controls
51 lines (50 loc) · 1.35 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "2"
linters:
default: standard
enable:
- errcheck
- govet
- staticcheck
- unused
- ineffassign
- gocritic
- revive
exclusions:
rules:
# Allow unchecked errors in tests for brevity.
- path: _test\.go
linters:
- errcheck
# Allow unused params in tests (http handler signatures).
- path: _test\.go
linters:
- revive
text: unused-parameter
# Allow unused ctx in interface implementations (signature required by interface).
- linters:
- revive
text: unused-parameter.*ctx
# Package name "errors" intentionally shadows stdlib.
- path: errors/
linters:
- revive
text: var-naming.*conflict
# Allow min/max as parameter names — clear and idiomatic for range functions.
- linters:
- revive
text: redefines-builtin-id
# example main doesn't need a package comment.
- path: examples/
linters:
- revive
text: package-comments
# Allow unused params in example handlers (http handler signatures).
- path: examples/
linters:
- revive
text: unused-parameter
# request.RequestID is an intentional public API name.
- path: request/header\.go
linters:
- revive
text: stutters