Skip to content

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

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

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

Re-run triggered December 19, 2023 07:42
Status Success
Total duration 49s
Artifacts

revive.yml

on: pull_request
Matrix: Run Revive Action
Fit to window
Zoom out
Zoom in

Annotations

60 warnings
Run Revive Action (1.15.x): pkg/model/pb/metric/code.go#L28
exported const ExecuteSuccess should have comment (or a comment on this block) or be unexported
Run Revive Action (1.15.x): pkg/model/pb/metric/code.go#L18
should have a package comment
Run Revive Action (1.15.x): plugin/location/local/local.go#L35
exported function New should have comment or be unexported
Run Revive Action (1.19.x): examples/watch/service/notify/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/metric/bucket.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/watchinstance/main.go#L18
should have a package comment
Run Revive Action (1.19.x): benchmark/benchsimple/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/flow/schedule/event.go#L18
should have a package comment
Run Revive Action (1.19.x): benchmark/benchmain/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/log/default.go#L23
exported const DefaultLogLevel should have comment (or a comment on this block) or be unexported
Run Revive Action (1.19.x): plugin/serverconnector/grpc/config.go#L18
should have a package comment
Run Revive Action (1.15.x): plugin/location/remoteservice/remoteservice.go#L35
exported function New should have comment or be unexported
Run Revive Action (1.15.x): plugin/location/remotehttp/remotehttp.go#L33
exported function New should have comment or be unexported
Run Revive Action (1.19.x): test/tools/tools_vet.go#L18
should have a package comment
Run Revive Action (1.19.x): plugin/healthcheck/tcp/config.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/servicerouter/proxy.go#L18
should have a package comment
Run Revive Action (1.19.x): plugin/configfilter/crypto/config.go#L19
should have a package comment
Run Revive Action (1.16.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.16.x): pkg/plugin/weightadjuster/proxy.go#L18
should have a package comment
Run Revive Action (1.16.x): api_config.go#L116
comment on exported function NewConfigGroupAPIByConfig should be of the form "NewConfigGroupAPIByConfig ..."
Run Revive Action (1.16.x): pkg/stat/loadbalance/lb.go#L27
type name will be used as loadbalance.LoadBalanceGauge by other packages, and that stutters; consider calling this Gauge
Run Revive Action (1.16.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.16.x): plugin/configfilter/crypto/rsa/rsa.go#L30
type name will be used as rsa.RSAKey by other packages, and that stutters; consider calling this Key
Run Revive Action (1.16.x): api.go#L134
exported type GetConfigFileRequest should have comment or be unexported
Run Revive Action (1.16.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.18.x): plugin/location/local/local.go#L18
should have a package comment
Run Revive Action (1.18.x): plugin/location/remotehttp/remotehttp.go#L18
should have a package comment
Run Revive Action (1.18.x): pkg/plugin/loadbalancer/loadbalancer.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/watch/instance/longpull/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/watch/instance/notify/main.go#L18
should have a package comment
Run Revive Action (1.18.x): plugin/logger/zaplog/logger.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/watch/service/longpull/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/watch/service/notify/main.go#L18
should have a package comment
Run Revive Action (1.18.x): plugin/location/local/local.go#L35
exported function New should have comment or be unexported
Run Revive Action (1.17.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.17.x): plugin/configfilter/crypto/config.go#L19
should have a package comment
Run Revive Action (1.17.x): plugin/loadbalancer/common/half_open.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/flow/registerstate/register_flow.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/metric/bucket.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/ratelimit/consumer/main.go#L18
should have a package comment
Run Revive Action (1.17.x): plugin/healthcheck/udp/config.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watch/service/longpull/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watch/service/longpull/main.go#L52
should omit type uint64 from declaration of var index; it will be inferred from the right-hand side
Run Revive Action (1.20.x): examples/watch/service/longpull/main.go#L77
should omit type uint64 from declaration of var index; it will be inferred from the right-hand side
Run Revive Action (1.20.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.20.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watch/service/notify/main.go#L44
exported type TestListener should have comment or be unexported
Run Revive Action (1.20.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watch/instance/notify/main.go#L76
exported type TestListener should have comment or be unexported
Run Revive Action (1.20.x): examples/configuration/group/main.go#L18
should have a package comment