netdata/netdata

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

Summary

Maintainability
A
35 mins
Test Coverage

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

func (p *Prometheus) Init() error {
    if err := p.validateConfig(); err != nil {
        p.Errorf("validating config: %v", err)
        return err
    }
Severity: Major
Found in src/go/collectors/go.d.plugin/modules/prometheus/prometheus.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status