-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.golangci.yml
70 lines (61 loc) · 1.05 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
run:
go: "1.22"
linters:
enable-all: true
disable:
- cyclop
- exhaustive
- exhaustruct
- depguard
- gci
- gochecknoinits
- gomoddirectives
- ireturn
- nestif
- nlreturn
- nonamedreturns
- unparam
- varnamelen
# deprecated
- bodyclose
- contextcheck
- nilerr
- noctx
- rowserrcheck
- sqlclosecheck
- tparallel
- unparam
- wastedassign
linters-settings:
revive:
rules:
- name: line-length-limit
disabled: true
arguments: [120]
funlen:
lines: 100
statements: 50
gocognit:
min-complexity: 40
gosec:
excludes:
- G115
- G204
mnd:
ignored-numbers: 0o600,0o755,0o644,0.5,3,5,10,16,32,64,128,100,100.0,0xff
ignored-files: config/config.go,fcrypt/utils.go
interfacebloat:
max: 12
issues:
include:
- EXC0002
exclude-rules:
- path: _test.go
linters:
- funlen
- gocyclo
- gochecknoglobals
- gocognit
- paralleltest
- dupl
- maintidx