dotcloud/docker

View on GitHub
cmd/dockerd/config.go

Summary

Maintainability
A
1 hr
Test Coverage

Function installCommonConfigFlags has 52 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) {
    var (
        allowNonDistributable = opts.NewNamedListOptsRef("allow-nondistributable-artifacts", &conf.AllowNondistributableArtifacts, registry.ValidateIndexName)
        registryMirrors       = opts.NewNamedListOptsRef("registry-mirrors", &conf.Mirrors, registry.ValidateMirror)
        insecureRegistries    = opts.NewNamedListOptsRef("insecure-registries", &conf.InsecureRegistries, registry.ValidateIndexName)
Severity: Minor
Found in cmd/dockerd/config.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status