dotcloud/docker

View on GitHub
internal/directory/directory_windows.go

Summary

Maintainability
A
45 mins
Test Coverage

Function calcSize has 7 return statements (exceeds 4 allowed).
Open

func calcSize(ctx context.Context, dir string) (int64, error) {
    var size int64
    err := filepath.Walk(dir, func(d string, fileInfo os.FileInfo, err error) error {
        if err != nil {
            // if dir/x disappeared while walking, Size() ignores dir/x.
Severity: Major
Found in internal/directory/directory_windows.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status