dotcloud/docker

View on GitHub
distribution/registry.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function newRepository has 62 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func newRepository(
    ctx context.Context, repoInfo *registry.RepositoryInfo, endpoint registry.APIEndpoint,
    metaHeaders http.Header, authConfig *registrytypes.AuthConfig, actions ...string,
) (distribution.Repository, error) {
    repoName := repoInfo.Name.Name()
Severity: Minor
Found in distribution/registry.go - About 1 hr to fix

    Function newRepository has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        ctx context.Context, repoInfo *registry.RepositoryInfo, endpoint registry.APIEndpoint,
        metaHeaders http.Header, authConfig *registrytypes.AuthConfig, actions ...string,
    Severity: Minor
    Found in distribution/registry.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status