Skip to content

Commit 86797cf

Browse files
committed
chore: lint
1 parent c190a14 commit 86797cf

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.golangci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
190196
formatters:
191197
enable:
192198
- gofmt

pkg/golinters/wsl/wsl_v5.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ package wsl
33
import (
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

1211
func 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
}

0 commit comments

Comments
 (0)