docs: have a clear explanation about the staticcheck integration. (#2894)

docs: have a clear state about staticcheck
This commit is contained in:
Ludovic Fernandez 2022-06-06 13:19:33 +02:00 committed by GitHub
parent ac99dbccc0
commit 091a641f91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,8 @@ func NewStaticcheck(settings *config.StaticCheckSettings) *goanalysis.Linter {
return goanalysis.NewLinter(
"staticcheck",
"Staticcheck is a go vet on steroids, applying a ton of static analysis checks",
"It's a set of rules from staticcheck. It's not the same thing as the staticcheck binary."+
" The author of staticcheck doesn't support or approve the use of staticcheck as a library inside golangci-lint.",
analyzers,
nil,
).WithLoadMode(goanalysis.LoadModeTypesInfo)