Skip to content

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

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

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

Re-run triggered November 24, 2023 02:54
Status Success
Total duration 40s
Artifacts

revive.yml

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

Annotations

60 warnings
Run Revive Action (1.20.x): plugin/logger/zaplog/logger.go#L18
should have a package comment
Run Revive Action (1.20.x): plugin/loadbalancer/ringhash/config.go#L18
should have a package comment
Run Revive Action (1.20.x): plugin/loadbalancer/maglev/maglev.go#L32
type name will be used as maglev.MaglevLoadBalancer by other packages, and that stutters; consider calling this LoadBalancer
Run Revive Action (1.20.x): plugin/loadbalancer/maglev/config.go#L18
should have a package comment
Run Revive Action (1.20.x): test/discover/api_consumer_suite.go#L18
should have a package comment
Run Revive Action (1.20.x): plugin/location/location.go#L35
type name will be used as location.LocationPlugin by other packages, and that stutters; consider calling this Plugin
Run Revive Action (1.20.x): examples/configuration/fallback/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): examples/watch/instance/longpull/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/watch/instance/notify/main.go#L18
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): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.15.x): plugin/servicerouter/nearbybase/nearby.go#L189
exported method NearbyBasedInstancesFilter.GetLevel should have comment or be unexported
Run Revive Action (1.15.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/flow/registerstate/register_flow.go#L41
exported function NewRegisterStateManager should have comment or be unexported
Run Revive Action (1.15.x): examples/watchinstance/main.go#L18
should have a package comment
Run Revive Action (1.15.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.15.x): plugin/servicerouter/setdivision/setdivision.go#L69
parameter 'routeInfo' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): pkg/model/pb/metric/v2/code.go#L18
should have a package comment
Run Revive Action (1.15.x): plugin/servicerouter/rulebase/rule.go#L237
exported type RuleRouterConfig should have comment or be unexported
Run Revive Action (1.15.x): pkg/plugin/manage.go#L443
type name will be used as plugin.PluginBase by other packages, and that stutters; consider calling this Base
Run Revive Action (1.17.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/model/pb/metric/v2/code.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): pkg/plugin/configfilter/configfilter.go#L19
should have a package comment
Run Revive Action (1.17.x): examples/watch/service/longpull/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/plugin/healthcheck/healthcheck.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/plugin/loadbalancer/util.go#L25
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/ratelimit/consumer/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/quickstart/consumer/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/quickstart/provider/main.go#L18
should have a package comment
Run Revive Action (1.18.x): benchmark/benchmain/main.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/register/plugins.go#L21
a blank import should be only in a main or test package, or have a comment justifying it
Run Revive Action (1.19.x): pkg/plugin/register/plugins.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/ratelimiter/model.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/ratelimiter/model.go#L57
exported type AmountInfo 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): pkg/plugin/healthcheck/healthcheck.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/location/location.go#L18
should have a package comment
Run Revive Action (1.19.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.19.x): plugin/servicerouter/setdivision/setdivision.go#L69
parameter 'routeInfo' seems to be unused, consider removing or renaming it as _