Preparing report...

Report for github.com/bottos-project/magiccube

A+    Excellent!    Found 24 issues across 106 files

Tweet

gofmt79%

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!


gocyclo99%

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.


golint94%

Golint is a linter for Go source code.

    • magiccube/service/user/proto/user.micro.go
    • Line 74: warning: exported type UserClient should have comment or be unexported (golint)
    • Line 92: warning: exported function NewUserClient should have comment or be unexported (golint)
    • Line 207: warning: exported type UserHandler should have comment or be unexported (golint)
    • Line 220: warning: exported function RegisterUserHandler should have comment or be unexported (golint)
    • Line 224: warning: exported type User should have comment or be unexported (golint)
    • Line 228: warning: exported method User.Register should have comment or be unexported (golint)
    • Line 232: warning: exported method User.Login should have comment or be unexported (golint)
    • Line 236: warning: exported method User.GetBlockHeader should have comment or be unexported (golint)
    • Line 240: warning: exported method User.GetAccountInfo should have comment or be unexported (golint)
    • Line 244: warning: exported method User.Favorite should have comment or be unexported (golint)
    • Line 248: warning: exported method User.GetFavorite should have comment or be unexported (golint)
    • Line 252: warning: exported method User.Transfer should have comment or be unexported (golint)
    • Line 256: warning: exported method User.GetTransfer should have comment or be unexported (golint)
    • Line 260: warning: exported method User.QueryMyBuy should have comment or be unexported (golint)
    • Line 264: warning: exported method User.GetBalance should have comment or be unexported (golint)
    • magiccube/service/asset/proto/asset.micro.go
    • Line 68: warning: exported type AssetClient should have comment or be unexported (golint)
    • Line 91: warning: exported function NewAssetClient should have comment or be unexported (golint)
    • Line 216: warning: exported type AssetHandler should have comment or be unexported (golint)
    • Line 234: warning: exported function RegisterAssetHandler should have comment or be unexported (golint)
    • Line 238: warning: exported type Asset should have comment or be unexported (golint)
    • Line 242: warning: exported method Asset.RegisterFile should have comment or be unexported (golint)
    • Line 246: warning: exported method Asset.QueryUploadedData should have comment or be unexported (golint)
    • Line 250: warning: exported method Asset.GetDownLoadURL should have comment or be unexported (golint)
    • Line 254: warning: exported method Asset.RegisterAsset should have comment or be unexported (golint)
    • Line 258: warning: exported method Asset.QueryAsset should have comment or be unexported (golint)
    • Line 262: warning: exported method Asset.QueryAssetByID should have comment or be unexported (golint)
    • Line 266: warning: exported method Asset.PreSaleNotice should have comment or be unexported (golint)
    • Line 270: warning: exported method Asset.QueryMyNotice should have comment or be unexported (golint)
    • Line 274: warning: exported method Asset.QueryMyPreSale should have comment or be unexported (golint)
    • Line 278: warning: exported method Asset.ModifyMyNoticeStatus should have comment or be unexported (golint)
    • Line 282: warning: exported method Asset.GetUnreadNoticeNum should have comment or be unexported (golint)
    • magiccube/service/common/util/func.go
    • Line 39: warning: exported function HexIptoDec should have comment or be unexported (golint)
    • Line 79: warning: exported type SzTongSpoint should have comment or be unexported (golint)
    • Line 83: warning: comment on exported function Ip2pointxy should be of the form "Ip2pointxy ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!