Skip to content

Commit 48251f2

Browse files
build(deps): bump github.com/ckaznocha/intrange from 0.1.2 to 0.2.0 (#4996)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent bfc5247 commit 48251f2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ require (
3030
github.com/butuzov/mirror v1.2.0
3131
github.com/catenacyber/perfsprint v0.7.1
3232
github.com/charithe/durationcheck v0.0.10
33-
github.com/ckaznocha/intrange v0.1.2
33+
github.com/ckaznocha/intrange v0.2.0
3434
github.com/curioswitch/go-reassign v0.2.0
3535
github.com/daixiang0/gci v0.13.5
3636
github.com/denis-tingaikin/go-header v0.5.0

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/intrange/intrange.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ func New() *goanalysis.Linter {
1515
a.Doc,
1616
[]*analysis.Analyzer{a},
1717
nil,
18-
).WithLoadMode(goanalysis.LoadModeSyntax)
18+
).WithLoadMode(goanalysis.LoadModeTypesInfo)
1919
}

pkg/lint/lintersdb/builder_linter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
508508

509509
linter.NewConfig(intrange.New()).
510510
WithSince("v1.57.0").
511+
WithLoadForGoAnalysis().
511512
WithPresets(linter.PresetStyle).
512513
WithURL("https://github.com/ckaznocha/intrange").
513514
WithNoopFallback(cfg, linter.IsGoLowerThanGo122()),

0 commit comments

Comments
 (0)