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 e32f2f3 commit 185b2c7Copy full SHA for 185b2c7
pkg/golinters/zerologlint.go
@@ -8,10 +8,12 @@ import (
8
)
9
10
func NewZerologLint() *goanalysis.Linter {
11
+ a := zerologlint.Analyzer
12
+
13
return goanalysis.NewLinter(
- "zerologlint",
- "Detects the wrong usage of `zerolog` that a user forgets to dispatch with `Send` or `Msg`.",
14
- []*analysis.Analyzer{zerologlint.Analyzer},
+ a.Name,
15
+ a.Doc,
16
+ []*analysis.Analyzer{a},
17
nil,
18
).WithLoadMode(goanalysis.LoadModeTypesInfo)
19
}
0 commit comments