fix: simplify test code #81
Annotations
10 errors and 2 warnings
sonarcloud:
client.go#L24
time-naming: var defaultRetryWaitMin is of type time.Duration; don't use unit-specific suffix "Min" (revive)
|
sonarcloud:
client.go#L62
cognitive complexity 70 of func `New` is high (> 30) (gocognit)
|
sonarcloud:
client.go#L97
`if o.BaseURL == ""` has complex nested blocks (complexity: 5) (nestif)
|
sonarcloud:
client.go#L114
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"base url is required\")" (err113)
|
sonarcloud:
client.go#L134
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
sonarcloud:
client.go#L137
Magic number: 90, in <assign> detected (mnd)
|
sonarcloud:
client.go#L160
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"failed to cast transport to http.Transport\")" (err113)
|
sonarcloud:
client.go#L180
Error return value is not checked (errcheck)
|
sonarcloud:
client.go#L182
Error return value is not checked (errcheck)
|
sonarcloud:
client.go#L186
`if o.InsecureSkipVerify` has complex nested blocks (complexity: 8) (nestif)
|
sonarcloud
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/[email protected]. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
SonarScanner
This action is deprecated and will be removed in a future release. Please use the sonarqube-scan-action action instead. The sonarqube-scan-action is a drop-in replacement for this action.
|