-
Notifications
You must be signed in to change notification settings - Fork 320
/
.golangci.yml
67 lines (60 loc) · 1.25 KB
/
.golangci.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
run:
timeout: 7m
linters:
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- unparam
- unconvert
- bodyclose
- decorder
- makezero
- nilnil
- nilerr
- rowserrcheck
- tenv
- wastedassign
- unparam
- misspell
- unconvert
- depguard
- unused
issues:
exclude-use-default: true
exclude-case-sensitive: false
max-issues-per-linter: 50
max-same-issues: 10
new: false
exclude-rules:
# False positive httptest.NewRecorder
- path: 'gateway/webhook/webhook_test.go'
linters:
- bodyclose
# False positive .Close behind if
- path: 'processor/transformer/transformer.go'
linters:
- bodyclose
# False positive httptest.NewRecorder
- path: 'gateway/gateway_test.go'
linters:
- bodyclose
- path: 'cmd/rudder-cli/status/status.go'
linters:
- bodyclose
linters-settings:
depguard:
rules:
main:
files:
- $all
- "!**/uuid_test.go"
deny:
- pkg: "github.com/gofrs/uuid"
desc: 'use github.com/google/uuid instead'
- pkg: "golang.org/x/exp/slices"
desc: 'use "slices" instead'