commander-cli/commander

View on GitHub
pkg/runtime/docker_executor.go

Summary

Maintainability
A
3 hrs
Test Coverage
C
76%

Method DockerExecutor.Execute has 94 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (e DockerExecutor) Execute(test TestCase) TestResult {
    log.Printf("DOCKER_HOST: %s \n", os.Getenv("DOCKER_HOST"))
    log.Printf("DOCKER_CERT_PATH: %s \n", os.Getenv("DOCKER_CERT_PATH"))
    log.Printf("DOCKER_API_VERSION: %s \n", os.Getenv("DOCKER_API_VERSION"))

Severity: Major
Found in pkg/runtime/docker_executor.go - About 2 hrs to fix

    Method DockerExecutor.Execute has 5 return statements (exceeds 4 allowed).
    Open

    func (e DockerExecutor) Execute(test TestCase) TestResult {
        log.Printf("DOCKER_HOST: %s \n", os.Getenv("DOCKER_HOST"))
        log.Printf("DOCKER_CERT_PATH: %s \n", os.Getenv("DOCKER_CERT_PATH"))
        log.Printf("DOCKER_API_VERSION: %s \n", os.Getenv("DOCKER_API_VERSION"))
    
    
    Severity: Major
    Found in pkg/runtime/docker_executor.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status