From 02740ea1b79e3f0bfd978f21bb683fd0539ebccc Mon Sep 17 00:00:00 2001 From: Eduard Castany Date: Fri, 7 Jun 2024 01:27:54 +0200 Subject: [PATCH] intrange: add style preset (#4797) --- pkg/lint/lintersdb/builder_linter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/lint/lintersdb/builder_linter.go b/pkg/lint/lintersdb/builder_linter.go index 7b9d2a559bab..a66f2eea0933 100644 --- a/pkg/lint/lintersdb/builder_linter.go +++ b/pkg/lint/lintersdb/builder_linter.go @@ -507,6 +507,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) { linter.NewConfig(intrange.New()). WithSince("v1.57.0"). + WithPresets(linter.PresetStyle). WithURL("https://github.com/ckaznocha/intrange"). WithNoopFallback(cfg, linter.IsGoLowerThanGo122()),