Skip to content

Commit

Permalink
dev: use zerologlint analyzer fields for name and doc (golangci#4225)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored and Antonboom committed Mar 3, 2024
1 parent 2cbe274 commit b647892
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 b647892

Please sign in to comment.