mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
ci: semgrep rule for parallel tests
Adds a semgrep rule warning about using ci.Parallel instead of t.Parallel
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user