build(deps): bump github.com/ckaznocha/intrange from 0.1.2 to 0.2.0 (… · golangci/golangci-lint@48251f2 (original) (raw)
4 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -30,7 +30,7 @@ require ( | ||
30 | 30 | github.com/butuzov/mirror v1.2.0 |
31 | 31 | github.com/catenacyber/perfsprint v0.7.1 |
32 | 32 | github.com/charithe/durationcheck v0.0.10 |
33 | -github.com/ckaznocha/intrange v0.1.2 | |
33 | +github.com/ckaznocha/intrange v0.2.0 | |
34 | 34 | github.com/curioswitch/go-reassign v0.2.0 |
35 | 35 | github.com/daixiang0/gci v0.13.5 |
36 | 36 | github.com/denis-tingaikin/go-header v0.5.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -15,5 +15,5 @@ func New() *goanalysis.Linter { | ||
15 | 15 | a.Doc, |
16 | 16 | []*analysis.Analyzer{a}, |
17 | 17 | nil, |
18 | - ).WithLoadMode(goanalysis.LoadModeSyntax) | |
18 | + ).WithLoadMode(goanalysis.LoadModeTypesInfo) | |
19 | 19 | } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -508,6 +508,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) { | ||
508 | 508 | |
509 | 509 | linter.NewConfig(intrange.New()). |
510 | 510 | WithSince("v1.57.0"). |
511 | +WithLoadForGoAnalysis(). | |
511 | 512 | WithPresets(linter.PresetStyle). |
512 | 513 | WithURL("https://github.com/ckaznocha/intrange"). |
513 | 514 | WithNoopFallback(cfg, linter.IsGoLowerThanGo122()), |