dotcloud/docker

View on GitHub
registry/auth.go

Summary

Maintainability
A
1 hr
Test Coverage

Function v2AuthHTTPClient has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func v2AuthHTTPClient(endpoint *url.URL, authTransport http.RoundTripper, modifiers []transport.RequestModifier, creds auth.CredentialStore, scopes []auth.Scope) (*http.Client, error) {
Severity: Minor
Found in registry/auth.go - About 35 mins to fix

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

    func loginV2(authConfig *registry.AuthConfig, endpoint APIEndpoint, userAgent string) (string, string, error) {
        var (
            endpointStr          = strings.TrimRight(endpoint.URL.String(), "/") + "/v2/"
            modifiers            = Headers(userAgent, nil)
            authTransport        = transport.NewTransport(newTransport(endpoint.TLSConfig), modifiers...)
    Severity: Major
    Found in registry/auth.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status