Skip to content

[fix] plugin/circuitbreaker/composite/rule.go中rule.RuleMatcher.Destination.Method为nil的问题 #274

[fix] plugin/circuitbreaker/composite/rule.go中rule.RuleMatcher.Destination.Method为nil的问题

[fix] plugin/circuitbreaker/composite/rule.go中rule.RuleMatcher.Destination.Method为nil的问题 #274

Re-run triggered June 4, 2024 13:18
Status Success
Total duration 57s
Artifacts

revive.yml

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

Annotations

66 warnings
Run Revive Action (1.15.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run Revive Action (1.15.x): examples/circuitbreaker/instance/provider/main.go#L72
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): examples/route/dynamic/provider/main.go#L109
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): examples/circuitbreaker/interface/provider/main.go#L72
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): examples/configuration/group/main.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/circuitbreaker/instance/consumer/main.go#L99
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.15.x): examples/quickstart/consumer/main.go#L58
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): examples/route/nearby/provider/main.go#L132
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.19.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run Revive Action (1.19.x): examples/quickstart/provider/main.go#L73
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.19.x): examples/quickstart/consumer/main.go#L58
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.19.x): examples/circuitbreaker/interface/consumer/main.go#L75
parameter 'ctx' seems to be unused, consider removing or renaming it as _
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/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/ratelimit/consumer/main.go#L58
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.19.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/route/dynamic/provider/main.go#L109
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.19.x): examples/route/nearby/consumer/main.go#L75
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.17.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run Revive Action (1.17.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.17.x): pkg/plugin/serverconnector/proxy.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): 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.17.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.17.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/route/dynamic/provider/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.17.x): api/circuitbreaker.go#L38
exported type ResultToErrorCode should have comment or be unexported
Run Revive Action (1.17.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.20.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run Revive Action (1.20.x): examples/circuitbreaker/interface/consumer/main.go#L75
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.20.x): examples/circuitbreaker/interface/consumer/main.go#L95
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.20.x): examples/activehealthcheck/main.go#L129
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.20.x): examples/circuitbreaker/instance/consumer/main.go#L99
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.20.x): examples/circuitbreaker/interface/provider/main.go#L72
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.20.x): examples/ratelimit/consumer/main.go#L58
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.20.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.20.x): benchmark/benchmain/main.go#L325
parameter 'pos' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.20.x): examples/route/nearby/consumer/main.go#L75
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run Revive Action (1.18.x): benchmark/benchmain/main.go#L325
parameter 'pos' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/circuitbreaker/interface/provider/main.go#L72
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/circuitbreaker/interface/consumer/main.go#L75
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/route/nearby/consumer/main.go#L75
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/circuitbreaker/instance/consumer/main.go#L99
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): benchmark/benchmain/main.go#L325
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/route/nearby/provider/main.go#L132
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/ratelimit/consumer/main.go#L58
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.18.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.18.x): api.go#L134
exported type GetConfigFileRequest should have comment or be unexported
Run Revive Action (1.16.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run Revive Action (1.16.x): examples/route/dynamic/consumer/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): api_config.go#L116
comment on exported function NewConfigGroupAPIByConfig should be of the form "NewConfigGroupAPIByConfig ..."
Run Revive Action (1.16.x): examples/ratelimit/consumer/main.go#L58
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): api_config.go#L127
comment on exported function NewConfigGroupAPIByFile should be of the form "NewConfigGroupAPIByFile ..."
Run Revive Action (1.16.x): plugin/weightadjuster/ratedelay/ratedelay.go#L58
parameter 'service' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): test/common/constant.go#L18
should have a package comment
Run Revive Action (1.16.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.16.x): pkg/algorithm/match/match.go#L18
should have a package comment