Skip to content

Commit

Permalink
dev: use zerologlint analyzer fields for name and doc (#4225)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Nov 29, 2023
1 parent e32f2f3 commit 185b2c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/golinters/zerologlint.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import (
)

func NewZerologLint() *goanalysis.Linter {
a := zerologlint.Analyzer

return goanalysis.NewLinter(
"zerologlint",
"Detects the wrong usage of `zerolog` that a user forgets to dispatch with `Send` or `Msg`.",
[]*analysis.Analyzer{zerologlint.Analyzer},
a.Name,
a.Doc,
[]*analysis.Analyzer{a},
nil,
).WithLoadMode(goanalysis.LoadModeTypesInfo)
}

0 comments on commit 185b2c7

Please sign in to comment.