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

Lines changed: 1 addition & 2 deletions
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

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/forbidigo.go

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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)