forked from decred/dcrlnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
42 lines (38 loc) · 1.11 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
issues:
exclude-rules:
# Ignore govet.lostcancel in integration test files. The
# integration tests make substantial use of context.WithTimeout()
# without corresponding cancel() calls, which trigger this. So
# disable these warnings for now until this is fixed upstream
# (otherwise merging upstream itest changes will become
# significantly harder)
- path: lntest/
text: lostcancel
# Exclude gosec from running for tests so that tests with weak randomness
# (math/rand) will pass the linter.
- path: _test\.go
linters:
- gosec
run:
deadline: 10m
linters:
skip-files: "mobile\\/.*generated\\.go"
disable-all: true
enable:
- asciicheck
- bidichk
- bodyclose
- errchkjson
- exportloopref
- gofmt
- gosimple
- govet
- grouper
- ineffassign
- nosprintfhostport
- reassign
- rowserrcheck
- typecheck
- unconvert
- unused
- vetshadow