Preparing report...

Report for github.com/goapt/gee-app

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


golint32%

Golint is a linter for Go source code.

    • gee-app/errorx/error.go
    • Line 11: warning: exported type Errorx should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 54: warning: exported method Errorx.Is should have comment or be unexported (golint)
    • Line 93: warning: comment on exported function IsSystemError should be of the form "IsSystemError ..." (golint)
    • gee-app/provider/user/repo/base.go
    • Line 7: warning: exported type BuilderFunc should have comment or be unexported (golint)
    • Line 9: warning: exported type Base should have comment or be unexported (golint)
    • Line 13: warning: exported method Base.Create should have comment or be unexported (golint)
    • Line 21: warning: exported method Base.Update should have comment or be unexported (golint)
    • Line 29: warning: exported method Base.Find should have comment or be unexported (golint)
    • Line 39: warning: exported method Base.FindAll should have comment or be unexported (golint)
    • gee-app/api/session/session.go
    • Line 16: warning: comment on exported type Session should be of the form "Session ..." (with optional leading article) (golint)
    • Line 22: warning: exported function New should have comment or be unexported (golint)
    • Line 28: warning: exported method Session.Expire should have comment or be unexported (golint)
    • Line 32: warning: exported method Session.Prefix should have comment or be unexported (golint)
    • Line 36: warning: exported method Session.Save should have comment or be unexported (golint)
    • Line 41: warning: exported method Session.Get should have comment or be unexported (golint)
    • Line 61: warning: exported method Session.IsLogin should have comment or be unexported (golint)
    • Line 65: warning: exported function Init should have comment or be unexported (golint)
    • gee-app/api/response/error.go
    • Line 13: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 41: warning: comment on exported function ParamError should be of the form "ParamError ..." (golint)
    • Line 46: warning: exported function Error should have comment or be unexported (golint)
    • gee-app/api/response/error_code.go
    • Line 10: warning: comment on exported var ErrInvalidSignature should be of the form "ErrInvalidSignature ..." (golint)
    • Line 12: warning: exported var ErrRateLimited should have comment or be unexported (golint)
    • Line 14: warning: comment on exported var ErrSystemError should be of the form "ErrSystemError ..." (golint)
    • Line 17: warning: comment on exported var ErrInvalidParameter should be of the form "ErrInvalidParameter ..." (golint)
    • gee-app/pkg/cryptutil/aes.go
    • Line 9: warning: exported function AesEncrypt should have comment or be unexported (golint)
    • Line 17: warning: exported function AesDecrypt should have comment or be unexported (golint)
    • gee-app/cmd/cmd.go
    • Line 10: warning: exported function NewCommands should have comment or be unexported (golint)
    • Line 20: warning: exported type Commands should have comment or be unexported (golint)
    • Line 24: warning: exported var ProviderSet should have comment or be unexported (golint)
    • gee-app/cmd/http.go
    • Line 9: warning: exported type HttpCmd should have comment or be unexported (golint)
    • Line 11: warning: exported function NewHttp should have comment or be unexported (golint)
    • gee-app/connect/connect.go
    • Line 15: warning: exported function Connect should have comment or be unexported (golint)
    • Line 23: warning: exported function NewUserDB should have comment or be unexported (golint)
    • Line 27: warning: exported function NewUserRedis should have comment or be unexported (golint)
    • Line 31: warning: exported function NewRateLimiter should have comment or be unexported (golint)
    • Line 35: warning: exported var ProviderSet should have comment or be unexported (golint)
    • gee-app/provider/user/repo/users.go
    • Line 9: warning: exported type Users should have comment or be unexported (golint)
    • Line 14: warning: comment on exported function NewUsers should be of the form "NewUsers ..." (golint)
    • Line 22: warning: exported method Users.GetUser should have comment or be unexported (golint)
    • gee-app/provider/user/cache/users.go
    • Line 11: warning: exported type Users should have comment or be unexported (golint)
    • Line 15: warning: exported function NewUsers should have comment or be unexported (golint)
    • Line 21: warning: exported method Users.GetUser should have comment or be unexported (golint)
    • Line 26: warning: exported method Users.SetUser should have comment or be unexported (golint)
    • gee-app/api/router/route.go
    • Line 17: warning: exported type Router should have comment or be unexported (golint)
    • Line 22: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 29: warning: exported method Router.Run should have comment or be unexported (golint)
    • Line 68: warning: exported var ProviderSet should have comment or be unexported (golint)
    • gee-app/config/app.go
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • Line 31: warning: exported var App should have comment or be unexported (golint)
    • gee-app/provider/user/model/user.go
    • Line 5: warning: exported type Users should have comment or be unexported (golint)
    • Line 14: warning: exported method Users.TableName should have comment or be unexported (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 18: warning: exported method Users.PK should have comment or be unexported (golint)
    • Line 18: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gee-app/api/handler/user.go
    • Line 18: warning: exported type User should have comment or be unexported (golint)
    • Line 23: warning: exported function NewUser should have comment or be unexported (golint)
    • Line 27: warning: exported method User.Login should have comment or be unexported (golint)
    • Line 65: warning: exported method User.Get should have comment or be unexported (golint)
    • gee-app/testutil/testing.go
    • Line 9: warning: exported function TestDataPath should have comment or be unexported (golint)
    • Line 20: warning: exported function Schema should have comment or be unexported (golint)
    • Line 24: warning: exported function Fixture should have comment or be unexported (golint)
    • Line 28: warning: exported function FixturePath should have comment or be unexported (golint)
    • Line 33: warning: exported function Fixtures should have comment or be unexported (golint)
    • Line 40: warning: exported function FixturesWithPath 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!