Skip to content

Refactor/fix lint error #174

Refactor/fix lint error

Refactor/fix lint error #174

Triggered via pull request December 18, 2024 04:04
Status Failure
Total duration 4m 19s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
golangci-lint (1.21): pkg/polarisapi/service_api.go#L542
printf: non-constant format string in call to fmt.Errorf (govet)
golangci-lint (1.21): pkg/polarisapi/service_api.go#L606
printf: non-constant format string in call to fmt.Errorf (govet)
golangci-lint (1.21): pkg/polarisapi/service_api.go#L651
printf: non-constant format string in call to fmt.Errorf (govet)
golangci-lint (1.21): pkg/polarisapi/service_api.go#L700
printf: non-constant format string in call to fmt.Errorf (govet)
golangci-lint (1.21): 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 (1.21): pkg/cache/config_cache.go#L43
shadow: declaration of "value" shadows declaration at line 40 (govet)
golangci-lint (1.21): pkg/cache/service_cache.go#L43
shadow: declaration of "value" shadows declaration at line 40 (govet)
golangci-lint (1.21): pkg/polarisapi/config_api.go#L49
shadow: declaration of "err" shadows declaration at line 45 (govet)
golangci-lint (1.21): pkg/polarisapi/config_api.go#L65
shadow: declaration of "err" shadows declaration at line 61 (govet)
golangci-lint (1.21)
golangci-lint exit with code 2
golangci-lint (1.21)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636