Preparing report...

Report for github.com/alexsniffin/go-starter

A+    Excellent!    Found 13 issues across 17 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!


golint23%

Golint is a linter for Go source code.

    • go-starter/internal/todo-api/clients/postgres/postgres.go
    • Line 14: warning: exported type DatabaseClient should have comment or be unexported (golint)
    • Line 19: warning: exported type Client should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 65: warning: comment on exported method Client.GetConnection should be of the form "GetConnection ..." (golint)
    • Line 70: warning: comment on exported method Client.Shutdown should be of the form "Shutdown ..." (golint)
    • go-starter/internal/todo-api/models/config.go
    • Line 7: warning: exported type Config should have comment or be unexported (golint)
    • Line 15: warning: exported type HTTPServerConfig should have comment or be unexported (golint)
    • Line 19: warning: exported type HTTPRouterConfig should have comment or be unexported (golint)
    • Line 26: warning: exported type DatabaseConfig should have comment or be unexported (golint)
    • go-starter/internal/todo-api/handlers/todo/todo.go
    • Line 25: warning: exported type Handler should have comment or be unexported (golint)
    • Line 32: warning: comment on exported function NewHandler should be of the form "NewHandler ..." (golint)
    • Line 42: warning: comment on exported method Handler.Get should be of the form "Get ..." (golint)
    • Line 59: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 80: warning: comment on exported method Handler.Delete should be of the form "Delete ..." (golint)
    • Line 97: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 115: warning: comment on exported method Handler.Post should be of the form "Post ..." (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!