netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/modules/x509check/provider.go

Summary

Maintainability
A
35 mins
Test Coverage

Method fromSMTP.certificates has 5 return statements (exceeds 4 allowed).
Open

func (f fromSMTP) certificates() ([]*x509.Certificate, error) {
    ipConn, err := net.DialTimeout(f.url.Scheme, f.url.Host, f.timeout)
    if err != nil {
        return nil, fmt.Errorf("error on dial to '%s': %v", f.url, err)
    }
Severity: Major
Found in src/go/collectors/go.d.plugin/modules/x509check/provider.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status