Preparing report...

Report for github.com/tsongpon/listener

A    Great!    Found 11 issues across 10 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!


golint20%

Golint is a linter for Go source code.

    • listener/data/repo.go
    • Line 12: warning: exported var Dao should have comment or be unexported (golint)
    • Line 14: warning: exported type UserDao should have comment or be unexported (golint)
    • Line 19: warning: exported function InitDB should have comment or be unexported (golint)
    • Line 26: warning: exported function CloseDB should have comment or be unexported (golint)
    • Line 40: warning: exported method UserDao.Save should have comment or be unexported (golint)
    • Line 49: warning: exported method UserDao.CountActivities should have comment or be unexported (golint)
    • Line 58: warning: exported method UserDao.QueryActivities should have comment or be unexported (golint)
    • listener/route/routes.go
    • Line 10: warning: exported type Route should have comment or be unexported (golint)
    • Line 17: warning: exported type Routes should have comment or be unexported (golint)
    • Line 19: warning: exported function NewRedPlanetRouter should have comment or be unexported (golint)
    • listener/handler/handlers.go
    • Line 18: warning: exported function FacebookHookGet should have comment or be unexported (golint)
    • Line 29: warning: exported function FacebookHookPost should have comment or be unexported (golint)
    • Line 59: warning: exported function QueryUserActivities should have comment or be unexported (golint)
    • Line 86: warning: exported function Index should have comment or be unexported (golint)
    • Line 90: warning: exported function Ping should have comment or be unexported (golint)
    • Line 94: warning: exported function Login should have comment or be unexported (golint)
    • listener/config/config.go
    • Line 5: warning: exported function GetDBHost should have comment or be unexported (golint)
    • Line 14: warning: exported function GetDBName should have comment or be unexported (golint)
    • Line 23: warning: exported function GetVerifyToken should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign40%

IneffAssign detects ineffectual assignments in Go code.

    • listener/data/repo.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import gopkg.in/mgo.v2 (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import gopkg.in/mgo.v2/bson (invalid package name: "") (ineffassign)
    • Line 11: warning: undeclared name: mgo (ineffassign)
    • Line 32: warning: undeclared name: mgo (ineffassign)
    • Line 33: warning: undeclared name: mgo (ineffassign)
    • Line 4: warning: "gopkg.in/mgo.v2" imported but not used (ineffassign)
    • listener/handler/handlers.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/tsongpon/listener/config (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/tsongpon/listener/data (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/tsongpon/listener/transport (invalid package name: "") (ineffassign)
    • listener/main.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/tsongpon/listener/config (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/tsongpon/listener/data (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/tsongpon/listener/route (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/tsongpon/listener/config (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/tsongpon/listener/data (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/tsongpon/listener/route (invalid package name: "") (ineffassign)
    • listener/main_test.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/tsongpon/listener/data (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/tsongpon/listener/route (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import gopkg.in/resty.v1 (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/fsouza/go-dockerclient (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/tsongpon/listener/transport (invalid package name: "") (ineffassign)
    • Line 24: warning: undeclared name: docker (ineffassign)
    • Line 35: warning: undeclared name: resty (ineffassign)
    • Line 48: warning: undeclared name: resty (ineffassign)
    • Line 64: warning: undeclared name: resty (ineffassign)
    • Line 76: warning: undeclared name: resty (ineffassign)
    • Line 92: warning: undeclared name: resty (ineffassign)
    • Line 128: warning: undeclared name: resty (ineffassign)
    • Line 156: warning: undeclared name: resty (ineffassign)
    • Line 161: warning: undeclared name: resty (ineffassign)
    • Line 204: warning: undeclared name: resty (ineffassign)
    • Line 225: warning: undeclared name: resty (ineffassign)
    • Line 230: warning: undeclared name: resty (ineffassign)
    • Line 269: warning: undeclared name: resty (ineffassign)
    • Line 290: warning: undeclared name: resty (ineffassign)
    • Line 295: warning: undeclared name: resty (ineffassign)
    • Line 329: warning: undeclared name: docker (ineffassign)
    • Line 344: warning: undeclared name: docker (ineffassign)
    • Line 344: warning: undeclared name: docker (ineffassign)
    • Line 345: warning: undeclared name: docker (ineffassign)
    • Line 345: warning: undeclared name: docker (ineffassign)
    • Line 348: warning: undeclared name: docker (ineffassign)
    • Line 353: warning: undeclared name: docker (ineffassign)
    • Line 355: warning: undeclared name: docker (ineffassign)
    • Line 370: warning: undeclared name: docker (ineffassign)
    • Line 380: warning: undeclared name: docker (ineffassign)
    • Line 380: warning: undeclared name: docker (ineffassign)
    • Line 383: warning: undeclared name: docker (ineffassign)
    • Line 388: warning: undeclared name: docker (ineffassign)
    • Line 12: warning: "github.com/fsouza/go-dockerclient" imported but not used (ineffassign)
    • Line 6: warning: "gopkg.in/resty.v1" imported but not used (ineffassign)
    • listener/route/routes.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/tsongpon/listener/handler (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!