forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
119 lines (116 loc) · 3.03 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
run:
skip-files:
- "libs/pubsub/query/query.peg.go"
linters:
enable:
- asciicheck
- bodyclose
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
- goconst
- gofmt
- goimports
#- revive
- gosec
- gosimple
- govet
- ineffassign
- misspell
#- nakedret
- nolintlint
- prealloc
- staticcheck
# - structcheck // to be fixed by golangci-lint
- stylecheck
- typecheck
- unconvert
- unused
issues:
exclude-rules:
- path: _test\.go
linters:
- gosec
- staticcheck
- nolintlint
- path: test/fuzz/
linters:
- gosec
- nolintlint
- staticcheck
max-same-issues: 50
linters-settings:
dogsled:
max-blank-identifiers: 3
golint:
min-confidence: 0
maligned:
suggest-new: true
goconst:
ignore-tests: true
depguard:
rules:
main:
files:
- $all
- "!$test"
allow:
- $gostd
- github.com/tendermint
- github.com/cometbft
- github.com/cosmos
- github.com/gogo
- github.com/Workiva/go-datastructures
- github.com/ChainSafe/go-schnorrkel
- github.com/creachadair/taskgroup
- github.com/gtank/merlin
- github.com/btcsuite/btcd/btcec/v2
- github.com/BurntSushi/toml
- github.com/go-git/go-git/v5
- github.com/go-kit
- github.com/go-logfmt/logfmt
- github.com/gofrs/uuid
- github.com/google
- github.com/gorilla/websocket
- github.com/informalsystems/tm-load-test/pkg/loadtest
- github.com/lib/pq
- github.com/libp2p/go-buffer-pool
- github.com/Masterminds/semver/v3
- github.com/minio/highwayhash
- github.com/oasisprotocol/curve25519-voi
- github.com/pkg/errors
- github.com/prometheus
- github.com/rcrowley/go-metrics
- github.com/rs/cors
- github.com/snikch/goodman
- github.com/spf13
- github.com/stretchr/testify/require
- github.com/syndtr/goleveldb
test:
files:
- "$test"
allow:
- $gostd
- github.com/cosmos
- github.com/tendermint
- github.com/cometbft
- github.com/gogo
- github.com/Workiva/go-datastructures
- github.com/ChainSafe/go-schnorrkel
- github.com/creachadair/taskgroup
- github.com/gtank/merlin
- github.com/adlio/schema
- github.com/btcsuite/btcd
- github.com/fortytw2/leaktest
- github.com/go-kit
- github.com/google/uuid
- github.com/gorilla/websocket
- github.com/lib/pq
- github.com/oasisprotocol/curve25519-voi/primitives/merlin
- github.com/ory/dockertest
- github.com/pkg/errors
- github.com/prometheus/client_golang/prometheus/promhttp
- github.com/spf13
- github.com/stretchr/testify