Preparing report...

Report for github.com/Capgemini/terraform-control

A    Great!    Found 10 issues across 17 files

Tweet

gofmt94%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo88%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint41%

Golint is a linter for Go source code.

    • terraform-control/repo.go
    • Line 5: warning: exported function RepoIndexEnvironments should have comment or be unexported (golint)
    • Line 13: warning: exported function RepoFindEnvironment should have comment or be unexported (golint)
    • Line 30: warning: exported function RepoHookHandler should have comment or be unexported (golint)
    • Line 39: warning: exported function RepoTerraformAction should have comment or be unexported (golint)
    • terraform-control/config.go
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 44: warning: exported function GetConfig should have comment or be unexported (golint)
    • terraform-control/handlers.go
    • Line 27: warning: exported function Index should have comment or be unexported (golint)
    • Line 31: warning: exported function EnvironmentIndex should have comment or be unexported (golint)
    • Line 41: warning: exported function EnvironmentShow should have comment or be unexported (golint)
    • Line 97: warning: exported function HookHandler should have comment or be unexported (golint)
    • Line 123: warning: exported function TerraformAction should have comment or be unexported (golint)
    • Line 149: warning: exported function TerraformOutput should have comment or be unexported (golint)
    • terraform-control/environment.go
    • Line 29: warning: exported type Environment should have comment or be unexported (golint)
    • Line 44: warning: exported type Environments should have comment or be unexported (golint)
    • Line 46: warning: exported type SafeEnvironment should have comment or be unexported (golint)
    • Line 51: warning: exported function NewSafeEnvironment should have comment or be unexported (golint)
    • Line 57: warning: exported function GetSingletonSafeEnvironment should have comment or be unexported (golint)
    • Line 64: warning: exported method Environment.GetPathToRepo should have comment or be unexported (golint)
    • Line 68: warning: exported method Environment.GetPathToFiles should have comment or be unexported (golint)
    • Line 72: warning: exported method Environment.GetPathToOuput should have comment or be unexported (golint)
    • Line 76: warning: exported method Environment.GetPathToState should have comment or be unexported (golint)
    • Line 99: warning: exported method SafeEnvironment.Execute should have comment or be unexported (golint)
    • Line 162: warning: exported method Environment.Execute should have comment or be unexported (golint)
    • terraform-control/tfui.go
    • Line 31: warning: exported function NewUI should have comment or be unexported (golint)
    • Line 99: warning: receiver name i should be consistent with previous receiver name u for cliUI (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!