We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b699982 commit e985a1dCopy full SHA for e985a1d
pkg/golinters/gochecknoglobals/gochecknoglobals.go
@@ -10,17 +10,10 @@ import (
10
func New() *goanalysis.Linter {
11
a := checknoglobals.Analyzer()
12
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
-
20
return goanalysis.NewLinter(
21
a.Name,
22
"Check that no global variables exist.",
23
[]*analysis.Analyzer{a},
24
- linterConfig,
+ nil,
25
).WithLoadMode(goanalysis.LoadModeTypesInfo)
26
}
0 commit comments