dotcloud/docker

View on GitHub
pkg/archive/copy.go

Summary

Maintainability
A
1 hr
Test Coverage

Function CopyInfoDestinationPath has 8 return statements (exceeds 4 allowed).
Open

func CopyInfoDestinationPath(path string) (info CopyInfo, err error) {
    maxSymlinkIter := 10 // filepath.EvalSymlinks uses 255, but 10 already seems like a lot.
    path = normalizePath(path)
    originalPath := path

Severity: Major
Found in pkg/archive/copy.go - About 50 mins to fix

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

    func RebaseArchiveEntries(srcContent io.Reader, oldBase, newBase string) io.ReadCloser {
        if oldBase == string(os.PathSeparator) {
            // If oldBase specifies the root directory, use an empty string as
            // oldBase instead so that newBase doesn't replace the path separator
            // that all paths will start with.
    Severity: Major
    Found in pkg/archive/copy.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status