intrange: add style preset (#4797)

This commit is contained in:
Eduard Castany 2024-06-07 01:27:54 +02:00 committed by GitHub
parent 4e53f51c4e
commit 02740ea1b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()),