-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
73 lines (70 loc) · 1.51 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
67
68
69
70
71
72
73
run:
concurrency: 8
timeout: 2m
issues-exit-code: 1
tests: false
linters-settings:
gocognit:
min-complexity: 15
gocyclo:
min-complexity: 15
gofmt:
simplify: true
gosimple:
go: "1.17"
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
govet:
check-shadowing: true
enable-all: true
nestif:
min-complexity: 5
staticcheck:
go: "1.17"
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
stylecheck:
go: "1.17"
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
thelper:
test:
first: true
name: true
begin: true
benchmark:
first: true
name: true
begin: true
tb:
first: true
name: true
begin: true
unused:
go: "1.17"
linters:
disable-all: false
disable:
- gochecknoinits
- interfacer
- golint
- scopelint
- maligned
- gofumpt
- goimports
- lll
- wsl
- exhaustivestruct
- gochecknoglobals
- nlreturn
- varnamelen
- wrapcheck
- goerr113
- forbidigo
- ireturn
- noctx
- tagliatelle
- gomnd
enable-all: true
fast: false
issues:
max-issues-per-linter: 0
max-same-issues: 0
fix: true