![dependabot[bot]](/assets/img/avatar_default.png)
* 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>
18 lines
461 B
Go
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)
|
|
}
|