forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.golangci.yml
57 lines (51 loc) · 1.32 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
run:
deadline: 10m
linters:
# Skip autogenerated files for mobile and gRPC.
skip-files:
- "mobile\\/.*generated\\.go"
- "\\.pb\\.go$"
- "\\.pb\\.gw\\.go$"
disable-all: true
enable:
- asciicheck
- bidichk
- bodyclose
- errchkjson
- exportloopref
- gofmt
- gosimple
- govet
- grouper
- ineffassign
- nosprintfhostport
- reassign
- rowserrcheck
- typecheck
- unconvert
- unused
- vetshadow
issues:
# Only show newly introduced problems.
new-from-rev: 01f696afce2f9c0d4ed854edefa3846891d01d8a
exclude-rules:
# Exclude gosec from running for tests so that tests with weak randomness
# (math/rand) will pass the linter.
- path: _test\.go
linters:
- gosec
# Fix false positives because of build flags in itest directory.
- path: lntest/itest/.*
linters:
- unused
- deadcode
- unparam
- govet
# 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