fix: update packages #61
Annotations
10 errors and 1 warning
client.go#L22
time-naming: var defaultRetryWaitMin is of type time.Duration; don't use unit-specific suffix "Min" (revive)
|
client.go#L60
cognitive complexity 56 of func `New` is high (> 30) (gocognit)
|
client.go#L95
`if o.BaseURL == ""` has complex nested blocks (complexity: 5) (nestif)
|
client.go#L112
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"base url is required\")" (err113)
|
client.go#L142
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"failed to cast transport to http.Transport\")" (err113)
|
example/api/main.go#L22
error returned from external package is unwrapped: sig: func net/http.NewRequestWithContext(ctx context.Context, method string, url string, body io.Reader) (*net/http.Request, error) (wrapcheck)
|
example/api/main.go#L30
response body must be closed (bodyclose)
|
example/api/main.go#L44
error returned from external package is unwrapped: sig: func github.com/worldline-go/klient.DoWithInf[T any](ctx context.Context, client *net/http.Client, r github.com/worldline-go/klient.Requester[T]) (T, error) (wrapcheck)
|
example/api/main.go#L62
fmt.Sprintf can be replaced with string concatenation (perfsprint)
|
example/api/main.go#L64
error returned from external package is unwrapped: sig: func net/http.NewRequestWithContext(ctx context.Context, method string, url string, body io.Reader) (*net/http.Request, error) (wrapcheck)
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
The logs for this run have expired and are no longer available.
Loading