daemon/cluster/executor/container/validate.go
Function validateMounts
has 6 return statements (exceeds 4 allowed). Open
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 {