Skip to content

fix:修复就近路由demo配置文件不对问题 #206

fix:修复就近路由demo配置文件不对问题

fix:修复就近路由demo配置文件不对问题 #206

Triggered via pull request September 6, 2023 04:02
Status Success
Total duration 1m 3s
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): benchmark/benchmain/main.go#L46
const operationRpcDirect should be operationRPCDirect
Run Revive Action (1.20.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.20.x): benchmark/benchmain/main.go#L47
const operationRpcNaming should be operationRPCNaming
Run Revive Action (1.20.x): examples/circuitbreaker/consumer/main.go#L18
should have a package comment
Run Revive Action (1.20.x): benchmark/benchmain/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/circuitbreaker/provider/main.go#L17
should have a package comment
Run Revive Action (1.20.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/quickstart/provider/main.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/ratelimit/provider/main.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): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/circuitbreaker/consumer/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/circuitbreaker/provider/main.go#L17
should have a package comment
Run Revive Action (1.19.x): examples/extensions/zeroprotect/main.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/quickstart/provider/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/ratelimit/consumer/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/ratelimit/provider/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/circuitbreaker/consumer/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/circuitbreaker/provider/main.go#L17
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.16.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.16.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/watch/service/notify/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/watchinstance/main.go#L18
should have a package comment
Run Revive Action (1.16.x): api/config.go#L42
a blank import should be only in a main or test package, or have a comment justifying it
Run Revive Action (1.16.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.16.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.15.x): pkg/plugin/weightadjuster/proxy.go#L18
should have a package comment
Run Revive Action (1.15.x): plugin/circuitbreaker/common/half_open.go#L135
exported const ToClose should have comment (or a comment on this block) or be unexported
Run Revive Action (1.15.x): pkg/stat/plugin/plug.go#L29
type name will be used as plugin.PluginAPI by other packages, and that stutters; consider calling this API
Run Revive Action (1.15.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.15.x): pkg/stat/loadbalance/lb.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/stat/plugin/plug.go#L104
type name will be used as plugin.PluginAPIDelayRange by other packages, and that stutters; consider calling this APIDelayRange
Run Revive Action (1.15.x): pkg/stat/plugin/plug.go#L154
type name will be used as plugin.PluginMethodGauge by other packages, and that stutters; consider calling this MethodGauge
Run Revive Action (1.15.x): pkg/stat/plugin/plug.go#L32
exported const MethodReportAlarm should have comment (or a comment on this block) or be unexported
Run Revive Action (1.15.x): plugin/circuitbreaker/common/half_open.go#L18
should have a package comment
Run Revive Action (1.15.x): api/provider_impl.go#L23
a blank import should be only in a main or test package, or have a comment justifying it
Run Revive Action (1.18.x): benchmark/benchsimple/main.go#L18
should have a package comment
Run Revive Action (1.18.x): benchmark/benchsimple/main.go#L71
var maxQps should be maxQPS
Run Revive Action (1.18.x): examples/circuitbreaker/consumer/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/extensions/zeroprotect/main.go#L18
should have a package comment
Run Revive Action (1.18.x): benchmark/benchsimple/main.go#L181
struct field maxQps should be maxQPS
Run Revive Action (1.18.x): examples/quickstart/provider/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/watch/instance/longpull/main.go#L88
should omit type uint64 from declaration of var index; it will be inferred from the right-hand side
Run Revive Action (1.18.x): examples/ratelimit/provider/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/route/nearby/provider/main.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/circuitbreaker/consumer/main.go#L18
should have a package comment
Run Revive Action (1.17.x): benchmark/benchmain/main.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/circuitbreaker/provider/main.go#L17
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): benchmark/benchsimple/main.go#L89
comment on exported type Durations should be of the form "Durations ..." (with optional leading article)
Run Revive Action (1.17.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/quickstart/provider/main.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): examples/ratelimit/provider/main.go#L18
should have a package comment