1package golinters
2
3import (
4	"github.com/moricho/tparallel"
5	"golang.org/x/tools/go/analysis"
6
7	"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
8)
9
10func NewTparallel() *goanalysis.Linter {
11	analyzers := []*analysis.Analyzer{
12		tparallel.Analyzer,
13	}
14
15	return goanalysis.NewLinter(
16		"tparallel",
17		"tparallel detects inappropriate usage of t.Parallel() method in your Go test codes",
18		analyzers,
19		nil,
20	).WithLoadMode(goanalysis.LoadModeTypesInfo)
21}
22