Skip to content

Commit ff13a81

Browse files
committed
fix: wsl v5 needs types
1 parent 86797cf commit ff13a81

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/golinters/wsl/wsl_v5.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ func NewV5(settings *config.WSLv5Settings) *goanalysis.Linter {
3030
return goanalysis.
3131
NewLinterFromAnalyzer(wsl.NewAnalyzer(conf)).
3232
WithVersion(5). //nolint:mnd // It's the linter version.
33-
WithLoadMode(goanalysis.LoadModeSyntax)
33+
WithLoadMode(goanalysis.LoadModeTypesInfo)
3434
}

pkg/lint/lintersdb/builder_linter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
705705
linter.NewConfig(zerologlint.New()).
706706
WithSince("v1.53.0").
707707
WithLoadForGoAnalysis().
708+
WithLoadForGoAnalysis().
708709
WithURL("https://github.com/ykadowak/zerologlint"),
709710

710711
// nolintlint must be last because it looks at the results of all the previous linters for unused nolint directives

0 commit comments

Comments
 (0)