-
Notifications
You must be signed in to change notification settings - Fork 10
/
.golangci.yml
53 lines (51 loc) · 1.41 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
linters-settings:
govet:
enable:
- shadow
linters:
disable-all: true
enable:
- errcheck
- gosimple
- goimports
- govet
- ineffassign
- staticcheck
- unused
issues:
exclude-use-default: true
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
# Exclude cosmos-sdk module genesis.go files as they are generated with an
# empty import block containing a comment used by ignite CLI.
- path: ^x/.+/genesis\.go$
linters:
- goimports
# Exclude cosmos-sdk module module.go files as they are generated with unused
# parameters and unchecked errors.
- path: ^x/.+/module\.go$
linters:
- revive
- errcheck
# Exclude cosmos-sdk module tx.go files as they are generated with unused
# constants.
- path: ^x/.+/cli/tx\.go$
linters:
- unused
# Exclude simulation code as it's generated with lots of unused parameters.
- path: .*/simulation/.*|_simulation\.go$
linters:
- revive
# Exclude cosmos-sdk module codec files as they are scaffolded with a unused
# paramerters and a comment used by ignite CLI.
- path: ^x/.+/codec.go$
linters:
- revive
# Exclude test files from errcheck linter
- path: _test\.go$
linters:
- errcheck
# TODO_IMPROVE: see https://golangci-lint.run/usage/configuration/#issues-configuration
#new: true,
#fix: true,