feat:add consul && client && server &&config watch #1
Annotations
9 errors and 1 warning
staticcheck:
consul/consul.go#L188
[staticcheck] reported by reviewdog 🐶
this value of err is never used
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"this value of err is never used","code":{"value":"SA4006","url":"https://staticcheck.io/docs/checks#SA4006"},"location":{"path":"/root/runner/kitex-contrib-lq-runner-02/config-consul/config-consul/consul/consul.go","range":{"start":{"line":188,"column":3}}},"severity":"ERROR"}
|
staticcheck:
consul/consul.go#L208
[staticcheck] reported by reviewdog 🐶
possible nil pointer dereference
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"possible nil pointer dereference","code":{"value":"SA5011","url":"https://staticcheck.io/docs/checks#SA5011"},"location":{"path":"/root/runner/kitex-contrib-lq-runner-02/config-consul/config-consul/consul/consul.go","range":{"start":{"line":208,"column":5}}},"severity":"ERROR"}
|
staticcheck:
consul/consul.go#L226
[staticcheck] reported by reviewdog 🐶
should not have an empty default case in a for+select loop; the loop will spin
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"should not have an empty default case in a for+select loop; the loop will spin","code":{"value":"SA5004","url":"https://staticcheck.io/docs/checks#SA5004"},"location":{"path":"/root/runner/kitex-contrib-lq-runner-02/config-consul/config-consul/consul/consul.go","range":{"start":{"line":226,"column":4}}},"severity":"ERROR"}
|
staticcheck
Process completed with exit code 1.
|
compliant
Process completed with exit code 1.
|
lint:
consul/consul.go#L5
File is not `gofumpt`-ed with `-extra` (gofumpt)
|
lint:
consul/consul.go#L10
File is not `gofumpt`-ed with `-extra` (gofumpt)
|
lint:
consul/consul.go#L95
File is not `gofumpt`-ed with `-extra` (gofumpt)
|
lint
issues found
|
compliant
Restore cache failed: Some specified paths were not resolved, unable to cache dependencies.
|