Skip to content

Commit a43c84c

Browse files
build(deps): bump github.com/gostaticanalysis/forcetypeassert from 0.1.0 to 0.2.0 (#5409)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent e352220 commit a43c84c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ require (
5151
github.com/golangci/revgrep v0.8.0
5252
github.com/golangci/unconvert v0.0.0-20240309020433-c5143eacb3ed
5353
github.com/gordonklaus/ineffassign v0.1.0
54-
github.com/gostaticanalysis/forcetypeassert v0.1.0
54+
github.com/gostaticanalysis/forcetypeassert v0.2.0
5555
github.com/gostaticanalysis/nilerr v0.1.1
5656
github.com/hashicorp/go-version v1.7.0
5757
github.com/jgautheron/goconst v1.7.1

go.sum

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/forcetypeassert/forcetypeassert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ func New() *goanalysis.Linter {
1515
"finds forced type assertions",
1616
[]*analysis.Analyzer{a},
1717
nil,
18-
).WithLoadMode(goanalysis.LoadModeSyntax)
18+
).WithLoadMode(goanalysis.LoadModeTypesInfo)
1919
}

pkg/lint/lintersdb/builder_linter.go

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
304304
linter.NewConfig(forcetypeassert.New()).
305305
WithSince("v1.38.0").
306306
WithPresets(linter.PresetStyle).
307+
WithLoadForGoAnalysis().
307308
WithURL("https://github.com/gostaticanalysis/forcetypeassert"),
308309

309310
linter.NewConfig(fatcontext.New(&cfg.LintersSettings.Fatcontext)).

0 commit comments

Comments
 (0)