dotcloud/docker

View on GitHub
pkg/chrootarchive/archive_unix_nolinux.go

Summary

Maintainability
A
1 hr
Test Coverage

Function doUnpackLayer has 6 return statements (exceeds 4 allowed).
Open

func doUnpackLayer(root string, layer io.Reader, options *archive.TarOptions) (int64, error) {
    var result int64
    optionsR, optionsW, err := os.Pipe()
    if err != nil {
        return 0, err
Severity: Major
Found in pkg/chrootarchive/archive_unix_nolinux.go - About 40 mins to fix

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

    func doUnpack(decompressedArchive io.Reader, relDest, root string, options *archive.TarOptions) error {
        optionsR, optionsW, err := os.Pipe()
        if err != nil {
            return err
        }
    Severity: Major
    Found in pkg/chrootarchive/archive_unix_nolinux.go - About 35 mins to fix

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

      func doPack(relSrc, root string, options *archive.TarOptions) (io.ReadCloser, error) {
          optionsR, optionsW, err := os.Pipe()
          if err != nil {
              return nil, err
          }
      Severity: Major
      Found in pkg/chrootarchive/archive_unix_nolinux.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status