dotcloud/docker

View on GitHub
plugin/executor/containerd/containerd.go

Summary

Maintainability
A
1 hr
Test Coverage

Function New has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

func New(ctx context.Context, rootDir string, cli *containerd.Client, ns string, exitHandler ExitHandler, shim string, shimOpts interface{}) (*Executor, error) {
Severity: Major
Found in plugin/executor/containerd/containerd.go - About 50 mins to fix

    Method Executor.Restore has 8 return statements (exceeds 4 allowed).
    Open

    func (e *Executor) Restore(id string, stdout, stderr io.WriteCloser) (bool, error) {
        ctx := context.Background()
        p := c8dPlugin{log: log.G(ctx).WithField("plugin", id)}
        ctr, err := e.client.LoadContainer(ctx, id)
        if err != nil {
    Severity: Major
    Found in plugin/executor/containerd/containerd.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status