dotcloud/docker

View on GitHub
internal/safepath/join_linux.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func Join(_ context.Context, path, subpath string) (*SafePath, error) {
    base, subpart, err := evaluatePath(path, subpath)
    if err != nil {
        return nil, err
    }
Severity: Major
Found in internal/safepath/join_linux.go - About 35 mins to fix

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

    func tempMountPoint(sourceFd int) (string, error) {
        var stat unix.Stat_t
        err := unix_noeintr.Fstat(sourceFd, &stat)
        if err != nil {
            return "", errors.Wrap(err, "failed to Fstat mount source fd")
    Severity: Major
    Found in internal/safepath/join_linux.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status