docker/swarmkit

View on GitHub
ca/transport.go

Summary

Maintainability
A
35 mins
Test Coverage

Function GetAndValidateCertificateSubject has 5 return statements (exceeds 4 allowed).
Open

func GetAndValidateCertificateSubject(certs []tls.Certificate) (pkix.Name, error) {
    for i := range certs {
        cert := &certs[i]
        x509Cert, err := x509.ParseCertificate(cert.Certificate[0])
        if err != nil {
Severity: Major
Found in ca/transport.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status