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:
187
187
linters :
188
188
- dupl
189
189
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
+
190
196
formatters :
191
197
enable :
192
198
- gofmt
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ package wsl
3
3
import (
4
4
"github.com/bombsimon/wsl/v5"
5
5
6
- "github.com/golangci/golangci-lint/v2/pkg/golinters/internal"
7
-
8
6
"github.com/golangci/golangci-lint/v2/pkg/config"
9
7
"github.com/golangci/golangci-lint/v2/pkg/goanalysis"
8
+ "github.com/golangci/golangci-lint/v2/pkg/golinters/internal"
10
9
)
11
10
12
11
func NewV5 (settings * config.WSLv5Settings ) * goanalysis.Linter {
@@ -30,6 +29,6 @@ func NewV5(settings *config.WSLv5Settings) *goanalysis.Linter {
30
29
31
30
return goanalysis .
32
31
NewLinterFromAnalyzer (wsl .NewAnalyzer (conf )).
33
- WithVersion (5 ).
32
+ WithVersion (5 ). //nolint:mnd // It's the linter version.
34
33
WithLoadMode (goanalysis .LoadModeSyntax )
35
34
}
You can’t perform that action at this time.
0 commit comments