-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.golangci.yml
More file actions
89 lines (79 loc) · 1.81 KB
/
Copy path.golangci.yml
File metadata and controls
89 lines (79 loc) · 1.81 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
# .golangci.yml
run:
tests: true
timeout: 5m
linters:
disable-all: true
enable:
- bodyclose
- dogsled
- errcheck
# - copyloopvar
- goconst
- gocritic
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- nolintlint
- revive
- staticcheck
- stylecheck
# - typecheck # explicitly excluded by not enabling
- unconvert
- unparam
- unused
issues:
max-issues-per-linter: 10000
max-same-issues: 10000
exclude-rules:
# Exclude issues related to "simtypes"
- linters:
- staticcheck
text: "simtypes"
# Exclude weak RNG warning from gosec
- linters:
- gosec
text: "Use of weak random number generator"
# ST1003: Poorly named variable (allowed for now)
- linters:
- stylecheck
text: "ST1003:"
# ST1016: Receiver name should be a reflection of its identity
# FIXME: Disabled until golangci-lint updates stylecheck
# https://github.com/dominikh/go-tools/issues/389
- linters:
- stylecheck
text: "ST1016:"
# SA1019: Use of deprecated function
- linters:
- staticcheck
text: "SA1019:"
path: migrations
linters-settings:
revive:
# Ignore GENERATED files
ignore-generated-header: true
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
gci:
custom-order: true
sections:
- standard
- default
- blank
- dot
- prefix(github.com/cometbft/cometbft)
- prefix(github.com/cosmos)
- prefix(cosmossdk.io)
- prefix(github.com/cosmos/cosmos-sdk)
- prefix(github.com/terpnetwork/terp-core)
gosec:
excludes:
- G404 # Allow math/rand (for test/data generation, etc.)