Refactor/fix lint error #174
Annotations
10 errors and 1 warning
golangci-lint:
pkg/polarisapi/service_api.go#L542
printf: non-constant format string in call to fmt.Errorf (govet)
|
golangci-lint:
pkg/polarisapi/service_api.go#L606
printf: non-constant format string in call to fmt.Errorf (govet)
|
golangci-lint:
pkg/polarisapi/service_api.go#L651
printf: non-constant format string in call to fmt.Errorf (govet)
|
golangci-lint:
pkg/polarisapi/service_api.go#L700
printf: non-constant format string in call to fmt.Errorf (govet)
|
golangci-lint:
pkg/controller/endpoint.go#L195
printf: non-constant format string in call to (*github.com/polarismesh/polaris-controller/common/log.Scope).Infof (govet)
|
golangci-lint:
pkg/cache/config_cache.go#L43
shadow: declaration of "value" shadows declaration at line 40 (govet)
|
golangci-lint:
pkg/cache/service_cache.go#L43
shadow: declaration of "value" shadows declaration at line 40 (govet)
|
golangci-lint:
pkg/polarisapi/config_api.go#L49
shadow: declaration of "err" shadows declaration at line 45 (govet)
|
golangci-lint:
pkg/polarisapi/config_api.go#L65
shadow: declaration of "err" shadows declaration at line 61 (govet)
|
golangci-lint
golangci-lint exit with code 2
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading