dotcloud/docker

View on GitHub
internal/safepath/common.go

Summary

Maintainability
A
45 mins
Test Coverage

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

func evaluatePath(path, subpath string) (resolvedBasePath string, resolvedSubpath string, err error) {
    baseResolved, err := filepath.EvalSymlinks(path)
    if err != nil {
        if errors.Is(err, os.ErrNotExist) {
            return "", "", &ErrNotAccessible{Path: path, Cause: err}
Severity: Major
Found in internal/safepath/common.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status