-
Notifications
You must be signed in to change notification settings - Fork 4
/
.golangci.yml
62 lines (62 loc) · 1.29 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
run:
concurrency: 4
timeout: 5m
go: '1.19'
linters:
enable-all: true
disable:
- dupl
- wrapcheck
- tagliatelle
- gomnd
- nlreturn
- gochecknoglobals
- lll
- ireturn
- exhaustivestruct
- exhaustruct
- contextcheck
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/omni/tokenbridge-monitor)
funlen:
lines: 60
statements: 40
varnamelen:
ignore-names:
- db
- tx
- q
ignore-decls:
- w http.ResponseWriter
- r *http.Request
- r chi.Router
- bt *entity.BlockTimestamp
- ok bool
- wg *sync.WaitGroup
- i int
wsl:
allow-cuddle-declarations: true
gosec:
excludes:
- G114
issues:
exclude:
- .* should only be cuddled with .*
- only one cuddle assignment allowed before .* statement
- .* should not be cuddled .*
- go statements can only invoke functions assigned on line above
- only cuddled expressions if assigning variable or using from line above
- append only allowed to cuddle with appended value
- for statement without condition should never be cuddled
exclude-rules:
- path: cmd
linters:
- cyclop
- funlen
- path: '(.+)_test\.go'
linters:
- funlen