ci: semgrep rule for parallel tests

Adds a semgrep rule warning about using ci.Parallel instead of t.Parallel
This commit is contained in:
Seth Hoenig
2022-03-17 08:43:37 -05:00
parent 7e6767ddf8
commit ae21af4f9b

View File

@@ -119,3 +119,15 @@ rules:
exclude: ["*"]
include:
- "*_test.go"
- id: "tests-no-parallel"
patterns:
- pattern: "t.Parallel()"
message: "Use ci.Parallel(t) instead of t.Parallel()"
languages:
- "go"
severity: "WARNING"
fix: "ci.Parallel(t)"
paths:
exclude: ["*"]
include:
- "*_test.go"