dev: use zerologlint analyzer fields for name and doc (#4225)
This commit is contained in:
parent
e32f2f3f8d
commit
185b2c77bc
@ -8,10 +8,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func NewZerologLint() *goanalysis.Linter {
|
func NewZerologLint() *goanalysis.Linter {
|
||||||
|
a := zerologlint.Analyzer
|
||||||
|
|
||||||
return goanalysis.NewLinter(
|
return goanalysis.NewLinter(
|
||||||
"zerologlint",
|
a.Name,
|
||||||
"Detects the wrong usage of `zerolog` that a user forgets to dispatch with `Send` or `Msg`.",
|
a.Doc,
|
||||||
[]*analysis.Analyzer{zerologlint.Analyzer},
|
[]*analysis.Analyzer{a},
|
||||||
nil,
|
nil,
|
||||||
).WithLoadMode(goanalysis.LoadModeTypesInfo)
|
).WithLoadMode(goanalysis.LoadModeTypesInfo)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user