Skip to content

Commit e11de60

Browse files
authored
fix: remove decoder, sloglint, tagalin from 'format' preset (#5242)
1 parent 4353e4b commit e11de60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/lint/lintersdb/builder_linter.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
189189

190190
linter.NewConfig(decorder.New(&cfg.LintersSettings.Decorder)).
191191
WithSince("v1.44.0").
192-
WithPresets(linter.PresetFormatting, linter.PresetStyle).
192+
WithPresets(linter.PresetStyle).
193193
WithURL("https://gitlab.com/bosi/decorder"),
194194

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

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

740740
linter.NewConfig(tagalign.New(&cfg.LintersSettings.TagAlign)).
741741
WithSince("v1.53.0").
742-
WithPresets(linter.PresetStyle, linter.PresetFormatting).
742+
WithPresets(linter.PresetStyle).
743743
WithAutoFix().
744744
WithURL("https://github.com/4meepo/tagalign"),
745745

0 commit comments

Comments
 (0)