File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -138,19 +138,30 @@ issues:
138
138
- gomnd
139
139
140
140
- path : pkg/golinters/errcheck.go
141
+ linters : [staticcheck]
141
142
text : " SA1019: errCfg.Exclude is deprecated: use ExcludeFunctions instead"
142
143
- path : pkg/commands/run.go
144
+ linters : [staticcheck]
143
145
text : " SA1019: lsc.Errcheck.Exclude is deprecated: use ExcludeFunctions instead"
146
+ - path : pkg/commands/run.go
147
+ linters : [staticcheck]
148
+ text : " SA1019: c.cfg.Run.ShowStats is deprecated: use Output.ShowStats instead."
144
149
145
150
- path : pkg/golinters/gofumpt.go
151
+ linters : [staticcheck]
146
152
text : " SA1019: settings.LangVersion is deprecated: use the global `run.go` instead."
147
153
- path : pkg/golinters/staticcheck_common.go
154
+ linters : [staticcheck]
148
155
text : " SA1019: settings.GoVersion is deprecated: use the global `run.go` instead."
149
156
- path : pkg/lint/lintersdb/manager.go
157
+ linters : [staticcheck]
150
158
text : " SA1019: (.+).(GoVersion|LangVersion) is deprecated: use the global `run.go` instead."
159
+
151
160
- path : pkg/golinters/unused.go
161
+ linters : [gocritic]
152
162
text : " rangeValCopy: each iteration copies 160 bytes \\ (consider pointers or indexing\\ )"
153
163
- path : test/(fix|linters)_test.go
164
+ linters : [gocritic]
154
165
text : " string `gocritic.go` has 3 occurrences, make it a constant"
155
166
156
167
run :
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ func (c *runCommand) setExitCodeIfIssuesFound(issues []result.Issue) {
398
398
399
399
func (c * runCommand ) printStats (issues []result.Issue ) {
400
400
if c .cfg .Run .ShowStats {
401
- c .log .Warnf ("run.show-stats is deprecated, please use output.show-stats" )
401
+ c .log .Warnf ("The configuration option ` run.show-stats` is deprecated, please use ` output.show-stats` " )
402
402
}
403
403
404
404
if ! c .cfg .Run .ShowStats && ! c .cfg .Output .ShowStats {
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ type Run struct {
23
23
AllowParallelRunners bool `mapstructure:"allow-parallel-runners"`
24
24
AllowSerialRunners bool `mapstructure:"allow-serial-runners"`
25
25
26
- ShowStats bool `mapstructure:"show-stats"` // Deprecated use Output.ShowStats instead.
26
+ // Deprecated: use Output.ShowStats instead.
27
+ ShowStats bool `mapstructure:"show-stats"`
27
28
28
29
// It's obtain by flags and use for the tests and the context loader.
29
30
Args []string // Internal needs.
You can’t perform that action at this time.
0 commit comments