woodpecker/vendor/github.com/golangci/golangci-lint/pkg/golinters/ineffassign.go

18 lines
435 B
Go
Raw Normal View History

package golinters
import (
"github.com/gordonklaus/ineffassign/pkg/ineffassign"
"golang.org/x/tools/go/analysis"
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
)
func NewIneffassign() *goanalysis.Linter {
return goanalysis.NewLinter(
"ineffassign",
"Detects when assignments to existing variables are not used",
[]*analysis.Analyzer{ineffassign.Analyzer},
nil,
).WithLoadMode(goanalysis.LoadModeSyntax)
}