dotcloud/docker

View on GitHub
daemon/archive_unix.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Daemon.containerExtractToDir has 10 return statements (exceeds 4 allowed).
Open

func (daemon *Daemon) containerExtractToDir(container *container.Container, path string, copyUIDGID, noOverwriteDirNonDir bool, content io.Reader) (err error) {
    container.Lock()
    defer container.Unlock()

    cfs, err := daemon.openContainerFS(container)
Severity: Major
Found in daemon/archive_unix.go - About 1 hr to fix

    Method Daemon.containerArchivePath has 5 return statements (exceeds 4 allowed).
    Open

    func (daemon *Daemon) containerArchivePath(container *container.Container, path string) (content io.ReadCloser, stat *containertypes.PathStat, err error) {
        container.Lock()
    
        defer func() {
            if err != nil {
    Severity: Major
    Found in daemon/archive_unix.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status