From ccc6abdc726b2a2b8da11f559015da72b71beb2f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:00:13 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/ckaznocha/intrange from 0.1.2 to 0.2.0 Bumps [github.com/ckaznocha/intrange](https://github.com/ckaznocha/intrange) from 0.1.2 to 0.2.0. - [Release notes](https://github.com/ckaznocha/intrange/releases) - [Commits](https://github.com/ckaznocha/intrange/compare/v0.1.2...v0.2.0) --- updated-dependencies: - dependency-name: github.com/ckaznocha/intrange dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 10d59e655083..b095707dda8b 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/butuzov/mirror v1.2.0 github.com/catenacyber/perfsprint v0.7.1 github.com/charithe/durationcheck v0.0.10 - github.com/ckaznocha/intrange v0.1.2 + github.com/ckaznocha/intrange v0.2.0 github.com/curioswitch/go-reassign v0.2.0 github.com/daixiang0/gci v0.13.5 github.com/denis-tingaikin/go-header v0.5.0 diff --git a/go.sum b/go.sum index 1707bd8f7c43..65808415e0a8 100644 --- a/go.sum +++ b/go.sum @@ -115,8 +115,8 @@ github.com/chavacava/garif v0.1.0/go.mod h1:XMyYCkEL58DF0oyW4qDjjnPWONs2HBqYKI+U github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/ckaznocha/intrange v0.1.2 h1:3Y4JAxcMntgb/wABQ6e8Q8leMd26JbX2790lIss9MTI= -github.com/ckaznocha/intrange v0.1.2/go.mod h1:RWffCw/vKBwHeOEwWdCikAtY0q4gGt8VhJZEEA5n+RE= +github.com/ckaznocha/intrange v0.2.0 h1:FykcZuJ8BD7oX93YbO1UY9oZtkRbp+1/kJcDjkefYLs= +github.com/ckaznocha/intrange v0.2.0/go.mod h1:r5I7nUlAAG56xmkOpw4XVr16BXhwYTUdcuRFeevn1oE= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= From f57bccd4c5d28cc7b49e062b1ddd5140befa743f Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 9 Sep 2024 14:05:09 +0200 Subject: [PATCH 2/2] chore: update implementation --- pkg/golinters/intrange/intrange.go | 2 +- pkg/lint/lintersdb/builder_linter.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/golinters/intrange/intrange.go b/pkg/golinters/intrange/intrange.go index a27569ebbcbe..d5ffd43453eb 100644 --- a/pkg/golinters/intrange/intrange.go +++ b/pkg/golinters/intrange/intrange.go @@ -15,5 +15,5 @@ func New() *goanalysis.Linter { a.Doc, []*analysis.Analyzer{a}, nil, - ).WithLoadMode(goanalysis.LoadModeSyntax) + ).WithLoadMode(goanalysis.LoadModeTypesInfo) } diff --git a/pkg/lint/lintersdb/builder_linter.go b/pkg/lint/lintersdb/builder_linter.go index 2e6c148e329c..c06cd9a038cd 100644 --- a/pkg/lint/lintersdb/builder_linter.go +++ b/pkg/lint/lintersdb/builder_linter.go @@ -508,6 +508,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) { linter.NewConfig(intrange.New()). WithSince("v1.57.0"). + WithLoadForGoAnalysis(). WithPresets(linter.PresetStyle). WithURL("https://github.com/ckaznocha/intrange"). WithNoopFallback(cfg, linter.IsGoLowerThanGo122()),