Skip to content

Commit 9ce9097

Browse files
build(deps): bump 4d63.com/gochecknoglobals from 0.2.1 to 0.2.2 (#5380)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 1200be2 commit 9ce9097

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.1
44

55
require (
66
4d63.com/gocheckcompilerdirectives v1.2.1
7-
4d63.com/gochecknoglobals v0.2.1
7+
4d63.com/gochecknoglobals v0.2.2
88
github.com/4meepo/tagalign v1.4.1
99
github.com/Abirdcfly/dupword v0.1.3
1010
github.com/Antonboom/errname v1.0.0

go.sum

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

pkg/golinters/gochecknoglobals/gochecknoglobals.go

+1-8
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,10 @@ import (
1010
func New() *goanalysis.Linter {
1111
a := checknoglobals.Analyzer()
1212

13-
// gochecknoglobals only lints test files if the `-t` flag is passed,
14-
// so we pass the `t` flag as true to the analyzer before running it.
15-
// This can be turned off by using the regular golangci-lint flags such as `--tests` or `--exclude-files`.
16-
linterConfig := map[string]map[string]any{
17-
a.Name: {"t": true},
18-
}
19-
2013
return goanalysis.NewLinter(
2114
a.Name,
2215
"Check that no global variables exist.",
2316
[]*analysis.Analyzer{a},
24-
linterConfig,
17+
nil,
2518
).WithLoadMode(goanalysis.LoadModeTypesInfo)
2619
}

0 commit comments

Comments
 (0)