Add dynamic rate limiting and HTTP control interface #137
Annotations
10 errors and 2 warnings
|
golangci-lint:
cmd/catp/catp/catp.go#L398
G120: Parsing form data without limiting request body size can allow memory exhaustion (use http.MaxBytesReader) (gosec)
|
|
golangci-lint:
cmd/catp/catp/catp.go#L461
cyclomatic complexity 23 of func `(*runner).cat` is high (> 20) (gocyclo)
|
|
golangci-lint:
cmd/catp/catp/catp.go#L263
cognitive complexity 59 of func `(*runner).scanFile` is high (> 30) (gocognit)
|
|
golangci-lint:
cmd/catp/catp/catp.go#L115
cognitive complexity 34 of func `(*runner).st` is high (> 30) (gocognit)
|
|
golangci-lint:
cmd/catp/catp/catp.go#L419
Error return value of `fmt.Fprintf` is not checked (errcheck)
|
|
golangci-lint:
cmd/catp/catp/catp.go#L412
Error return value of `fmt.Fprintf` is not checked (errcheck)
|
|
golangci-lint:
cmd/catp/catp/filter.go#L59
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"save already set\")" (err113)
|
|
golangci-lint:
cmd/catp/catp/filter.go#L54
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"no filters set\")" (err113)
|
|
golangci-lint:
cmd/catp/catp/filter.go#L109
calculated cyclomatic complexity for function match is 11, max is 10 (cyclop)
|
|
golangci-lint:
cmd/catp/catp/catp.go#L64
found a struct that contains a context.Context field (containedctx)
|
|
golangci-lint
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-go@v5. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
golangci-lint
Restore cache failed: Dependencies file is not found in /home/runner/work/progress/progress. Supported file pattern: go.sum
|