Skip to content

Commit 3a1f50d

Browse files
build(deps): bump github.com/ashanbrown/forbidigo from 1.4.0 to 1.5.1 (#3639)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 5b4f7c7 commit 3a1f50d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/OpenPeeDeeP/depguard v1.1.1
1515
github.com/alexkohler/prealloc v1.0.0
1616
github.com/alingse/asasalint v0.0.11
17-
github.com/ashanbrown/forbidigo v1.4.0
17+
github.com/ashanbrown/forbidigo v1.5.1
1818
github.com/ashanbrown/makezero v1.1.1
1919
github.com/bkielbasa/cyclop v1.2.0
2020
github.com/blizzy78/varnamelen v0.8.0
@@ -153,7 +153,6 @@ require (
153153
github.com/olekukonko/tablewriter v0.0.5 // indirect
154154
github.com/pelletier/go-toml v1.9.5 // indirect
155155
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
156-
github.com/pkg/errors v0.9.1 // indirect
157156
github.com/pmezard/go-difflib v1.0.0 // indirect
158157
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
159158
github.com/prometheus/client_golang v1.12.1 // indirect

go.sum

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

pkg/golinters/forbidigo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func NewForbidigo(settings *config.ForbidigoSettings) *goanalysis.Linter {
4747
nil,
4848
).WithIssuesReporter(func(*linter.Context) []goanalysis.Issue {
4949
return resIssues
50-
}).WithLoadMode(goanalysis.LoadModeSyntax)
50+
}).WithLoadMode(goanalysis.LoadModeTypesInfo)
5151
}
5252

5353
func runForbidigo(pass *analysis.Pass, settings *config.ForbidigoSettings) ([]goanalysis.Issue, error) {

pkg/lint/lintersdb/manager.go

+1
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
417417
linter.NewConfig(golinters.NewForbidigo(forbidigoCfg)).
418418
WithSince("v1.34.0").
419419
WithPresets(linter.PresetStyle).
420+
WithLoadForGoAnalysis().
420421
WithURL("https://github.com/ashanbrown/forbidigo"),
421422

422423
linter.NewConfig(golinters.NewForceTypeAssert()).

0 commit comments

Comments
 (0)