Preparing report...

Report for github.com/orderbynull/lottip

A+    Excellent!    Found 5 issues across 11 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!


gocyclo90%

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.


golint54%

Golint is a linter for Go source code.

    • lottip/proxy.go
    • Line 13: warning: exported type RequestPacketParser should have comment or be unexported (golint)
    • Line 39: warning: exported type ResponsePacketParser should have comment or be unexported (golint)
    • lottip/chat/hub.go
    • Line 33: warning: comment on exported method Hub.RegisterClient should be of the form "RegisterClient ..." (golint)
    • lottip/protocol/const.go
    • Line 5: warning: exported const ResponseOk should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: comment on exported const ConnStateStarted should be of the form "ConnStateStarted ..." (golint)
    • Line 28: warning: exported const ComQuit should have comment (or a comment on this block) or be unexported (golint)
    • lottip/protocol/decoder.go
    • Line 16: warning: exported function GetPacketType should have comment or be unexported (golint)
    • Line 20: warning: exported type ErrResponse should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function DecodeErrResponse should be of the form "DecodeErrResponse ..." (golint)
    • Line 586: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • lottip/protocol/packet.go
    • Line 10: warning: comment on exported type ConnSettings should be of the form "ConnSettings ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported method ConnSettings.DeprecateEOFSet should be of the form "DeprecateEOFSet ..." (golint)
    • Line 109: warning: exported function ReadErrMessage should have comment or be unexported (golint)
    • Line 113: warning: exported function ReadShowFieldsResponse 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!