Preparing report...

Report for github.com/nothollyhigh/hellokiss

A    Great!    Found 7 issues across 7 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.

    • hellokiss/server/app/app.go
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 69: warning: exported function Run should have comment or be unexported (golint)
    • Line 83: warning: exported function Stop should have comment or be unexported (golint)
    • hellokiss/server/app/proto.go
    • Line 8: warning: exported const CMD_LOGIN_REQ should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type LoginReq should have comment or be unexported (golint)
    • Line 16: warning: exported type LoginRsp should have comment or be unexported (golint)
    • Line 22: warning: exported type KickNotify should have comment or be unexported (golint)
    • Line 26: warning: exported type BroadcastNotify should have comment or be unexported (golint)
    • Line 30: warning: exported function NewMessage should have comment or be unexported (golint)
    • hellokiss/server/app/usermgr.go
    • Line 17: warning: exported type UserMgr should have comment or be unexported (golint)
    • Line 22: warning: exported method UserMgr.Add should have comment or be unexported (golint)
    • Line 29: warning: exported method UserMgr.Delete should have comment or be unexported (golint)
    • Line 36: warning: exported method UserMgr.KickClient should have comment or be unexported (golint)
    • Line 40: warning: exported method UserMgr.Broadcast should have comment or be unexported (golint)
    • Line 51: warning: exported method UserMgr.BroadcastLoop should have comment or be unexported (golint)
    • hellokiss/test/gzip/test.go
    • Line 10: warning: exported function GZipCompress should have comment or be unexported (golint)
    • Line 18: warning: exported function GZipUnCompress should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign42%

IneffAssign detects ineffectual assignments in Go code.

    • hellokiss/server/main.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/nothollyhigh/kiss/util (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import server/app (invalid package name: "") (ineffassign)
    • hellokiss/server/app/app.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/json-iterator/go (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/nothollyhigh/kiss/log (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/nothollyhigh/kiss/util (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!