dotcloud/docker

View on GitHub
builder/dockerfile/internals.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Builder.performCopy has 8 return statements (exceeds 4 allowed).
Open

func (b *Builder) performCopy(ctx context.Context, req dispatchRequest, inst copyInstruction) error {
    state := req.state
    srcHash := getSourceHashFromInfos(inst.infos)

    var chownComment string
Severity: Major
Found in builder/dockerfile/internals.go - About 50 mins to fix

    Method Builder.exportImage has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (b *Builder) exportImage(ctx context.Context, state *dispatchState, layer builder.RWLayer, parent builder.Image, runConfig *container.Config) error {
    Severity: Minor
    Found in builder/dockerfile/internals.go - About 35 mins to fix

      Method Builder.exportImage has 5 return statements (exceeds 4 allowed).
      Open

      func (b *Builder) exportImage(ctx context.Context, state *dispatchState, layer builder.RWLayer, parent builder.Image, runConfig *container.Config) error {
          newLayer, err := layer.Commit()
          if err != nil {
              return err
          }
      Severity: Major
      Found in builder/dockerfile/internals.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status