woodpecker/vendor/github.com/golangci/golangci-lint/pkg/golinters/goerr113.go
Lukas c28f7cb29f
Add golangci-lint (#502)
Initial part of #435
2021-11-14 21:01:54 +01:00

19 lines
413 B
Go

package golinters
import (
"github.com/Djarvur/go-err113"
"golang.org/x/tools/go/analysis"
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
)
func NewGoerr113() *goanalysis.Linter {
return goanalysis.NewLinter(
"goerr113",
"Golang linter to check the errors handling expressions",
[]*analysis.Analyzer{
err113.NewAnalyzer(),
},
nil,
).WithLoadMode(goanalysis.LoadModeTypesInfo)
}