dotcloud/docker

View on GitHub
daemon/disk_usage.go

Summary

Maintainability
A
40 mins
Test Coverage

Method Daemon.SystemDiskUsage has 6 return statements (exceeds 4 allowed).
Open

func (daemon *Daemon) SystemDiskUsage(ctx context.Context, opts system.DiskUsageOptions) (*types.DiskUsage, error) {
    eg, ctx := errgroup.WithContext(ctx)

    var containers []*container.Summary
    if opts.Containers {
Severity: Major
Found in daemon/disk_usage.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status