Skip to content

Commit dba8700

Browse files
authored
docs: consistent WithSince versions (#5022)
1 parent b5d83e1 commit dba8700

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
@@ -135,7 +135,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
135135
// When a new linter is added the version in `WithSince(...)` must be the next minor version of golangci-lint.
136136
return []*linter.Config{
137137
linter.NewConfig(asasalint.New(&cfg.LintersSettings.Asasalint)).
138-
WithSince("1.47.0").
138+
WithSince("v1.47.0").
139139
WithPresets(linter.PresetBugs).
140140
WithLoadForGoAnalysis().
141141
WithURL("https://github.com/alingse/asasalint"),
@@ -146,7 +146,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
146146
WithURL("https://github.com/tdakkota/asciicheck"),
147147

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

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

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

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

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

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

300300
linter.NewConfig(fatcontext.New()).
301-
WithSince("1.58.0").
301+
WithSince("v1.58.0").
302302
WithPresets(linter.PresetPerformance).
303303
WithLoadForGoAnalysis().
304304
WithURL("https://github.com/Crocmagnon/fatcontext"),
@@ -653,7 +653,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
653653
WithURL("https://github.com/ghostiam/protogetter"),
654654

655655
linter.NewConfig(reassign.New(&cfg.LintersSettings.Reassign)).
656-
WithSince("1.49.0").
656+
WithSince("v1.49.0").
657657
WithPresets(linter.PresetBugs).
658658
WithLoadForGoAnalysis().
659659
WithURL("https://github.com/curioswitch/go-reassign"),

0 commit comments

Comments
 (0)