docs: improve gocritic description (#1766)

This commit is contained in:
Sebastien Rosset 2021-02-24 15:16:16 -08:00 committed by GitHub
parent 25332f5f00
commit ce3ff22a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,9 @@ func NewGocritic() *goanalysis.Linter {
}
return goanalysis.NewLinter(
gocriticName,
"The most opinionated Go source code linter",
`Provides many diagnostics that check for bugs, performance and style issues.
Extensible without recompilation through dynamic rules.
Dynamic rules are written declaratively with AST patterns, filters, report message and optional suggestion.`,
[]*analysis.Analyzer{analyzer},
nil,
).WithContextSetter(func(lintCtx *linter.Context) {