20 lines
394 B
Go
20 lines
394 B
Go
package golinters
|
|
|
|
import (
|
|
"github.com/Djarvur/go-err113"
|
|
"golang.org/x/tools/go/analysis"
|
|
|
|
"github.com/golangci/golangci-lint/pkg/goanalysis"
|
|
)
|
|
|
|
func NewErr113() *goanalysis.Linter {
|
|
a := err113.NewAnalyzer()
|
|
|
|
return goanalysis.NewLinter(
|
|
a.Name,
|
|
"Go linter to check the errors handling expressions",
|
|
[]*analysis.Analyzer{a},
|
|
nil,
|
|
).WithLoadMode(goanalysis.LoadModeTypesInfo)
|
|
}
|