-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
48 lines (48 loc) · 921 Bytes
/
.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
linters:
enable-all: true
disable:
- depguard
- exhaustruct
- funlen
- gochecknoglobals
- gochecknoinits
- godox
- gofumpt
- goerr113
- ireturn
- nonamedreturns
- testpackage
linters-settings:
cyclop:
max-complexity: 12
skip-tests: true
mnd:
ignored-functions:
- 'math.*'
- 'decimal.*'
paralleltest:
ignore-missing: true
varnamelen:
min-name-length: 2
ignore-type-assert-ok: true
ignore-map-index-ok: true
ignore-chan-recv-ok: true
ignore-names:
- err
ignore-decls:
- c echo.Context
- t testing.T
- f *foo.Bar
- e error
- i int
- const C
- T any
- K any
- V any
- m map[string]int
issues:
exclude-rules:
# Exclude `lll` issues for long lines with `go:generate`.
- linters:
- lll
source: "^( |\t)*//(go:generate |( |\t)*@)"