-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy path.golangci.yml
More file actions
142 lines (142 loc) · 3.33 KB
/
Copy path.golangci.yml
File metadata and controls
142 lines (142 loc) · 3.33 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: 2
run:
tests: false
# # timeout for analysis, e.g. 30s, 5m, default is 1m
# timeout: 5m
linters:
disable-all: true
enable:
- asciicheck
- bidichk
- bodyclose
- copyloopvar
- depguard
- dogsled
- durationcheck
- errcheck
- errorlint
- errname
- goconst
- gocritic
- goheader
- gomodguard
- goprintffuncname
- gosec
- govet
- importas
- ineffassign
- makezero
- misspell
- nakedret
- nolintlint
- prealloc
- predeclared
- promlinter
- staticcheck
- tparallel
- unconvert
- unparam
- unused
- whitespace
- usetesting
settings:
depguard:
rules:
main:
list-type: lax
files:
- $all
- "!$test"
allow:
# Primary
- $gostd
- github.com/provenance-io/provenance
- github.com/provlabs/vault
- github.com/CosmWasm
- cosmossdk.io
- github.com/cosmos
- github.com/cometbft
- github.com/armon/go-metrics
- google.golang.org
- github.com/spf13
- github.com/golang/protobuf
- github.com/google/uuid
- github.com/gorilla/mux
- github.com/grpc-ecosystem/grpc-gateway
- github.com/hashicorp/go-metrics
- github.com/rs/zerolog
- github.com/stretchr/testify
- sigs.k8s.io/yaml
deny:
- pkg: "github.com/cosmos/cosmos-sdk/x/params"
desc: "The params module is no more."
test:
list-type: lax
files:
- "$test"
allow:
- $gostd
- github.com/stretchr/testify
errcheck:
exclude-functions:
- (fmt.State).Write
govet:
shadow: true
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
golint:
min-confidence: 0
dogsled:
max-blank-identifiers: 3
misspell:
locale: US
mode: default
ignore-rules:
- cancelled
nolintlint:
allow-unused: true
require-explanation: true
require-specific: false
formatters:
enable:
- gofmt
- goimports
- gci
settings:
gci:
custom-order: true
sections:
- standard
- default
- prefix(github.com/cometbft)
- prefix(cosmossdk.io)
- prefix(github.com/cosmos)
- prefix(github.com/provenance-io)
- blank
- dot
issues:
exclude-rules:
- text: "Use of weak random number generator"
linters:
- gosec
- text: "comment on exported var"
linters:
- revive
- text: "don't use an underscore in package name"
linters:
- revive
- text: "don't use underscores in Go names; const (TxEndpoint|TLCategory|TLType|TLAction)_"
linters:
- revive
- text: "ST1003:"
linters:
- stylecheck
- text: "don't use leading k in Go names"
linters:
- revive
max-issues-per-linter: 10000
max-same-issues: 10000