Preparing report...

Report for github.com/powerman/go-monolith-example

A+    Excellent!    Found 10 issues across 138 files

Tweet

gofmt99%

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!


golint93%

Golint is a linter for Go source code.

    • go-monolith-example/ms/auth/internal/app/auth.go
    • Line 15: warning: exported method App.Register should have comment or be unexported (golint)
    • Line 32: warning: exported method App.LoginByUserID should have comment or be unexported (golint)
    • Line 49: warning: exported method App.LoginByEmail should have comment or be unexported (golint)
    • Line 57: warning: exported method App.Authenticate should have comment or be unexported (golint)
    • Line 61: warning: exported method App.Logout should have comment or be unexported (golint)
    • Line 65: warning: exported method App.LogoutUser should have comment or be unexported (golint)
    • go-monolith-example/api/jsonrpc2-example/api.go
    • Line 8: warning: comment on exported type RPCExampleReq should be of the form "RPCExampleReq ..." (with optional leading article) (golint)
    • Line 13: warning: exported type RPCExampleResp should have comment or be unexported (golint)
    • Line 15: warning: comment on exported type RPCIncExampleReq should be of the form "RPCIncExampleReq ..." (with optional leading article) (golint)
    • Line 19: warning: exported type RPCIncExampleResp should have comment or be unexported (golint)
    • go-monolith-example/ms/auth/internal/dal/methods.go
    • Line 14: warning: exported method Repo.AddUser should have comment or be unexported (golint)
    • Line 31: warning: exported method Repo.GetUser should have comment or be unexported (golint)
    • Line 49: warning: exported method Repo.GetUserByEmail should have comment or be unexported (golint)
    • Line 67: warning: exported method Repo.GetUserByAccessToken should have comment or be unexported (golint)
    • Line 85: warning: exported method Repo.AddAccessToken should have comment or be unexported (golint)
    • Line 98: warning: exported method Repo.DelAccessToken should have comment or be unexported (golint)
    • Line 107: warning: exported method Repo.DelAccessTokens 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!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)