Skip to content

Commit 1a16a04

Browse files
raeperduudashr
authored andcommitted
docs: consistent WithSince versions (golangci#5022)
1 parent ff05c7c commit 1a16a04

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/lint/lintersdb/builder_linter.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
136136
// When a new linter is added the version in `WithSince(...)` must be the next minor version of golangci-lint.
137137
return []*linter.Config{
138138
linter.NewConfig(asasalint.New(&cfg.LintersSettings.Asasalint)).
139-
WithSince("1.47.0").
139+
WithSince("v1.47.0").
140140
WithPresets(linter.PresetBugs).
141141
WithLoadForGoAnalysis().
142142
WithURL("https://github.com/alingse/asasalint"),
@@ -147,7 +147,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
147147
WithURL("https://github.com/tdakkota/asciicheck"),
148148

149149
linter.NewConfig(bidichk.New(&cfg.LintersSettings.BiDiChk)).
150-
WithSince("1.43.0").
150+
WithSince("v1.43.0").
151151
WithPresets(linter.PresetBugs).
152152
WithURL("https://github.com/breml/bidichk"),
153153

@@ -164,7 +164,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
164164
WithURL("https://github.com/lasiar/canonicalHeader"),
165165

166166
linter.NewConfig(containedctx.New()).
167-
WithSince("1.44.0").
167+
WithSince("v1.44.0").
168168
WithLoadForGoAnalysis().
169169
WithPresets(linter.PresetStyle).
170170
WithURL("https://github.com/sivchari/containedctx"),
@@ -215,7 +215,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
215215
WithURL("https://github.com/mibk/dupl"),
216216

217217
linter.NewConfig(dupword.New(&cfg.LintersSettings.DupWord)).
218-
WithSince("1.50.0").
218+
WithSince("v1.50.0").
219219
WithPresets(linter.PresetComment).
220220
WithURL("https://github.com/Abirdcfly/dupword"),
221221

@@ -233,7 +233,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
233233
WithURL("https://github.com/kisielk/errcheck"),
234234

235235
linter.NewConfig(errchkjson.New(&cfg.LintersSettings.ErrChkJSON)).
236-
WithSince("1.44.0").
236+
WithSince("v1.44.0").
237237
WithPresets(linter.PresetBugs).
238238
WithLoadForGoAnalysis().
239239
WithURL("https://github.com/breml/errchkjson"),
@@ -299,7 +299,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
299299
WithURL("https://github.com/gostaticanalysis/forcetypeassert"),
300300

301301
linter.NewConfig(fatcontext.New()).
302-
WithSince("1.58.0").
302+
WithSince("v1.58.0").
303303
WithPresets(linter.PresetPerformance).
304304
WithLoadForGoAnalysis().
305305
WithURL("https://github.com/Crocmagnon/fatcontext"),
@@ -660,7 +660,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
660660
WithURL("https://github.com/ghostiam/protogetter"),
661661

662662
linter.NewConfig(reassign.New(&cfg.LintersSettings.Reassign)).
663-
WithSince("1.49.0").
663+
WithSince("v1.49.0").
664664
WithPresets(linter.PresetBugs).
665665
WithLoadForGoAnalysis().
666666
WithURL("https://github.com/curioswitch/go-reassign"),

0 commit comments

Comments
 (0)