Skip to content

feat: configGroupAPI support return file content #378

feat: configGroupAPI support return file content

feat: configGroupAPI support return file content #378

Triggered via pull request December 22, 2025 09:59
Status Success
Total duration 1m 57s
Artifacts

revive.yml

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

Annotations

40 warnings
Run Revive Action (1.19.x): examples/watch/instance/notify/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/route/rule/consumer/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/watch/instance/longpull/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/route/rule/provider/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/loadbalancer/provider/main.go#L18
should have a package comment
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/nearby/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/route/metadata/provider/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.22.x): examples/loadbalancer/consumer/main.go#L65
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.22.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.22.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.22.x): examples/activehealthcheck/main.go#L129
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.22.x): benchmark/benchmain/main.go#L325
parameter 'pos' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.22.x): examples/circuitbreaker/interface/consumer/main.go#L116
parameter 'ctx' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.22.x): pkg/stat/loadbalance/lb.go#L18
should have a package comment
Run Revive Action (1.22.x): pkg/plugin/weightadjuster/proxy.go#L18
should have a package comment
Run Revive Action (1.22.x): pkg/plugin/serverconnector/proxy.go#L18
should have a package comment
Run Revive Action (1.22.x): pkg/plugin/metrics/proxy.go#L18
should have a package comment
Run Revive Action (1.21.x): pkg/flow/registerstate/register_flow.go#L41
exported function NewRegisterStateManager should have comment or be unexported
Run Revive Action (1.21.x): examples/ratelimit/provider-a/main.go#L18
should have a package comment
Run Revive Action (1.21.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.21.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.21.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.21.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.21.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.21.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.20.x): pkg/algorithm/match/match.go#L31
exported const MatchAll should have comment (or a comment on this block) or be unexported
Run Revive Action (1.20.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.20.x): examples/configuration/encrypt/main.go#L18
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): plugin/servicerouter/zeroprotect/zeroprotect.go#L34
exported const MetadataInstanceLastHeartbeatTime should have comment (or a comment on this block) or be unexported
Run Revive Action (1.20.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.20.x): benchmark/benchsimple/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watch/instance/notify/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/route/nearby/provider/main.go#L18
should have a package comment