-
Notifications
You must be signed in to change notification settings - Fork 24
/
.golangci.yml
60 lines (51 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
# golangci-lint configuration
run:
timeout: 10m
issues:
exclude-dirs:
- go-ethereum
- fastcache
exclude-rules:
- path: _test\.go
linters:
- staticcheck
linters:
enable:
- asciicheck # check for non-ascii characters
- errorlint # enure error wrapping is safely done
- gci # keep imports sorted deterministically
- gocritic # check for certain simplifications
- gofmt # ensure code is formatted
- gosec # check for security concerns
- nilerr # ensure errors aren't mishandled
- staticcheck # check for suspicious constructs
- unused # check for unused constructs
linters-settings:
errcheck:
# report when type assertions aren't checked for errors as in
# a := b.(MyStruct)
#
check-type-assertions: true
gci:
sections:
- standard
- default
- prefix(github.com/ethereum/go-ethereum)
- prefix(github.com/offchainlabs)
gocritic:
disabled-tags:
- experimental
- opinionated
disabled-checks:
- ifElseChain
- assignOp
- unlambda
- exitAfterDefer
gosec:
excludes:
- G404 # checks that random numbers are securely generated
govet:
enable-all: true
disable:
- shadow
- fieldalignment