Skip to content

Commit

Permalink
docs: consistent WithSince versions (golangci#5022)
Browse files Browse the repository at this point in the history
  • Loading branch information
raeperd authored and uudashr committed Sep 18, 2024
1 parent ff05c7c commit 1a16a04
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/lint/lintersdb/builder_linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
// When a new linter is added the version in `WithSince(...)` must be the next minor version of golangci-lint.
return []*linter.Config{
linter.NewConfig(asasalint.New(&cfg.LintersSettings.Asasalint)).
WithSince("1.47.0").
WithSince("v1.47.0").
WithPresets(linter.PresetBugs).
WithLoadForGoAnalysis().
WithURL("https://github.com/alingse/asasalint"),
Expand All @@ -147,7 +147,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
WithURL("https://github.com/tdakkota/asciicheck"),

linter.NewConfig(bidichk.New(&cfg.LintersSettings.BiDiChk)).
WithSince("1.43.0").
WithSince("v1.43.0").
WithPresets(linter.PresetBugs).
WithURL("https://github.com/breml/bidichk"),

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

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

linter.NewConfig(dupword.New(&cfg.LintersSettings.DupWord)).
WithSince("1.50.0").
WithSince("v1.50.0").
WithPresets(linter.PresetComment).
WithURL("https://github.com/Abirdcfly/dupword"),

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

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

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

linter.NewConfig(reassign.New(&cfg.LintersSettings.Reassign)).
WithSince("1.49.0").
WithSince("v1.49.0").
WithPresets(linter.PresetBugs).
WithLoadForGoAnalysis().
WithURL("https://github.com/curioswitch/go-reassign"),
Expand Down

0 comments on commit 1a16a04

Please sign in to comment.