Skip to content

[WIP] Implement atomic operations for various metrics using Prometheus as the backend storage #1489

[WIP] Implement atomic operations for various metrics using Prometheus as the backend storage

[WIP] Implement atomic operations for various metrics using Prometheus as the backend storage #1489

Triggered via pull request October 5, 2023 05:43
Status Failure
Total duration 2m 58s
Artifacts

reviewdog.yml

on: pull_request
runner / golangci-lint
2m 39s
runner / golangci-lint
runner / staticcheck
2m 49s
runner / staticcheck
Fit to window
Zoom out
Zoom in

Annotations

4 errors
runner / staticcheck: pkg/metrics/manager/manager.go#L122
[staticcheck] reported by reviewdog 🐶 should use make(chan bool) instead Raw Output: {"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"should use make(chan bool) instead","code":{"value":"S1019","url":"https://staticcheck.io/docs/checks#S1019"},"location":{"path":"/home/runner/work/arana/arana/pkg/metrics/manager/manager.go","range":{"start":{"line":122,"column":32}}},"severity":"ERROR"}
runner / staticcheck: pkg/metrics/manager/manager.go#L376
[staticcheck] reported by reviewdog 🐶 unnecessary assignment to the blank identifier Raw Output: {"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"unnecessary assignment to the blank identifier","code":{"value":"S1005","url":"https://staticcheck.io/docs/checks#S1005"},"location":{"path":"/home/runner/work/arana/arana/pkg/metrics/manager/manager.go","range":{"start":{"line":376,"column":11}}},"severity":"ERROR"}
runner / staticcheck: pkg/metrics/stats/snake_case_converter.go#L59
[staticcheck] reported by reviewdog 🐶 should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice Raw Output: {"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice","code":{"value":"S1007","url":"https://staticcheck.io/docs/checks#S1007"},"location":{"path":"/home/runner/work/arana/arana/pkg/metrics/stats/snake_case_converter.go","range":{"start":{"line":59,"column":3}}},"severity":"ERROR"}
runner / staticcheck
Process completed with exit code 1.