Preparing report...

Report for github.com/hiddenfounders/redimo

B    Not bad!    Found 8 issues across 8 files

Tweet

gofmt87%

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!


golint0%

Golint is a linter for Go source code.

    • redimo/utils/redis.go
    • Line 11: warning: comment on exported function ConnectRedis should be of the form "ConnectRedis ..." (golint)
    • Line 32: warning: comment on exported function ListenOnPipeline should be of the form "ListenOnPipeline ..." (golint)
    • redimo/app.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 7: warning: should not use dot imports (golint)
    • Line 8: warning: should not use dot imports (golint)
    • redimo/models/dataStore.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 8: warning: exported type DataStore should have comment or be unexported (golint)
    • Line 12: warning: exported method DataStore.GetCol should have comment or be unexported (golint)
    • redimo/utils/mongo.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 7: warning: should not use dot imports (golint)
    • Line 12: warning: comment on exported function CreateURI should be of the form "CreateURI ..." (golint)
    • Line 26: warning: comment on exported function ConnectMongo should be of the form "ConnectMongo ..." (golint)

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!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign25%

IneffAssign detects ineffectual assignments in Go code.

    • redimo/handlers/userHandler.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • 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 9: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/globalsign/mgo (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/globalsign/mgo/bson (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/go-redis/redis (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/hiddenfounders/redimo/models (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/hiddenfounders/redimo/utils (invalid package name: "") (ineffassign)
    • Line 15: warning: undeclared name: ListenOnPipeline (ineffassign)
    • Line 16: warning: undeclared name: ChangeDocument (ineffassign)
    • Line 17: warning: undeclared name: User (ineffassign)
    • Line 8: warning: "github.com/hiddenfounders/redimo/models" imported but not used (ineffassign)
    • Line 9: warning: "github.com/hiddenfounders/redimo/utils" imported but not used (ineffassign)
    • redimo/utils/mongo.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/globalsign/mgo (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/hiddenfounders/redimo/config (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/hiddenfounders/redimo/models (invalid package name: "") (ineffassign)
    • Line 29: warning: undeclared name: DataStore (ineffassign)
    • Line 19: warning: undeclared name: PROTOCOL (ineffassign)
    • Line 19: warning: undeclared name: MGUSER (ineffassign)
    • Line 19: warning: undeclared name: MGPASS (ineffassign)
    • Line 19: warning: undeclared name: REPLICASET (ineffassign)
    • Line 19: warning: undeclared name: AUTHSOURCE (ineffassign)
    • Line 19: warning: undeclared name: DATABASE (ineffassign)
    • Line 21: warning: undeclared name: PROTOCOL (ineffassign)
    • Line 21: warning: undeclared name: REPLICASET (ineffassign)
    • Line 30: warning: undeclared name: DataStore (ineffassign)
    • Line 6: warning: "github.com/hiddenfounders/redimo/config" imported but not used (ineffassign)
    • Line 7: warning: "github.com/hiddenfounders/redimo/models" imported but not used (ineffassign)
    • redimo/utils/redis.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/globalsign/mgo/bson (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/go-redis/redis (invalid package name: "") (ineffassign)
    • redimo/app.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • 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 5: warning: could not import github.com/go-redis/redis (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/hiddenfounders/redimo/handlers (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/hiddenfounders/redimo/models (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/hiddenfounders/redimo/utils (invalid package name: "") (ineffassign)
    • Line 16: warning: undeclared name: DataStore (ineffassign)
    • Line 17: warning: undeclared name: ConnectRedis (ineffassign)
    • Line 18: warning: undeclared name: ConnectMongo (ineffassign)
    • Line 19: warning: undeclared name: HandleUsers (ineffassign)
    • Line 6: warning: "github.com/hiddenfounders/redimo/handlers" imported but not used (ineffassign)
    • Line 7: warning: "github.com/hiddenfounders/redimo/models" imported but not used (ineffassign)
    • Line 8: warning: "github.com/hiddenfounders/redimo/utils" imported but not used (ineffassign)
    • redimo/models/dataStore.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/globalsign/mgo (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/hiddenfounders/redimo/config (invalid package name: "") (ineffassign)
    • Line 13: warning: undeclared name: DATABASE (ineffassign)
    • Line 5: warning: "github.com/hiddenfounders/redimo/config" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!