Skip to content

fix ./polaris.yaml default example #304

fix ./polaris.yaml default example

fix ./polaris.yaml default example #304

Triggered via pull request December 11, 2024 08:17
Status Failure
Total duration 2m 34s
Artifacts

golangci-lint.yml

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

Annotations

47 errors and 1 warning
golangci-lint (1.15.x): pkg/model/local/value.go#L100
sloppyTypeAssert: type assertion from/to types are identical (gocritic)
golangci-lint (1.15.x): plugin/healthcheck/tcp/tcp.go#L117
shadow: declaration of "err" shadows declaration at line 101 (govet)
golangci-lint (1.15.x): plugin/metrics/prometheus/reporter.go#L379
Error return value of `pa.pusher.Delete` is not checked (errcheck)
golangci-lint (1.15.x): plugin/servicerouter/setdivision/setdivision.go#L177
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.15.x): pkg/config/serverconnector.go#L168
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.15.x): plugin/serverconnector/grpc/operation_sync.go#L95
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.15.x): plugin/serverconnector/grpc/operation_sync.go#L98
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.15.x): plugin/serverconnector/grpc/operation_sync.go#L223
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKErrorWithServerInfo (govet)
golangci-lint (1.15.x): plugin/serverconnector/grpc/operation_sync.go#L226
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKErrorWithServerInfo (govet)
golangci-lint (1.15.x): pkg/flow/configuration/file_repo.go#L165
shadow: declaration of "err" shadows declaration at line 160 (govet)
golangci-lint (1.18.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.18.x): plugin/healthcheck/tcp/tcp.go#L117
shadow: declaration of "err" shadows declaration at line 101 (govet)
golangci-lint (1.18.x): pkg/config/serverconnector.go#L168
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.18.x): api/consumer_impl.go#L249
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.18.x): api/consumer_impl.go#L254
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.18.x): pkg/flow/data/util.go#L210
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.18.x): plugin/circuitbreaker/composite/task_pool.go#L22
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.18.x): plugin/circuitbreaker/composite/task_pool.go#L28
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.18.x): plugin/configfilter/crypto/crypto.go#L130
shadow: declaration of "err" shadows declaration at line 103 (govet)
golangci-lint (1.18.x): pkg/model/local/value.go#L100
sloppyTypeAssert: type assertion from/to types are identical (gocritic)
golangci-lint (1.18.x): plugin/metrics/prometheus/reporter.go#L379
Error return value of `pa.pusher.Delete` is not checked (errcheck)
golangci-lint (1.17.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.17.x): pkg/flow/sync_flow.go#L193
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.17.x): pkg/flow/sync_flow.go#L589
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.17.x): plugin/circuitbreaker/composite/task_pool.go#L22
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.17.x): plugin/circuitbreaker/composite/task_pool.go#L28
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.17.x): api/consumer_impl.go#L249
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.17.x): plugin/configfilter/crypto/crypto.go#L130
shadow: declaration of "err" shadows declaration at line 103 (govet)
golangci-lint (1.17.x): pkg/model/local/value.go#L100
sloppyTypeAssert: type assertion from/to types are identical (gocritic)
golangci-lint (1.17.x): pkg/config/serverconnector.go#L168
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.17.x): plugin/healthcheck/tcp/tcp.go#L117
shadow: declaration of "err" shadows declaration at line 101 (govet)
golangci-lint (1.17.x): plugin/metrics/prometheus/reporter.go#L379
Error return value of `pa.pusher.Delete` is not checked (errcheck)
golangci-lint (1.20.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.20.x): plugin/circuitbreaker/composite/task_pool.go#L22
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.20.x): plugin/circuitbreaker/composite/task_pool.go#L28
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.20.x): plugin/metrics/prometheus/reporter.go#L379
Error return value of `pa.pusher.Delete` is not checked (errcheck)
golangci-lint (1.20.x): pkg/config/serverconnector.go#L168
File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/polarismesh/polaris-go) --custom-order (gci)
golangci-lint (1.20.x): plugin/configfilter/crypto/crypto.go#L130
shadow: declaration of "err" shadows declaration at line 103 (govet)
golangci-lint (1.20.x): pkg/flow/configuration/config_flow.go#L158
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.20.x): pkg/flow/configuration/config_flow.go#L193
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.20.x): pkg/flow/configuration/config_flow.go#L227
printf: non-constant format string in call to github.com/polarismesh/polaris-go/pkg/model.NewSDKError (govet)
golangci-lint (1.20.x): pkg/flow/configuration/file_repo.go#L165
shadow: declaration of "err" shadows declaration at line 160 (govet)
golangci-lint (1.20.x): pkg/flow/configuration/group_repo.go#L86
shadow: declaration of "err" shadows declaration at line 82 (govet)
golangci-lint (1.19.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.19.x)
The operation was canceled.
golangci-lint (1.16.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.16.x)
The operation was canceled.
golangci-lint (1.15.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636