golangci-lint/pkg/golinters/paralleltest.go
dependabot[bot] 6a412d3d10
build(deps): bump github.com/kunwardeep/paralleltest from 1.0.3 to 1.0.4 (#2907)
* build(deps): bump github.com/kunwardeep/paralleltest from 1.0.3 to 1.0.4

Bumps [github.com/kunwardeep/paralleltest](https://github.com/kunwardeep/paralleltest) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/kunwardeep/paralleltest/releases)
- [Commits](https://github.com/kunwardeep/paralleltest/compare/v1.0.3...v1.0.4)

---
updated-dependencies:
- dependency-name: github.com/kunwardeep/paralleltest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: linter

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-06-06 13:16:40 +08:00

18 lines
461 B
Go

package golinters
import (
"github.com/kunwardeep/paralleltest/pkg/paralleltest"
"golang.org/x/tools/go/analysis"
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
)
func NewParallelTest() *goanalysis.Linter {
return goanalysis.NewLinter(
"paralleltest",
"paralleltest detects missing usage of t.Parallel() method in your Go test",
[]*analysis.Analyzer{paralleltest.NewAnalyzer()},
nil,
).WithLoadMode(goanalysis.LoadModeTypesInfo)
}