github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/pkg/golinters/goerr113.go (about)

     1  package golinters
     2  
     3  import (
     4  	"github.com/Djarvur/go-err113"
     5  	"golang.org/x/tools/go/analysis"
     6  
     7  	"github.com/vanstinator/golangci-lint/pkg/golinters/goanalysis"
     8  )
     9  
    10  func NewGoerr113() *goanalysis.Linter {
    11  	return goanalysis.NewLinter(
    12  		"goerr113",
    13  		"Go linter to check the errors handling expressions",
    14  		[]*analysis.Analyzer{err113.NewAnalyzer()},
    15  		nil,
    16  	).WithLoadMode(goanalysis.LoadModeTypesInfo)
    17  }