1
+ version : " 2"
1
2
run :
2
- tests : true
3
- timeout : 15m
4
- allow-parallel-runners : true
5
3
build-tags :
6
4
- e2e
7
5
- ledger
8
6
- test_ledger_mock
9
7
- sims
10
-
8
+ tests : true
9
+ allow-parallel-runners : true
11
10
linters :
12
- disable-all : true
11
+ default : none
13
12
enable :
13
+ - copyloopvar
14
14
- dogsled
15
15
- errcheck
16
16
- errorlint
17
- - copyloopvar
18
- - gci
19
17
- goconst
20
18
- gocritic
21
- - gofumpt
22
19
- gosec
23
- - gosimple
24
20
- govet
25
21
- ineffassign
26
22
- misspell
27
23
- nakedret
28
24
- nolintlint
29
25
- revive
30
26
- staticcheck
31
- - stylecheck
32
27
- thelper
33
- - typecheck
34
28
- unconvert
35
29
- unused
36
-
30
+ settings :
31
+ dogsled :
32
+ max-blank-identifiers : 6
33
+ gocritic :
34
+ disabled-checks :
35
+ - regexpMust
36
+ - appendAssign
37
+ - ifElseChain
38
+ gosec :
39
+ excludes :
40
+ - G101
41
+ - G107
42
+ - G404
43
+ confidence : medium
44
+ misspell :
45
+ locale : US
46
+ nolintlint :
47
+ require-explanation : true
48
+ require-specific : false
49
+ allow-unused : false
50
+ revive :
51
+ rules :
52
+ - name : redefines-builtin-id
53
+ disabled : true
54
+ staticcheck :
55
+ checks :
56
+ - all
57
+ unused :
58
+ local-variables-are-used : false
59
+ exclusions :
60
+ generated : lax
61
+ presets :
62
+ - comments
63
+ - common-false-positives
64
+ - legacy
65
+ - std-error-handling
66
+ rules :
67
+ - linters :
68
+ - staticcheck
69
+ text : ' ST1003:'
70
+ - linters :
71
+ - staticcheck
72
+ text : ' ST1016:'
73
+ - linters :
74
+ - staticcheck
75
+ path : migrations
76
+ text : ' SA1019:'
77
+ - linters :
78
+ - staticcheck
79
+ text : ' SA1019: codec.NewAminoCodec is deprecated'
80
+ - linters :
81
+ - staticcheck
82
+ text : ' SA1019: legacybech32.MustMarshalPubKey'
83
+ - linters :
84
+ - staticcheck
85
+ text : ' SA1019: legacybech32.MarshalPubKey'
86
+ - linters :
87
+ - staticcheck
88
+ text : ' SA1019: legacybech32.UnmarshalPubKey'
89
+ - linters :
90
+ - staticcheck
91
+ text : ' SA1019: params.SendEnabled is deprecated'
92
+ - linters :
93
+ - gosec
94
+ text : ' G115: integer overflow conversion'
95
+ - linters :
96
+ - nolintlint
97
+ text : leading space
98
+ paths :
99
+ - server/grpc/gogoreflection/fix_registration.go
100
+ - fix_registration.go
101
+ - .*\.pb\.go$
102
+ - .*\.pb\.gw\.go$
103
+ - .*\.pulsar\.go$
104
+ - crypto/keys/secp256k1/internal/*
105
+ - types/coin_regex.go
106
+ - testutil/testdata
107
+ - x/params
108
+ - x/crisis
109
+ - third_party$
110
+ - builtin$
111
+ - examples$
37
112
issues :
38
- exclude-dirs :
39
- - testutil/testdata
40
- - x/params
41
- - x/crisis
42
- exclude-files :
43
- - server/grpc/gogoreflection/fix_registration.go
44
- - " fix_registration.go"
45
- - " .*\\ .pb\\ .go$"
46
- - " .*\\ .pb\\ .gw\\ .go$"
47
- - " .*\\ .pulsar\\ .go$"
48
- - crypto/keys/secp256k1/internal/*
49
- - types/coin_regex.go
50
- exclude-rules :
51
- - text : " ST1003:" # We are fine with our current naming
52
- linters :
53
- - stylecheck
54
- # FIXME: Disabled until golangci-lint updates stylecheck with this fix:
55
- # https://github.com/dominikh/go-tools/issues/389
56
- - text : " ST1016:" # Ok with inconsistent receiver names
57
- linters :
58
- - stylecheck
59
- - path : " migrations" # migraitions always use deprecated code
60
- text : " SA1019:"
61
- linters :
62
- - staticcheck
63
- - text : " SA1019: codec.NewAminoCodec is deprecated" # TODO remove once migration path is set out
64
- linters :
65
- - staticcheck
66
- - text : " SA1019: legacybech32.MustMarshalPubKey" # TODO remove once ready to remove from the sdk
67
- linters :
68
- - staticcheck
69
- - text : " SA1019: legacybech32.MarshalPubKey" # TODO remove once ready to remove from the sdk
70
- linters :
71
- - staticcheck
72
- - text : " SA1019: legacybech32.UnmarshalPubKey" # TODO remove once ready to remove from the sdk
73
- linters :
74
- - staticcheck
75
- - text : " SA1019: params.SendEnabled is deprecated" # TODO remove once ready to remove from the sdk
76
- linters :
77
- - staticcheck
78
- - text : " G115: integer overflow conversion" # We are doing this everywhere.
79
- linters :
80
- - gosec
81
- - text : " leading space"
82
- linters :
83
- - nolintlint
84
113
max-issues-per-linter : 10000
85
114
max-same-issues : 10000
86
-
87
- linters-settings :
88
- gci :
89
- custom-order : true
90
- sections :
91
- - standard # Standard section: captures all standard packages.
92
- - default # Default section: contains all imports that could not be matched to another section type.
93
- - prefix(cosmossdk.io)
94
- - prefix(github.com/cosmos/cosmos-sdk)
95
- revive :
96
- rules :
97
- - name : redefines-builtin-id
98
- disabled : true
99
-
100
- gosec :
101
- # Available rules: https://github.com/securego/gosec#available-rules
102
- excludes :
103
- - G101 # Potential hardcoded credentials
104
- - G107 # Potential HTTP request made with variable url
105
- - G404 # Use of weak random number generator (math/rand instead of crypto/rand)
106
- exclude-generated : true
107
- confidence : medium
108
- misspell :
109
- locale : US
110
- gofumpt :
111
- extra-rules : true
112
- dogsled :
113
- max-blank-identifiers : 6
114
- nolintlint :
115
- allow-unused : false
116
- require-explanation : true
117
- require-specific : false
118
- gosimple :
119
- checks : ["all"]
120
- gocritic :
121
- disabled-checks :
122
- - regexpMust
123
- - appendAssign
124
- - ifElseChain
125
- unused :
126
- local-variables-are-used : false
115
+ formatters :
116
+ enable :
117
+ - gci
118
+ - gofumpt
119
+ settings :
120
+ gci :
121
+ sections :
122
+ - standard
123
+ - default
124
+ - prefix(cosmossdk.io)
125
+ - prefix(github.com/cosmos/cosmos-sdk)
126
+ custom-order : true
127
+ gofumpt :
128
+ extra-rules : true
129
+ exclusions :
130
+ generated : lax
131
+ paths :
132
+ - server/grpc/gogoreflection/fix_registration.go
133
+ - fix_registration.go
134
+ - .*\.pb\.go$
135
+ - .*\.pb\.gw\.go$
136
+ - .*\.pulsar\.go$
137
+ - crypto/keys/secp256k1/internal/*
138
+ - types/coin_regex.go
139
+ - testutil/testdata
140
+ - x/params
141
+ - x/crisis
142
+ - third_party$
143
+ - builtin$
144
+ - examples$
0 commit comments