File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -336,11 +336,10 @@ func (l *Loader) handleDeprecation() error {
336
336
}
337
337
l .cfg .Output .ShowStats = l .cfg .Run .ShowStats || l .cfg .Output .ShowStats
338
338
339
- // The 2 options are true by default.
340
339
// Deprecated since v1.63.0
341
- if ! l .cfg .Output .UniqByLine {
340
+ if l .cfg .Output .UniqByLine != nil {
342
341
l .log .Warnf ("The configuration option `output.uniq-by-line` is deprecated, please use `issues.uniq-by-line`" )
343
- l .cfg .Issues .UniqByLine = l .cfg .Output .UniqByLine
342
+ l .cfg .Issues .UniqByLine = * l .cfg .Output .UniqByLine
344
343
}
345
344
346
345
// Deprecated since v1.57.0
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ type Output struct {
52
52
Format string `mapstructure:"format"`
53
53
54
54
// Deprecated: use [Issues.UniqByLine] instead.
55
- UniqByLine bool `mapstructure:"uniq-by-line"`
55
+ UniqByLine * bool `mapstructure:"uniq-by-line"`
56
56
}
57
57
58
58
func (o * Output ) Validate () error {
You can’t perform that action at this time.
0 commit comments