Preparing report...

Report for github.com/StarpTech/go-web

A+    Excellent!    Found 18 issues across 25 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!


golint28%

Golint is a linter for Go source code.

    • go-web/internal/core/cache_store.go
    • Line 14: warning: exported method CacheStore.Ping should have comment or be unexported (golint)
    • Line 18: warning: exported method CacheStore.Get should have comment or be unexported (golint)
    • Line 22: warning: exported method CacheStore.Set should have comment or be unexported (golint)
    • go-web/internal/i18n/i18n.go
    • Line 5: warning: exported type I18ner should have comment or be unexported (golint)
    • Line 9: warning: exported type I18n should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 15: warning: exported function Configure should have comment or be unexported (golint)
    • Line 19: warning: exported method I18n.Get should have comment or be unexported (golint)
    • Line 23: warning: exported function Get should have comment or be unexported (golint)
    • go-web/internal/controller/user.go
    • Line 13: warning: exported type User should have comment or be unexported (golint)
    • Line 14: warning: exported type UserViewModel should have comment or be unexported (golint)
    • Line 20: warning: exported method User.GetUser should have comment or be unexported (golint)
    • Line 43: warning: exported method User.GetUserJSON should have comment or be unexported (golint)
    • go-web/internal/core/errors/boom.go
    • Line 4: warning: exported const InternalError should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported method Booms.Add should have comment or be unexported (golint)
    • Line 26: warning: exported function NewBooms should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type Boom should be of the form "Boom ..." (with optional leading article) (golint)
    • Line 37: warning: exported function NewBoom should have comment or be unexported (golint)
    • Line 41: warning: exported function ErrorText should have comment or be unexported (golint)
    • go-web/internal/controller/user-list.go
    • Line 13: warning: exported type UserList should have comment or be unexported (golint)
    • Line 14: warning: exported type UserListViewModel should have comment or be unexported (golint)
    • Line 19: warning: exported method UserList.GetUsers should have comment or be unexported (golint)
    • go-web/config/config.go
    • Line 10: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 28: warning: exported function NewConfig should have comment or be unexported (golint)
    • go-web/internal/core/user_store.go
    • Line 13: warning: exported method UserStore.First should have comment or be unexported (golint)
    • Line 17: warning: exported method UserStore.Create should have comment or be unexported (golint)
    • Line 21: warning: exported method UserStore.Find should have comment or be unexported (golint)
    • Line 25: warning: exported method UserStore.Ping 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!


misspell96%

Misspell Finds commonly misspelled English words