Fantom-foundation/go-lachesis

View on GitHub
metrics/prometheus/metrics.go

Summary

Maintainability
A
45 mins
Test Coverage

Function convertToPrometheusMetric has 7 return statements (exceeds 4 allowed).
Open

func convertToPrometheusMetric(name string, m interface{}) (prometheus.Collector, bool) {
    opts := prometheus.Opts{
        Namespace: namespace,
        Name:      prometheusDelims(name),
    }
Severity: Major
Found in metrics/prometheus/metrics.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status