Preparing report...

Report for github.com/gophergala2016/thunderbird

A    Great!    Found 4 issues across 5 files

Tweet

gofmt80%

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!


golint20%

Golint is a linter for Go source code.

    • thunderbird/thunderbird.go
    • Line 10: warning: exported type Adapter should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 23: warning: exported type Thunderbird should have comment or be unexported (golint)
    • Line 30: warning: exported method Thunderbird.Broadcast should have comment or be unexported (golint)
    • Line 32: warning: should omit 2nd value from range; this loop is equivalent to `for conn := range ...` (golint)
    • Line 55: warning: exported method Thunderbird.HTTPHandler should have comment or be unexported (golint)
    • Line 65: warning: exported method Thunderbird.HTTPHandlerWithUpgrader should have comment or be unexported (golint)
    • Line 87: warning: exported method Thunderbird.HandleChannel should have comment or be unexported (golint)
    • Line 93: warning: exported method Thunderbird.Channels should have comment or be unexported (golint)
    • Line 101: warning: exported type ChannelHandler should have comment or be unexported (golint)
    • thunderbird/example/main.go
    • Line 28: warning: exported type RoomChannel should have comment or be unexported (golint)
    • Line 32: warning: exported method RoomChannel.Received should have comment or be unexported (golint)
    • thunderbird/connection.go
    • Line 26: warning: exported type Connection should have comment or be unexported (golint)
    • Line 72: warning: exported method Connection.Subscribed should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign60%

IneffAssign detects ineffectual assignments in Go code.

    • thunderbird/connection.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/gorilla/websocket (invalid package name: "") (ineffassign)
    • thunderbird/example/main.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/codegangsta/negroni (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/gophergala2016/thunderbird (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!