forked from ltcsuite/neutrino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
51 lines (46 loc) · 997 Bytes
/
.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
run:
# timeout for analysis
deadline: 10m
linters-settings:
govet:
# Don't report about shadowed variables
check-shadowing: false
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
maligned:
suggest-new: true
linters:
disable-all: true
enable:
- asciicheck
- deadcode
- dupl
- errcheck
- goimports
- gosec
- gosimple
- govet
- ineffassign
- prealloc
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck
# Others to consider that do not pass presently:
# - nilerr
# - makezero
issues:
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
- errcheck
- dupl
# Instances of table driven tests that don't pre-allocate shouldn't
# trigger the linter.
- prealloc