distribution/registry.go
Function newRepository
has 62 lines of code (exceeds 50 allowed). Consider refactoring. Open
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()
Function newRepository
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context, repoInfo *registry.RepositoryInfo, endpoint registry.APIEndpoint,
metaHeaders http.Header, authConfig *registrytypes.AuthConfig, actions ...string,