File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
timeout : 3m
5
5
skip-dirs :
6
6
- testdata
7
- build-tags :
8
- - codeanalysis
7
+ skip-files :
8
+ - docs.go
9
9
10
10
11
11
# This file contains only configs which differ from defaults.
@@ -46,7 +46,7 @@ linters-settings:
46
46
gocognit :
47
47
# Minimal code complexity to report
48
48
# Default: 30 (but we recommend 10-20)
49
- min-complexity : 40
49
+ min-complexity : 30
50
50
51
51
gocritic :
52
52
# Settings passed to gocritic.
@@ -211,6 +211,7 @@ linters:
211
211
- stylecheck # is a replacement for golint
212
212
- tenv # detects using os.Setenv instead of t.Setenv since Go1.17
213
213
- testableexamples # checks if examples are testable (have an expected output)
214
+ # - testpackage # makes you use a separate _test package
214
215
- tparallel # detects inappropriate usage of t.Parallel() method in your Go test codes
215
216
- unconvert # removes unnecessary type conversions
216
217
- unparam # reports unused function parameters
@@ -279,9 +280,6 @@ issues:
279
280
linters : [ gocritic ]
280
281
- source : " ^\\ s+if _, ok := err\\ .\\ ([^.]+\\ .InternalError\\ ); ok {"
281
282
linters : [ errorlint ]
282
- - path : " docs\\ .go"
283
- linters :
284
- - lll
285
283
- path : " _test\\ .go"
286
284
linters :
287
285
- bodyclose
Original file line number Diff line number Diff line change @@ -489,6 +489,7 @@ func FuzzScaler(f *testing.F) {
489
489
})
490
490
}
491
491
492
+ //nolint:gocognit // This is a test function
492
493
func Test_Scaler_Max (t * testing.T ) {
493
494
tests := map [string ]struct {
494
495
max uint
Original file line number Diff line number Diff line change @@ -338,6 +338,7 @@ func Test_FanOut_Canceled_On_Wait(_ *testing.T) {
338
338
FanOut (ctx , in , out )
339
339
}
340
340
341
+ //nolint:gocognit // This is a test function
341
342
func DistributeTest [U ~ []T , T comparable ](
342
343
t * testing.T ,
343
344
name string ,
You can’t perform that action at this time.
0 commit comments