dotcloud/docker

View on GitHub
daemon/metrics.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func makePluginAdapter(p plugingetter.CompatPlugin) (metricsPlugin, error) {
    if pc, ok := p.(plugingetter.PluginWithV1Client); ok {
        return &metricsPluginAdapter{pc.Client(), p.Name()}, nil
    }

Severity: Major
Found in daemon/metrics.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status