forked from OffchainLabs/nitro
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
52 lines (44 loc) · 1.1 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
# 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
- 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
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