feat: config based initialization #55
Annotations
10 errors and 1 warning
sonarcloud:
client.go#L22
time-naming: var defaultRetryWaitMin is of type time.Duration; don't use unit-specific suffix "Min" (revive)
|
sonarcloud:
client.go#L60
cognitive complexity 51 of func `New` is high (> 30) (gocognit)
|
sonarcloud:
client.go#L95
`if o.BaseURL == ""` has complex nested blocks (complexity: 5) (nestif)
|
sonarcloud:
client.go#L112
fmt.Errorf can be replaced with errors.New (perfsprint)
|
sonarcloud:
error.go#L9
fmt.Errorf can be replaced with errors.New (perfsprint)
|
sonarcloud:
error.go#L10
fmt.Errorf can be replaced with errors.New (perfsprint)
|
sonarcloud:
error.go#L11
fmt.Errorf can be replaced with errors.New (perfsprint)
|
sonarcloud:
error.go#L12
fmt.Errorf can be replaced with errors.New (perfsprint)
|
sonarcloud:
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)
|
sonarcloud:
example/api/main.go#L30
response body must be closed (bodyclose)
|
sonarcloud
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|