dotcloud/docker

View on GitHub
internal/directory/directory_unix.go

Summary

Maintainability
A
50 mins
Test Coverage

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

func calcSize(ctx context.Context, dir string) (int64, error) {
    var size int64
    data := make(map[uint64]struct{})
    err := filepath.Walk(dir, func(d string, fileInfo os.FileInfo, err error) error {
        if err != nil {
Severity: Major
Found in internal/directory/directory_unix.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status