dotcloud/docker

View on GitHub
registry/search_endpoint_v1.go

Summary

Maintainability
A
1 hr
Test Coverage

Function newV1Endpoint has 6 return statements (exceeds 4 allowed).
Open

func newV1Endpoint(index *registry.IndexInfo, headers http.Header) (*v1Endpoint, error) {
    tlsConfig, err := newTLSConfig(index.Name, index.Secure)
    if err != nil {
        return nil, err
    }
Severity: Major
Found in registry/search_endpoint_v1.go - About 40 mins to fix

    Method v1Endpoint.ping has 5 return statements (exceeds 4 allowed).
    Open

    func (e *v1Endpoint) ping() (v1PingResult, error) {
        if e.String() == IndexServer {
            // Skip the check, we know this one is valid
            // (and we never want to fallback to http in case of error)
            return v1PingResult{}, nil
    Severity: Major
    Found in registry/search_endpoint_v1.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status