File tree 3 files changed +28
-1
lines changed
3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ func NewParallelTest(settings *config.ParallelTestSettings) *goanalysis.Linter {
23
23
return goanalysis .NewLinter (
24
24
"paralleltest" ,
25
25
"paralleltest detects missing usage of t.Parallel() method in your Go test" ,
26
- []* analysis.Analyzer {paralleltest . Analyzer },
26
+ []* analysis.Analyzer {a },
27
27
cfg ,
28
28
).WithLoadMode (goanalysis .LoadModeTypesInfo )
29
29
}
Original file line number Diff line number Diff line change
1
+ linters-settings :
2
+ paralleltest :
3
+ ignore-missing : true
Original file line number Diff line number Diff line change
1
+ //golangcitest:args -Eparalleltest
2
+ //golangcitest:config_path testdata/configs/paralleltest.yml
3
+ //golangcitest:expected_exitcode 0
4
+ package testdata
5
+
6
+ import (
7
+ "fmt"
8
+ "testing"
9
+ )
10
+
11
+ func TestParallelTestIgnore (t * testing.T ) {
12
+ testCases := []struct {
13
+ name string
14
+ }{{name : "foo" }}
15
+ for _ , tc := range testCases {
16
+ tc := tc
17
+ t .Run (tc .name , func (t * testing.T ) {
18
+ t .Parallel ()
19
+ fmt .Println (tc .name )
20
+ })
21
+ }
22
+ }
23
+
24
+ func TestParallelTestEmptyIgnore (t * testing.T ) {}
You can’t perform that action at this time.
0 commit comments