-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
68 lines (68 loc) · 1.66 KB
/
.golangci.yaml
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
67
68
run:
timeout: 10m
skip-dirs:
- pkg
linters-settings:
varnamelen:
min-name-length: 1
linters:
enable-all: true
disable:
# disable because the large amount of correspondence
- wrapcheck
# disable because unnecessary field declaration
- exhaustruct
# disable because deprecated since golangci-lint since v1.38.0
- maligned
# disable because deprecated since golangci-lint since v1.39.0
- scopelint
# disable because deprecated since golangci-lint since v1.41.0
- golint
# disable because deprecated since golangci-lint since v1.46.0
- exhaustivestruct
# disable because deprecated since golangci-lint since v1.48.0
- ifshort
# disable because deprecated since golangci-lint since v1.48.1
- nosnakecase
# disable because deprecated since golangci-lint since v1.49.0
- deadcode
- varcheck
- structcheck
# disable because deprecated since golangci-lint since v1.38.0
- interfacer
# disable because because of generics
- rowserrcheck
- sqlclosecheck
- wastedassign
# https://github.com/golangci/golangci-lint/issues/3711
- contextcheck
# disable because know how to use it
- depguard
# FIXME
- goerr113
# FIXME
- gomnd
issues:
exclude-rules:
- path: controller
linters:
- ireturn
- revive
- path: gateway
linters:
- ireturn
- path: _test\.go
linters:
- funlen
- nosprintfhostport
- dupl
- containedctx
- goerr113
- cyclop
- errorlint
- tenv
- gocognit
- maintidx
- lll
- gocyclo
- nlreturn