Preparing report...

Report for github.com/octohedron/goddit

A+    Excellent!    Found 3 issues across 4 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!


golint50%

Golint is a linter for Go source code.

    • goddit/hub.go
    • Line 7: warning: comment on exported type Hub should be of the form "Hub ..." (with optional leading article) (golint)
    • goddit/main.go
    • Line 30: warning: exported type User should have comment or be unexported (golint)
    • Line 31: warning: don't use underscores in Go names; struct field Comment_karma should be CommentKarma (golint)
    • Line 33: warning: don't use underscores in Go names; struct field Created_utc should be CreatedUtc (golint)
    • Line 34: warning: don't use underscores in Go names; struct field Has_mail should be HasMail (golint)
    • Line 35: warning: don't use underscores in Go names; struct field Has_mod_mail should be HasModMail (golint)
    • Line 37: warning: don't use underscores in Go names; struct field Is_gold should be IsGold (golint)
    • Line 38: warning: don't use underscores in Go names; struct field Is_mod should be IsMod (golint)
    • Line 39: warning: don't use underscores in Go names; struct field Link_karma should be LinkKarma (golint)
    • Line 40: warning: don't use underscores in Go names; struct field Over_18 should be Over18 (golint)
    • Line 44: warning: don't use underscores in Go names; struct field Activation_token should be ActivationToken (golint)
    • Line 45: warning: don't use underscores in Go names; struct field Created_at should be CreatedAt (golint)
    • Line 50: warning: exported type Chatroom should have comment or be unexported (golint)
    • Line 59: warning: exported type Message should have comment or be unexported (golint)
    • Line 69: warning: exported type RedditAuth should have comment or be unexported (golint)
    • Line 70: warning: don't use underscores in Go names; struct field Access_token should be AccessToken (golint)
    • Line 71: warning: don't use underscores in Go names; struct field Token_type should be TokenType (golint)
    • Line 72: warning: don't use underscores in Go names; struct field Expires_in should be ExpiresIn (golint)
    • Line 76: warning: exported type MongoDBConnections should have comment or be unexported (golint)
    • Line 82: warning: comment on exported var CLIENT_ID should be of the form "CLIENT_ID ..." (golint)
    • Line 84: warning: exported var CLIENT_SECRET should have comment or be unexported (golint)
    • Line 85: warning: exported var DOMAIN should have comment or be unexported (golint)
    • Line 86: warning: exported var PORT should have comment or be unexported (golint)
    • Line 87: warning: exported var REDIRECT_URI should have comment or be unexported (golint)
    • Line 88: warning: exported var SERVER_ADDRESS should have comment or be unexported (golint)
    • Line 89: warning: exported var COOKIE_NAME should have comment or be unexported (golint)
    • Line 90: warning: exported var PROJ_ROOT should have comment or be unexported (golint)
    • Line 91: warning: exported var MONGO_ADDR should have comment or be unexported (golint)
    • Line 92: warning: exported var MONGO_USER should have comment or be unexported (golint)
    • Line 93: warning: exported var MONGO_PASS should have comment or be unexported (golint)
    • Line 98: warning: exported var Mongo should have comment or be unexported (golint)
    • Line 99: warning: exported var MessageChannel should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • goddit/client.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/gorilla/websocket (invalid package name: "") (ineffassign)
    • goddit/main.go
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/joho/godotenv (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import gopkg.in/mgo.v2 (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import gopkg.in/mgo.v2/bson (invalid package name: "") (ineffassign)
    • Line 77: warning: undeclared name: mgo (ineffassign)
    • Line 78: warning: undeclared name: mgo (ineffassign)
    • Line 79: warning: undeclared name: mgo (ineffassign)
    • Line 104: warning: undeclared name: mgo (ineffassign)
    • Line 111: warning: undeclared name: mgo (ineffassign)
    • Line 114: warning: undeclared name: mgo (ineffassign)
    • Line 264: warning: undeclared name: mgo (ineffassign)
    • Line 19: warning: "gopkg.in/mgo.v2" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!