Preparing report...

Report for github.com/elko-dev/spawn

A+    Excellent!    Found 26 issues across 95 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!


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.

    • spawn/git/gitlab/gitlab.go
    • Line 9: warning: exported type GitlabRepo should have comment or be unexported (golint)
    • Line 15: warning: exported type Prompt should have comment or be unexported (golint)
    • Line 26: warning: exported method GitlabRepo.GetRepoType should have comment or be unexported (golint)
    • Line 31: warning: receiver name git should be consistent with previous receiver name ados for GitlabRepo (golint)
    • spawn/applicationtype/applicationtypefactory.go
    • Line 14: warning: comment on exported type ApplicationType should be of the form "ApplicationType ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported type WebTypeFactory should be of the form "WebTypeFactory ..." (with optional leading article) (golint)
    • Line 23: warning: exported type MobileTypeFactory should have comment or be unexported (golint)
    • Line 26: warning: exported type FunctionTypeFactory should have comment or be unexported (golint)
    • Line 29: warning: exported type APITypeFactory should have comment or be unexported (golint)
    • spawn/platform/prompt.go
    • Line 8: warning: exported type Prompts should have comment or be unexported (golint)
    • Line 28: warning: exported function NewPrompts should have comment or be unexported (golint)
    • spawn/firebase/project.go
    • Line 16: warning: exported type FirebaseProjectResponse should have comment or be unexported (golint)
    • Line 26: warning: exported type EmptyRequest should have comment or be unexported (golint)
    • spawn/appcenter/builds/models.go
    • Line 45: warning: exported type EnvironmentVariables should have comment or be unexported (golint)
    • Line 50: warning: exported type Toolsets should have comment or be unexported (golint)
    • Line 56: warning: exported type Distribution should have comment or be unexported (golint)
    • Line 62: warning: exported type ArtifactVersioning should have comment or be unexported (golint)
    • Line 66: warning: exported type Javascript should have comment or be unexported (golint)
    • Line 73: warning: exported type Android should have comment or be unexported (golint)
    • Line 87: warning: exported type Testcloud should have comment or be unexported (golint)
    • Line 92: warning: exported type BuildConfigResponse should have comment or be unexported (golint)
    • Line 195: warning: exported type Keystore should have comment or be unexported (golint)
    • spawn/herokuplatform/prompt.go
    • Line 39: warning: receiver name prompts should be consistent with previous receiver name prompt for Prompts (golint)
    • Line 47: warning: receiver name prompts should be consistent with previous receiver name prompt for Prompts (golint)
    • Line 50: warning: receiver name prompts should be consistent with previous receiver name prompt for Prompts (golint)
    • Line 102: warning: exported function NewPrompts should have comment or be unexported (golint)
    • spawn/spawnhttp/http.go
    • Line 10: warning: exported function IsSuccessStatusCode should have comment or be unexported (golint)
    • Line 14: warning: exported function MarshalResponse should have comment or be unexported (golint)
    • spawn/git/prompt.go
    • Line 8: warning: exported type Prompts should have comment or be unexported (golint)
    • Line 25: warning: exported function NewPrompts should have comment or be unexported (golint)
    • spawn/git/github/github.go
    • Line 16: warning: exported type GithubRepo should have comment or be unexported (golint)
    • Line 21: warning: exported type Prompt should have comment or be unexported (golint)
    • Line 25: warning: exported method GithubRepo.GetRepoType should have comment or be unexported (golint)
    • Line 30: warning: receiver name git should be consistent with previous receiver name ados for GithubRepo (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!