firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/prometheus/init.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Prometheus.initPrometheusClient has 5 return statements (exceeds 4 allowed).
Open

func (p *Prometheus) initPrometheusClient() (prometheus.Prometheus, error) {
    httpClient, err := web.NewHTTPClient(p.ClientConfig)
    if err != nil {
        return nil, fmt.Errorf("init HTTP client: %v", err)
    }
Severity: Major
Found in src/go/plugin/go.d/modules/prometheus/init.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status