dotcloud/docker

View on GitHub
oci/devices_linux.go

Summary

Maintainability
A
35 mins
Test Coverage

Function DevicesFromPath has 5 return statements (exceeds 4 allowed).
Open

func DevicesFromPath(pathOnHost, pathInContainer, cgroupPermissions string) (devs []specs.LinuxDevice, devPermissions []specs.LinuxDeviceCgroup, err error) {
    resolvedPathOnHost := pathOnHost

    // check if it is a symbolic link
    if src, e := os.Lstat(pathOnHost); e == nil && src.Mode()&os.ModeSymlink == os.ModeSymlink {
Severity: Major
Found in oci/devices_linux.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status