Preparing report...

Report for github.com/TrevorEdris/api-template

(v0.0.0-20220129213627-b12176df9976)

A+    Excellent!    Found 12 issues across 16 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!


golint25%

Golint is a linter for Go source code.

    • app/controller/controller.go
    • Line 27: warning: exported method Controller.Redirect should have comment or be unexported (golint)
    • Line 32: warning: exported method Controller.RenderErrorResponse should have comment or be unexported (golint)
    • Line 40: warning: exported method Controller.RenderJSONResponse should have comment or be unexported (golint)
    • app/context/context.go
    • Line 9: warning: exported type ContextKey should have comment or be unexported (golint)
    • Line 17: warning: exported function IsCanceledError should have comment or be unexported (golint)
    • app/config/config.go
    • Line 15: warning: exported type Environment should have comment or be unexported (golint)
    • Line 16: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 17: warning: exported type Storage should have comment or be unexported (golint)
    • Line 21: warning: exported const EnvLocal should have comment (or a comment on this block) or be unexported (golint)
    • app/routes/hello_world.go
    • Line 11: warning: exported type Hello should have comment or be unexported (golint)
    • Line 20: warning: exported method Hello.Get should have comment or be unexported (golint)
    • app/routes/item.go
    • Line 41: warning: exported method Item.Get should have comment or be unexported (golint)
    • Line 62: warning: exported method Item.Post should have comment or be unexported (golint)
    • Line 88: warning: exported method Item.Put should have comment or be unexported (golint)
    • Line 115: warning: exported method Item.Delete should have comment or be unexported (golint)
    • app/internal/repository/dynamodb/item.go
    • Line 17: warning: exported type ItemRepo should have comment or be unexported (golint)
    • Line 30: warning: exported function NewItemRepo should have comment or be unexported (golint)
    • Line 75: warning: comment on exported method ItemRepo.Update should be of the form "Update ..." (golint)
    • app/internal/repository/item.go
    • Line 23: warning: exported function NewItemRepoLocal should have comment or be unexported (golint)
    • Line 27: warning: exported function NewItemRepoDynamoDB should have comment or be unexported (golint)
    • app/services/container.go
    • Line 33: warning: exported function NewContainer should have comment or be unexported (golint)
    • Line 42: warning: exported method Container.Shutdown should have comment or be unexported (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!