Preparing report...

Report for github.com/netgo-framework/netgo

A+    Excellent!    Found 6 issues across 14 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!


golint64%

Golint is a linter for Go source code.

    • netgo/server/ng_app_protocol.go
    • Line 15: warning: exported type NetgoPacket should have comment or be unexported (golint)
    • Line 20: warning: exported method NetgoPacket.Serialize should have comment or be unexported (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 38: warning: exported method NetgoPacket.GetBody should have comment or be unexported (golint)
    • Line 38: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 42: warning: exported function NewNetgoPacket should have comment or be unexported (golint)
    • Line 51: warning: exported type NetgoProtocol should have comment or be unexported (golint)
    • netgo/server/ng_game_server.go
    • Line 55: warning: exported method GameServer.IsRoomExist should have comment or be unexported (golint)
    • Line 70: warning: exported method GameServer.AddRoom should have comment or be unexported (golint)
    • Line 81: warning: exported method GameServer.DeleteRoom should have comment or be unexported (golint)
    • Line 91: warning: error should be the last type when returning multiple items (golint)
    • Line 91: warning: exported method GameServer.GetPeer should have comment or be unexported (golint)
    • Line 231: warning: error should be the last type when returning multiple items (golint)
    • Line 293: warning: receiver name game should be consistent with previous receiver name server for GameServer (golint)
    • netgo/server/ng_lobby_server.go
    • Line 3: warning: exported type Lobby should have comment or be unexported (golint)
    • Line 8: warning: exported type LobbyOperations should have comment or be unexported (golint)
    • Line 13: warning: comment on exported method Lobby.JoinLobby should be of the form "JoinLobby ..." (golint)
    • Line 18: warning: exported method Lobby.GetGameServers should have comment or be unexported (golint)
    • netgo/server/ng_network.go
    • Line 8: warning: exported const ReadBufferSize should have comment or be unexported (golint)
    • Line 10: warning: exported function Listen should have comment or be unexported (golint)
    • Line 32: warning: exported function ListenU should have comment or be unexported (golint)
    • netgo/main.go
    • Line 17: warning: exported type Callback 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!


misspell92%

Misspell Finds commonly misspelled English words