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 40040ca commit 2e1a786Copy full SHA for 2e1a786
pkg/golinters/exportloopref.go
@@ -8,14 +8,12 @@ import (
8
)
9
10
func NewExportLoopRef() *goanalysis.Linter {
11
- analyzers := []*analysis.Analyzer{
12
- exportloopref.Analyzer,
13
- }
+ a := exportloopref.Analyzer
14
15
return goanalysis.NewLinter(
16
- "exportloopref",
17
- "An analyzer that finds exporting pointers for loop variables.",
18
- analyzers,
+ a.Name,
+ a.Doc,
+ []*analysis.Analyzer{a},
19
nil,
20
- ).WithLoadMode(goanalysis.LoadModeSyntax)
+ ).WithLoadMode(goanalysis.LoadModeTypesInfo)
21
}
0 commit comments