Skip to content

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

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

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

Triggered via pull request November 19, 2023 09:35
Status Success
Total duration 47s
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/plugin/metrics/proxy.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/plugin/location/location.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/plugin/location/proxy.go#L26
exported type Proxy should have comment or be unexported
Run Revive Action (1.15.x): pkg/stat/loadbalance/lb.go#L18
should have a package comment
Run Revive Action (1.15.x): examples/watch/instance/longpull/main.go#L18
should have a package comment
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): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/model/pb/metric/code.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.16.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.16.x): pkg/model/pb/metric/v2/code.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): api/config_file.go#L35
exported type ConfigGroupAPI should have comment or be unexported
Run Revive Action (1.16.x): pkg/plugin/healthcheck/healthcheck.go#L18
should have a package comment
Run Revive Action (1.16.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.16.x): api/circuitbreaker.go#L38
exported type ResultToErrorCode should have comment or be unexported
Run Revive Action (1.16.x): pkg/plugin/loadbalancer/util.go#L25
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.19.x): examples/activehealthcheck/main.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.19.x): benchmark/benchsimple/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): pkg/plugin/loadbalancer/loadbalancer.go#L18
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): pkg/plugin/localregistry/localregistry.go#L18
should have a package comment
Run Revive Action (1.19.x): test/subscribe/subscribe_suit.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/plugin/weightadjuster/proxy.go#L18
should have a package comment
Run Revive Action (1.17.x): plugin/servicerouter/canary/canary_router.go#L33
type name will be used as canary.CanaryRouterFilter by other packages, and that stutters; consider calling this RouterFilter
Run Revive Action (1.17.x): plugin/servicerouter/canary/canary_router.go#L231
parameter 'routeInfo' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.17.x): plugin/ratelimiter/unirate/bucket_leaky.go#L155
parameter 'curTimeMs' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): plugin/servicerouter/setdivision/setdivision.go#L69
parameter 'routeInfo' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x): examples/quickstart/provider/main.go#L18
should have a package comment
Run Revive Action (1.17.x): plugin/ratelimiter/reject/bucket.go#L18
should have a package comment
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/normal/main.go#L18
should have a package comment
Run Revive Action (1.18.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.18.x): plugin/loadbalancer/common/half_open.go#L18
should have a package comment
Run Revive Action (1.18.x): plugin/loadbalancer/hash/config.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): 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): plugin/loadbalancer/weightedrandom/wr.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/route/dynamic/consumer/main.go#L18
should have a package comment
Run Revive Action (1.20.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.20.x): examples/watch/service/notify/main.go#L44
exported type TestListener should have comment or be unexported
Run Revive Action (1.20.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.20.x): pkg/plugin/manage.go#L500
parameter 'cfg' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.20.x): pkg/plugin/circuitbreaker/proxy.go#L32
comment on exported method Proxy.CheckResource should be of the form "CheckResource ..."
Run Revive Action (1.20.x): pkg/plugin/configfilter/configfilter.go#L19
should have a package comment
Run Revive Action (1.20.x): pkg/flow/registerstate/register_flow.go#L41
exported function NewRegisterStateManager should have comment or be unexported
Run Revive Action (1.20.x): examples/configuration/fallback/main.go#L18
should have a package comment