Skip to content

feat: 限流-CPU使用率自适应限流 #235

feat: 限流-CPU使用率自适应限流

feat: 限流-CPU使用率自适应限流 #235

Re-run triggered November 6, 2023 13:08
Status Failure
Total duration 1m 27s
Artifacts

golangci-lint.yml

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

Annotations

26 errors and 3 warnings
golangci-lint (1.15.x): plugin/ratelimiter/common/ratelimit_slice_window.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint (1.15.x): plugin/ratelimiter/bbr/core/bbr.go#L4
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/ratelimiter/bbr/core/bbr.go#L9
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/ratelimiter/bbr/bucket.go#L5
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/ratelimiter/bbr/window/reduce.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.15.x): plugin/ratelimiter/bbr/window/window.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.15.x): plugin/ratelimiter/bbr/window/counter.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.15.x): plugin/ratelimiter/bbr/core/bbr.go#L306
directive `//nolint` is unused (nolintlint)
golangci-lint (1.15.x)
golangci-lint exit with code 2
golangci-lint (1.19.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.19.x): plugin/ratelimiter/bbr/core/bbr.go#L4
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.19.x): plugin/ratelimiter/bbr/core/bbr.go#L9
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.19.x): plugin/ratelimiter/bbr/bucket.go#L5
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.19.x): plugin/ratelimiter/bbr/window/policy.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.19.x): plugin/ratelimiter/bbr/window/reduce.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.19.x): plugin/ratelimiter/bbr/window/window.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.19.x): plugin/ratelimiter/bbr/core/bbr.go#L306
directive `//nolint` is unused (nolintlint)
golangci-lint (1.19.x)
golangci-lint exit with code 2
golangci-lint (1.17.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.17.x)
The operation was canceled.
golangci-lint (1.18.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.18.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.20.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.20.x)
The operation was canceled.
golangci-lint (1.15.x): plugin/ratelimiter/bbr/cpu/psutil_cpu.go#L15
import-shadowing: The name 'cpu' shadows an import name (revive)
golangci-lint (1.19.x): plugin/ratelimiter/common/ratelimit_slice_window.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint (1.19.x): plugin/ratelimiter/bbr/cpu/psutil_cpu.go#L15
import-shadowing: The name 'cpu' shadows an import name (revive)