chore(deps): update dependency go to 1.21 #916
Annotations
10 errors and 1 warning
src/server/webhook.go#L178
Function 'ServeHTTP' has too many statements (51 > 50) (funlen)
|
src/server/webhook_test.go#L22
Function 'TestServeHTTP' is too long (116 > 100) (funlen)
|
src/server/webhook.go#L126
assignOp: replace `path = path + "/-"` with `path += "/-"` (gocritic)
|
src/server/webhook_test.go#L34
wrapperFunc: use bytes.ReplaceAll method in `bytes.Replace(makeTestData(t, "default"), []byte("\"object\""), []byte("\"foo\""), -1)` (gocritic)
|
cmd/server/main.go#L39
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(appName, "-", "_", -1)` (gocritic)
|
cmd/server/main.go#L37
cyclomatic complexity 13 of func `main` is high (> 10) (gocyclo)
|
src/server/webhook.go#L144
G601: Implicit memory aliasing in for loop. (gosec)
|
src/server/webhook_test.go#L114
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
|
src/server/webhook_test.go#L146
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
|
cmd/server/main.go#L67
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
|
|
The logs for this run have expired and are no longer available.
Loading