Preparing report...

Report for github.com/root-gg/wsp

A+    Excellent!    Found 10 issues across 15 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!


gocyclo93%

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.


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license0%

Checks whether your project has a LICENSE file.


ineffassign60%

IneffAssign detects ineffectual assignments in Go code.

    • wsp/client/config.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/nu7hatch/gouuid (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import gopkg.in/yaml.v2 (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/root-gg/wsp/common (invalid package name: "") (ineffassign)
    • Line 27: warning: undeclared name: uuid (ineffassign)
    • Line 52: warning: undeclared name: yaml (ineffassign)
    • Line 6: warning: "github.com/nu7hatch/gouuid" imported but not used (ineffassign)
    • Line 7: warning: "gopkg.in/yaml.v2" imported but not used (ineffassign)
    • wsp/server/connection.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/gorilla/websocket (invalid package name: "") (ineffassign)
    • wsp/server/config.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import gopkg.in/yaml.v2 (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/root-gg/wsp/common (invalid package name: "") (ineffassign)
    • Line 43: warning: undeclared name: yaml (ineffassign)
    • Line 6: warning: "gopkg.in/yaml.v2" imported but not used (ineffassign)
    • wsp/wsp_client/wsp_client.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/root-gg/utils (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/root-gg/wsp/client (invalid package name: "") (ineffassign)
    • wsp/wsp_server/wsp_server.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/root-gg/utils (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/root-gg/wsp/server (invalid package name: "") (ineffassign)
    • wsp/client/client.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/gorilla/websocket (invalid package name: "") (ineffassign)

misspell86%

Misspell Finds commonly misspelled English words