Skip to content

fix:文件配置持久化字段添加非空判断 #328

fix:文件配置持久化字段添加非空判断

fix:文件配置持久化字段添加非空判断 #328

Triggered via pull request February 12, 2025 12:23
Status Success
Total duration 42s
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): benchmark/benchsimple/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): pkg/plugin/location/location.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): 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.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/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.17.x): plugin/location/remotehttp/remotehttp.go#L18
should have a package comment
Run Revive Action (1.18.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.18.x): api.go#L134
exported type GetConfigFileRequest should have comment or be unexported
Run Revive Action (1.18.x): api.go#L135
exported type GetConfigGroupRequest should have comment or be unexported
Run Revive Action (1.18.x): api.go#L166
exported type CircuitBreakerAPI should have comment or be unexported
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/circuitbreaker/interface/consumer/main.go#L95
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/circuitbreaker.go#L38
exported type ResultToErrorCode should have comment or be unexported
Run Revive Action (1.18.x): api/config_file.go#L22
exported type GetConfigFileRequest should have comment or be unexported
Run Revive Action (1.19.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): pkg/plugin/loadbalancer/loadbalancer.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/ratelimiter/model.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/circuitbreaker/proxy.go#L32
comment on exported method Proxy.CheckResource should be of the form "CheckResource ..."
Run Revive Action (1.19.x): pkg/plugin/configfilter/configfilter.go#L19
should have a package comment
Run Revive Action (1.19.x): plugin/loadbalancer/weightedrandom/wr.go#L65
parameter 'ignoreHalfOpen' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.19.x): pkg/algorithm/hash/base.go#L32
type name will be used as hash.HashFuncWithSeed by other packages, and that stutters; consider calling this FuncWithSeed
Run Revive Action (1.19.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.19.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/normal/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/loadbalancer/consumer/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/loadbalancer/provider/main.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/mock/main.go#L1
invalid file examples/mock/main.go: examples/mock/main.go:69:13: expected ';', found 0 (and 1 more errors)
Run Revive Action (1.16.x): pkg/stat/plugin/plug.go#L18
should have a package comment
Run Revive Action (1.16.x): examples/quickstart/provider/main.go#L18
should have a package comment
Run Revive Action (1.16.x): plugin/configfilter/crypto/aes/aes.go#L19
should have a package comment
Run Revive Action (1.16.x): plugin/configfilter/crypto/config.go#L19
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.15.x): examples/activehealthcheck/main.go#L129
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/plugin/ratelimiter/model.go#L18
should have a package comment
Run Revive Action (1.15.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.15.x): examples/circuitbreaker/instance/consumer/main.go#L100
parameter 'r' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): pkg/plugin/serverconnector/proxy.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/plugin/circuitbreaker/proxy.go#L32
comment on exported method Proxy.CheckResource should be of the form "CheckResource ..."
Run Revive Action (1.15.x): pkg/plugin/circuitbreaker/proxy.go#L37
comment on exported method Proxy.Report should be of the form "Report ..."
Run Revive Action (1.15.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/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/mock/main.go#L1
invalid file examples/mock/main.go: examples/mock/main.go:69:13: expected ';', found 0 (and 1 more errors)
Run Revive Action (1.20.x): examples/watch/instance/longpull/main.go#L18
should have a package comment
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/group/main.go#L18
should have a package comment
Run Revive Action (1.20.x): pkg/clock/clock.go#L77
exported function CurrentMillis should have comment or be unexported
Run Revive Action (1.20.x): examples/route/dynamic/consumer/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watchinstance/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/route/nearby/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