Preparing report...

Report for github.com/desertbit/glue

A    Great!    Found 10 issues across 20 files

Tweet

gofmt75%

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!


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!


golint60%

Golint is a linter for Go source code.

    • glue/backend/sockets/websocket/server.go
    • Line 34: warning: exported type Server should have comment or be unexported (golint)
    • Line 41: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 54: warning: exported method Server.HandleRequest should have comment or be unexported (golint)
    • glue/backend/sockets/websocket/socket.go
    • Line 53: warning: exported type Socket should have comment or be unexported (golint)
    • Line 91: warning: exported method Socket.Type should have comment or be unexported (golint)
    • Line 95: warning: exported method Socket.RemoteAddr should have comment or be unexported (golint)
    • Line 99: warning: exported method Socket.UserAgent should have comment or be unexported (golint)
    • Line 103: warning: exported method Socket.Close should have comment or be unexported (golint)
    • Line 107: warning: exported method Socket.IsClosed should have comment or be unexported (golint)
    • Line 111: warning: exported method Socket.ClosedChan should have comment or be unexported (golint)
    • Line 115: warning: exported method Socket.WriteChan should have comment or be unexported (golint)
    • Line 119: warning: exported method Socket.ReadChan should have comment or be unexported (golint)
    • glue/backend/sockets/ajaxsocket/server.go
    • Line 60: warning: exported type Server should have comment or be unexported (golint)
    • Line 67: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 74: warning: exported method Server.HandleRequest should have comment or be unexported (golint)
    • glue/backend/sockets/ajaxsocket/socket.go
    • Line 30: warning: exported type Socket should have comment or be unexported (golint)
    • Line 69: warning: exported method Socket.Type should have comment or be unexported (golint)
    • Line 73: warning: exported method Socket.RemoteAddr should have comment or be unexported (golint)
    • Line 77: warning: exported method Socket.UserAgent should have comment or be unexported (golint)
    • Line 81: warning: exported method Socket.Close should have comment or be unexported (golint)
    • Line 85: warning: exported method Socket.IsClosed should have comment or be unexported (golint)
    • Line 89: warning: exported method Socket.ClosedChan should have comment or be unexported (golint)
    • Line 93: warning: exported method Socket.WriteChan should have comment or be unexported (golint)
    • Line 97: warning: exported method Socket.ReadChan should have comment or be unexported (golint)
    • glue/backend/global/global.go
    • Line 23: warning: comment on exported const ReadChanSize should be of the form "ReadChanSize ..." (golint)
    • Line 25: warning: exported const WriteChanSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type SocketType should have comment or be unexported (golint)
    • Line 35: warning: comment on exported const TypeAjaxSocket should be of the form "TypeAjaxSocket ..." (golint)
    • Line 37: warning: exported const TypeWebSocket should have comment (or a comment on this block) or be unexported (golint)
    • glue/backend/server.go
    • Line 46: warning: exported type Server should have comment or be unexported (golint)
    • Line 64: warning: exported function NewServer should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)