dotcloud/docker

View on GitHub
integration/internal/container/exec.go

Summary

Maintainability
A
1 hr
Test Coverage

Function ExecT has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

func ExecT(ctx context.Context, t testing.TB, apiClient client.APIClient, id string, cmd []string, ops ...func(*container.ExecOptions)) ExecResult {
Severity: Minor
Found in integration/internal/container/exec.go - About 45 mins to fix

    Function Exec has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func Exec(ctx context.Context, apiClient client.APIClient, id string, cmd []string, ops ...func(*container.ExecOptions)) (ExecResult, error) {
    Severity: Minor
    Found in integration/internal/container/exec.go - About 35 mins to fix

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

      func Exec(ctx context.Context, apiClient client.APIClient, id string, cmd []string, ops ...func(*container.ExecOptions)) (ExecResult, error) {
          // prepare exec
          execOptions := container.ExecOptions{
              AttachStdout: true,
              AttachStderr: true,
      Severity: Major
      Found in integration/internal/container/exec.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status