File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,12 @@ linters:
187187 linters :
188188 - dupl
189189
190+ # Deprecated linters
191+ - path : pkg/lint/lintersdb/builder_linter.go
192+ text : " SA1019: wsl.NewV4 is deprecated: use NewV5 instead."
193+ linters :
194+ - staticcheck
195+
190196formatters :
191197 enable :
192198 - gofmt
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ package wsl
33import (
44 "github.com/bombsimon/wsl/v5"
55
6- "github.com/golangci/golangci-lint/v2/pkg/golinters/internal"
7-
86 "github.com/golangci/golangci-lint/v2/pkg/config"
97 "github.com/golangci/golangci-lint/v2/pkg/goanalysis"
8+ "github.com/golangci/golangci-lint/v2/pkg/golinters/internal"
109)
1110
1211func NewV5 (settings * config.WSLv5Settings ) * goanalysis.Linter {
@@ -30,6 +29,6 @@ func NewV5(settings *config.WSLv5Settings) *goanalysis.Linter {
3029
3130 return goanalysis .
3231 NewLinterFromAnalyzer (wsl .NewAnalyzer (conf )).
33- WithVersion (5 ).
32+ WithVersion (5 ). //nolint:mnd // It's the linter version.
3433 WithLoadMode (goanalysis .LoadModeSyntax )
3534}
You can’t perform that action at this time.
0 commit comments