Skip to content

Commit 82869a2

Browse files
committed
dev: use zerologlint analyzer fields for name and doc
1 parent f269abe commit 82869a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/golinters/zerologlint.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ import (
88
)
99

1010
func NewZerologLint() *goanalysis.Linter {
11+
a := zerologlint.Analyzer
12+
1113
return goanalysis.NewLinter(
12-
"zerologlint",
13-
"Detects the wrong usage of `zerolog` that a user forgets to dispatch with `Send` or `Msg`.",
14-
[]*analysis.Analyzer{zerologlint.Analyzer},
14+
a.Name,
15+
a.Doc,
16+
[]*analysis.Analyzer{a},
1517
nil,
1618
).WithLoadMode(goanalysis.LoadModeTypesInfo)
1719
}

0 commit comments

Comments
 (0)