dotcloud/docker

View on GitHub
daemon/cluster/executor/container/validate.go

Summary

Maintainability
A
40 mins
Test Coverage

Function validateMounts has 6 return statements (exceeds 4 allowed).
Open

func validateMounts(mounts []api.Mount) error {
    for _, mount := range mounts {
        // Target must always be absolute
        // except if target is Windows named pipe
        if !filepath.IsAbs(mount.Target) && mount.Type != api.MountTypeNamedPipe {
Severity: Major
Found in daemon/cluster/executor/container/validate.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status