mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-13 03:56:39 +00:00
c28f7cb29f
Initial part of #435
19 lines
413 B
Go
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)
|
|
}
|