Skip to content

Commit

Permalink
build(deps): bump 4d63.com/gochecknoglobals from 0.1.0 to 0.2.1 (#3496)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ldez committed Jan 24, 2023
1 parent 7fcd71a commit 5631503
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.19

require (
4d63.com/gocheckcompilerdirectives v1.2.0
4d63.com/gochecknoglobals v0.1.0
4d63.com/gochecknoglobals v0.2.1
github.com/Abirdcfly/dupword v0.0.9
github.com/Antonboom/errname v0.1.7
github.com/Antonboom/nilnil v0.1.1
Expand Down
7 changes: 4 additions & 3 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/golinters/gochecknoglobals.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ func NewGochecknoglobals() *goanalysis.Linter {
gochecknoglobals.Doc,
[]*analysis.Analyzer{gochecknoglobals},
linterConfig,
).WithLoadMode(goanalysis.LoadModeSyntax)
).WithLoadMode(goanalysis.LoadModeTypesInfo)
}
1 change: 1 addition & 0 deletions pkg/lint/lintersdb/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
linter.NewConfig(golinters.NewGochecknoglobals()).
WithSince("v1.12.0").
WithPresets(linter.PresetStyle).
WithLoadForGoAnalysis().
WithURL("https://github.com/leighmcculloch/gochecknoglobals"),

linter.NewConfig(golinters.NewGochecknoinits()).
Expand Down

0 comments on commit 5631503

Please sign in to comment.