File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,9 @@ linters:
18
18
- gosimple
19
19
- govet
20
20
- ineffassign
21
- - interfacer
22
21
- lll
23
22
- misspell
24
23
- nakedret
25
- - scopelint
26
24
- staticcheck
27
25
- structcheck
28
26
- stylecheck
@@ -39,6 +37,7 @@ linters:
39
37
- exhaustivestruct
40
38
- errorlint
41
39
# temporary disables
40
+ - gci
42
41
- gocritic
43
42
- gofumpt
44
43
- funlen
@@ -59,8 +58,6 @@ linters-settings:
59
58
min-confidence : 0
60
59
gocyclo :
61
60
min-complexity : 15
62
- maligned :
63
- suggest-new : true
64
61
dupl :
65
62
threshold : 100
66
63
goconst :
@@ -75,14 +72,3 @@ linters-settings:
75
72
- opinionated
76
73
- performance
77
74
- style
78
- funlen :
79
- lines : 100
80
- statements : 50
81
-
82
- issues :
83
- exclude :
84
- - " G402:" # Insecure TLS Config
85
- - " G404:"
86
- - " `Mapping` is a global variable"
87
- - " mnd: Magic number: 1, in <argument> detected"
88
- - " mnd: Magic number: 2, in <argument> detected"
Original file line number Diff line number Diff line change @@ -22,9 +22,11 @@ type config struct {
22
22
GitlabToken string `env:"GITLAB_TOKEN"`
23
23
}
24
24
25
+ const MaxPipelineEvents = 100
26
+
25
27
func runExtract (pipeline * dnacollector.Pipeline , user string ) chan dnacollector.PipelineEvent {
26
28
// buffer it a bit so it won't block if this is going too fast
27
- ch := make (chan dnacollector.PipelineEvent , 100 )
29
+ ch := make (chan dnacollector.PipelineEvent , MaxPipelineEvents )
28
30
29
31
go func (eventChannel chan dnacollector.PipelineEvent ) {
30
32
defer close (eventChannel )
You can’t perform that action at this time.
0 commit comments