logginghandler/vendor/github.com/golangci/golangci-lint/pkg/golinters/tparallel.go
Marvin Preuss d095180eb4
All checks were successful
continuous-integration/drone/push Build is passing
build: uses go modules for tool handling
2022-01-14 13:51:56 +01:00

22 lines
464 B
Go

package golinters
import (
"github.com/moricho/tparallel"
"golang.org/x/tools/go/analysis"
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
)
func NewTparallel() *goanalysis.Linter {
analyzers := []*analysis.Analyzer{
tparallel.Analyzer,
}
return goanalysis.NewLinter(
"tparallel",
"tparallel detects inappropriate usage of t.Parallel() method in your Go test codes",
analyzers,
nil,
).WithLoadMode(goanalysis.LoadModeTypesInfo)
}