Preparing report...

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

A+    Excellent!    Found 13 issues across 50 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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.

No problems detected. Good job!


golint76%

Golint is a linter for Go source code.

    • /git.coopcloud.tech/coop-cloud/go-abra/secret/secret.go
    • Line 16: warning: exported type SecretValue should have comment or be unexported (golint)
    • Line 21: warning: exported function GeneratePasswords should have comment or be unexported (golint)
    • Line 35: warning: exported function GeneratePassphrases should have comment or be unexported (golint)
    • Line 51: warning: exported function ReadSecretEnvVars should have comment or be unexported (golint)
    • Line 62: warning: exported function ParseSecretEnvVarName should have comment or be unexported (golint)
    • Line 68: warning: exported function ParseSecretEnvVarValue should have comment or be unexported (golint)
    • Line 75: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 88: warning: exported function GenerateSecrets should have comment or be unexported (golint)
    • Line 137: warning: exported function PassInsertSecret should have comment or be unexported (golint)
    • /git.coopcloud.tech/coop-cloud/go-abra/catalogue/catalogue.go
    • Line 19: warning: exported type Image should have comment or be unexported (golint)
    • Line 38: warning: exported type Service should have comment or be unexported (golint)
    • Line 39: warning: exported type ServiceMeta should have comment or be unexported (golint)
    • Line 122: warning: exported type Name should have comment or be unexported (golint)
    • Line 123: warning: exported type AppsCatalogue should have comment or be unexported (golint)
    • Line 134: warning: exported type ByAppName should have comment or be unexported (golint)
    • Line 174: warning: exported function ReadAppsCatalogue should have comment or be unexported (golint)
    • Line 224: warning: exported function VersionsOfService should have comment or be unexported (golint)
    • /git.coopcloud.tech/coop-cloud/go-abra/config/env.go
    • Line 15: warning: exported var ABRA_DIR should have comment or be unexported (golint)
    • Line 16: warning: exported var ABRA_SERVER_FOLDER should have comment or be unexported (golint)
    • Line 17: warning: exported var APPS_JSON should have comment or be unexported (golint)
    • Line 18: warning: exported var APPS_DIR should have comment or be unexported (golint)
    • Line 19: warning: exported var REPOS_BASE_URL should have comment or be unexported (golint)
    • Line 21: warning: exported method AppFiles.GetServers should have comment or be unexported (golint)
    • Line 33: warning: exported function ReadEnv should have comment or be unexported (golint)
    • Line 42: warning: exported function ReadServerNames should have comment or be unexported (golint)
    • /git.coopcloud.tech/coop-cloud/go-abra/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)

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