1+ version : " 2"
12run :
23 tests : true
34 timeout : 10m
4- sort-results : true
55 allow-parallel-runners : true
6- exclude-dir : testutil/testdata_pulsar
76 concurrency : 4
8-
97linters :
10- disable-all : true
8+ default : none
119 enable :
10+ - copyloopvar
1211 - dogsled
13- - exportloopref
12+ - errcheck
13+ - errorlint
1414 - goconst
1515 - gocritic
16- - gofumpt
1716 - gosec
18- - gosimple
1917 - govet
2018 - ineffassign
2119 - misspell
2220 - nakedret
2321 - nolintlint
22+ - revive
2423 - staticcheck
25- - stylecheck
26- - typecheck
24+ - thelper
2725 - unconvert
2826 - unused
27+ - tagalign
2928
29+ settings :
30+ dogsled :
31+ max-blank-identifiers : 3
32+ gocritic :
33+ disabled-checks :
34+ - regexpMust
35+ - appendAssign
36+ - ifElseChain
37+ gosec :
38+ excludes :
39+ - G101
40+ - G107
41+ - G404
42+ confidence : medium
43+ misspell :
44+ locale : US
45+ nolintlint :
46+ allow-unused : false
47+ require-explanation : false
48+ require-specific : false
49+ revive :
50+ rules :
51+ - name : redefines-builtin-id
52+ disabled : true
53+ - name : exported
54+ severity : error
55+ disabled : false
56+ staticcheck :
57+ checks :
58+ - all
59+ unused :
60+ local-variables-are-used : false
61+ exclusions :
62+ generated : lax
63+ presets :
64+ - common-false-positives
65+ - legacy
66+ - std-error-handling
67+ rules :
68+ - linters :
69+ - staticcheck
70+ text : ' ST1000:'
71+ - linters :
72+ - revive
73+ text : ' or be unexported' # don't report types that have no comments at all. there are way too many of these.
74+ - linters :
75+ - staticcheck
76+ text : ' ST1003:'
77+ - linters :
78+ - staticcheck
79+ text : ' ST1016:'
80+ - linters :
81+ - staticcheck
82+ path : migrations
83+ text : ' SA1019:'
84+ - linters :
85+ - staticcheck
86+ text : ' SA1019: codec.NewAminoCodec is deprecated'
87+ - linters :
88+ - staticcheck
89+ text : ' SA1019: legacybech32.MustMarshalPubKey'
90+ - linters :
91+ - staticcheck
92+ text : ' SA1019: legacybech32.MarshalPubKey'
93+ - linters :
94+ - staticcheck
95+ text : ' SA1019: legacybech32.UnmarshalPubKey'
96+ - linters :
97+ - staticcheck
98+ text : ' SA1019: params.SendEnabled is deprecated'
99+ - linters :
100+ - gosec
101+ text : ' G115: integer overflow conversion'
102+ - linters :
103+ - nolintlint
104+ text : leading space
105+ paths :
106+ - .*\.pb\.go$
107+ - .*\.pb\.gw\.go$
108+ - .*\.pulsar\.go$
109+ - third_party$
110+ - builtin$
111+ - examples$
112+ - ./pystarport/*
113+ - testutil/testdata_pulsar
30114issues :
31- exclude-rules :
32- - text : " Use of weak random number generator"
33- linters :
34- - gosec
35- - text : " ST1003:"
36- linters :
37- - stylecheck
38- # FIXME: Disabled until golangci-lint updates stylecheck with this fix:
39- # https://github.com/dominikh/go-tools/issues/389
40- - text : " ST1016:"
41- linters :
42- - stylecheck
43- - path : " migrations"
44- text : " SA1019:"
45- linters :
46- - staticcheck
47- - text : " leading space"
48- linters :
49- - nolintlint
50-
51115 max-issues-per-linter : 10000
52116 max-same-issues : 10000
53-
54- linters-settings :
55- dogsled :
56- max-blank-identifiers : 3
57- maligned :
58- # print struct with more effective memory layout or not, false by default
59- suggest-new : true
60- nolintlint :
61- allow-unused : false
62- allow-leading-space : true
63- require-explanation : false
64- require-specific : false
117+ formatters :
118+ enable :
119+ - gci
120+ - gofumpt
121+ settings :
122+ gci :
123+ sections :
124+ - standard
125+ - default
126+ - prefix(cosmossdk.io)
127+ - prefix(github.com/cosmos/cosmos-sdk)
128+ custom-order : true
129+ gofumpt :
130+ extra-rules : true
131+ exclusions :
132+ generated : lax
133+ paths :
134+ - server/grpc/gogoreflection/fix_registration.go
135+ - fix_registration.go
136+ - .*\.pb\.go$
137+ - .*\.pb\.gw\.go$
138+ - .*\.pulsar\.go$
139+ - proto/*
140+ - third_party$
141+ - builtin$
142+ - examples$
143+ - ./pystarport/*
0 commit comments