Preparing report...

Report for github.com/88250/wide

A+    Excellent!    Found 16 issues across 29 files

Tweet

gofmt89%

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!


golint72%

Golint is a linter for Go source code.

    • wide/conf/wide.go
    • Line 47: warning: exported const HelloWorld should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: comment on exported var Users should be of the form "Users ..." (golint)
    • Line 79: warning: comment on exported var Docker should be of the form "Docker ..." (golint)
    • Line 82: warning: comment on exported const DockerImageGo should be of the form "DockerImageGo ..." (golint)
    • Line 239: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • wide/session/sessions.go
    • Line 51: warning: exported const CookieName should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: comment on exported var HTTPSession should be of the form "HTTPSession ..." (golint)
    • Line 94: warning: comment on exported var WideSessions should be of the form "WideSessions ..." (golint)
    • Line 110: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 144: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • wide/event/events.go
    • Line 50: warning: comment on exported var EventQueue should be of the form "EventQueue ..." (golint)
    • Line 64: warning: comment on exported var UserEventQueues should be of the form "UserEventQueues ..." (golint)
    • Line 141: warning: comment on exported method HandleFunc.Handle should be of the form "Handle ..." (golint)

gocyclo79%

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.


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words