Skip to content

Commit a1f4153

Browse files
dependabot[bot]ldez
authored andcommitted
build(deps): bump 4d63.com/gochecknoglobals from 0.1.0 to 0.2.1 (golangci#3496)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 81781bf commit a1f4153

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.19
44

55
require (
66
4d63.com/gocheckcompilerdirectives v1.2.0
7-
4d63.com/gochecknoglobals v0.1.0
7+
4d63.com/gochecknoglobals v0.2.1
88
github.com/Abirdcfly/dupword v0.0.9
99
github.com/Antonboom/errname v0.1.7
1010
github.com/Antonboom/nilnil v0.1.1

go.sum

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/gochecknoglobals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ func NewGochecknoglobals() *goanalysis.Linter {
2525
gochecknoglobals.Doc,
2626
[]*analysis.Analyzer{gochecknoglobals},
2727
linterConfig,
28-
).WithLoadMode(goanalysis.LoadModeSyntax)
28+
).WithLoadMode(goanalysis.LoadModeTypesInfo)
2929
}

pkg/lint/lintersdb/manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
448448
linter.NewConfig(golinters.NewGochecknoglobals()).
449449
WithSince("v1.12.0").
450450
WithPresets(linter.PresetStyle).
451+
WithLoadForGoAnalysis().
451452
WithURL("https://github.com/leighmcculloch/gochecknoglobals"),
452453

453454
linter.NewConfig(golinters.NewGochecknoinits()).

0 commit comments

Comments
 (0)