Skip to content

feat:支持新版本的熔断规则设置 #247

feat:支持新版本的熔断规则设置

feat:支持新版本的熔断规则设置 #247

Triggered via pull request November 19, 2023 10:15
Status Success
Total duration 45s
Artifacts

revive.yml

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

Annotations

60 warnings
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/loadbalancer.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/plugin/localregistry/localregistry.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/plugin/location/location.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): pkg/plugin/metrics/proxy.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/plugin/ratelimiter/model.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/plugin/register/plugins.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/quickstart/consumer/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/extensions/zeroprotect/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.20.x): plugin/loadbalancer/common/half_open.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/ratelimit/consumer/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/route/dynamic/provider/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.20.x): plugin/location/remotehttp/remotehttp.go#L18
should have a package comment
Run Revive Action (1.15.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.15.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.15.x): benchmark/benchsimple/main.go#L89
comment on exported type Durations should be of the form "Durations ..." (with optional leading article)
Run Revive Action (1.15.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.15.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.15.x): plugin/servicerouter/dstmeta/router.go#L197
parameter 'clusters' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): plugin/servicerouter/filteronly/router.go#L68
parameter 'routeInfo' seems to be unused, consider removing or renaming it as _
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.18.x): pkg/plugin/register/plugins.go#L18
should have a package comment
Run Revive Action (1.18.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.18.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.18.x): plugin/configfilter/crypto/crypto.go#L99
parameter 'configFile' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/watch/service/notify/main.go#L44
exported type TestListener should have comment or be unexported
Run Revive Action (1.18.x): api/consumer_impl.go#L29
a blank import should be only in a main or test package, or have a comment justifying it
Run Revive Action (1.18.x): examples/watchinstance/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/route/dynamic/provider/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.19.x): benchmark/benchmain/main.go#L46
const operationRpcDirect should be operationRPCDirect
Run Revive Action (1.19.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.19.x): benchmark/benchmain/main.go#L47
const operationRpcNaming should be operationRPCNaming
Run Revive Action (1.19.x): pkg/algorithm/rand/scalable_rand_test.go#L51
parameter 't' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.19.x): pkg/plugin/serverconnector/proxy.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): examples/quickstart/consumer/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/route/dynamic/provider/main.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/servicerouter/util.go#L58
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.16.x): pkg/plugin/common/plugin.go#L18
should have a package comment
Run Revive Action (1.16.x): pkg/plugin/circuitbreaker/proxy.go#L32
comment on exported method Proxy.CheckResource should be of the form "CheckResource ..."
Run Revive Action (1.16.x): pkg/plugin/circuitbreaker/proxy.go#L37
comment on exported method Proxy.Report should be of the form "Report ..."
Run Revive Action (1.16.x): pkg/plugin/serverconnector/proxy.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): pkg/stat/loadbalance/lb.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): pkg/stat/loadbalance/lb.go#L27
type name will be used as loadbalance.LoadBalanceGauge by other packages, and that stutters; consider calling this Gauge