-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.golangci.yml
60 lines (56 loc) · 1.88 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
run:
timeout: 5m
go: '1.19'
linters:
enable-all: true
disable:
- nosnakecase # Replaced by 'unused'
- varcheck # Replaced by 'unused'
- deadcode # Replaced by 'unused
- golint # Replaced by 'revive'
- exhaustivestruct # Replaced by 'exhaustruct'
- interfacer # The repository of the linter has been archived by the owner
- scopelint # Replaced by 'exportloopref'
- ifshort # The repository of the linter has been deprecated by the owner
- maligned # Replaced by govet 'fieldalignment'
- structcheck # Replaced by 'unused'
- rowserrcheck # is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649
- sqlclosecheck # is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649
- wastedassign # is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649
# Want to fix
- godox # we still have fixme's
- cyclop
- funlen
- revive # dot-imports
- stylecheck # dot-imports
- gomnd # dot-imports
- lll
- gocognit # Need to refactor 2 functions
- nestif # Need to refactor 2 functions
- goimports # see https://github.com/golangci/golangci-lint/issues/1490
- depguard
- nakedret
# Not acceptable at all
- gochecknoinits
- exhaustruct
- gochecknoglobals
- paralleltest
- goerr113
- ireturn
- interfacebloat
- wrapcheck
- containedctx
- dupword
- nonamedreturns
- tagliatelle
- varnamelen
- nilnil
- godot
issues:
exclude-rules:
- path: 'test/mocks/(.+)\.go'
linters:
- forcetypeassert
- path: 'test/utils/(.+)\.go'
linters:
- gosec