Preparing report...

Report for git.coopcloud.tech/coop-cloud/abra

A+    Excellent!    Found 12 issues across 69 files

Tweet

gofmt98%

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!


gocyclo98%

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.


golint86%

Golint is a linter for Go source code.

    • /git.coopcloud.tech/coop-cloud/abra/pkg/secret/secret.go
    • Line 56: warning: exported function ReadSecretEnvVars should have comment or be unexported (golint)
    • Line 67: warning: comment on exported function ParseSecretEnvVarName should be of the form "ParseSecretEnvVarName ..." (golint)
    • Line 74: warning: comment on exported function ParseGeneratedSecretName should be of the form "ParseGeneratedSecretName ..." (golint)
    • Line 82: warning: comment on exported function ParseSecretEnvVarValue should be of the form "ParseSecretEnvVarValue ..." (golint)
    • Line 90: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /git.coopcloud.tech/coop-cloud/abra/pkg/client/context.go
    • Line 15: warning: exported type Context should have comment or be unexported (golint)
    • Line 17: warning: exported function CreateContext should have comment or be unexported (golint)
    • Line 60: warning: exported function DeleteContext should have comment or be unexported (golint)
    • Line 79: warning: exported function GetContext should have comment or be unexported (golint)
    • Line 87: warning: exported function GetContextEndpoint should have comment or be unexported (golint)
    • Line 101: warning: exported function NewDefaultDockerContextStore should have comment or be unexported (golint)
    • /git.coopcloud.tech/coop-cloud/abra/pkg/config/env.go
    • Line 17: warning: exported var ABRA_DIR should have comment or be unexported (golint)
    • Line 18: warning: exported var ABRA_SERVER_FOLDER should have comment or be unexported (golint)
    • Line 19: warning: exported var APPS_JSON should have comment or be unexported (golint)
    • Line 20: warning: exported var APPS_DIR should have comment or be unexported (golint)
    • Line 21: warning: exported var REPOS_BASE_URL should have comment or be unexported (golint)
    • Line 23: warning: exported method AppFiles.GetServers should have comment or be unexported (golint)
    • Line 35: warning: exported function ReadEnv should have comment or be unexported (golint)
    • Line 44: warning: exported function ReadServerNames should have comment or be unexported (golint)
    • Line 115: warning: exported function ReadAbraShEnvVars should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words