Skip to content

Commit

Permalink
fix: remove decoder, sloglint, tagalin from 'format' preset (#5242)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Dec 21, 2024
1 parent 4353e4b commit e11de60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/lint/lintersdb/builder_linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {

linter.NewConfig(decorder.New(&cfg.LintersSettings.Decorder)).
WithSince("v1.44.0").
WithPresets(linter.PresetFormatting, linter.PresetStyle).
WithPresets(linter.PresetStyle).
WithURL("https://gitlab.com/bosi/decorder"),

linter.NewConfig(linter.NewNoopDeprecated("deadcode", cfg, linter.DeprecationError)).
Expand Down Expand Up @@ -694,7 +694,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
linter.NewConfig(sloglint.New(&cfg.LintersSettings.SlogLint)).
WithSince("v1.55.0").
WithLoadForGoAnalysis().
WithPresets(linter.PresetStyle, linter.PresetFormatting).
WithPresets(linter.PresetStyle).
WithURL("https://github.com/go-simpler/sloglint"),

linter.NewConfig(linter.NewNoopDeprecated("scopelint", cfg, linter.DeprecationError)).
Expand Down Expand Up @@ -739,7 +739,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {

linter.NewConfig(tagalign.New(&cfg.LintersSettings.TagAlign)).
WithSince("v1.53.0").
WithPresets(linter.PresetStyle, linter.PresetFormatting).
WithPresets(linter.PresetStyle).
WithAutoFix().
WithURL("https://github.com/4meepo/tagalign"),

Expand Down

0 comments on commit e11de60

Please sign in to comment.