Preparing report...

Report for github.com/thecsw/mira

A+    Excellent!    Found 16 issues across 39 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!


golint61%

Golint is a linter for Go source code.

    • mira/models/submission_struct.go
    • Line 3: warning: exported type Submission should have comment or be unexported (golint)
    • Line 7: warning: exported type SubmissionJson should have comment or be unexported (golint)
    • Line 12: warning: exported type SubmissionJsonData should have comment or be unexported (golint)
    • mira/models/subreddit.go
    • Line 3: warning: exported method Subreddit.GetId should have comment or be unexported (golint)
    • Line 4: warning: exported method Subreddit.GetParentId should have comment or be unexported (golint)
    • Line 5: warning: exported method Subreddit.GetName should have comment or be unexported (golint)
    • Line 6: warning: exported method Subreddit.GetAuthor should have comment or be unexported (golint)
    • Line 7: warning: exported method Subreddit.GetSubreddit should have comment or be unexported (golint)
    • Line 8: warning: exported method Subreddit.GetTitle should have comment or be unexported (golint)
    • Line 9: warning: exported method Subreddit.GetBody should have comment or be unexported (golint)
    • Line 10: warning: exported method Subreddit.GetDisplayName should have comment or be unexported (golint)
    • Line 11: warning: exported method Subreddit.GetUrl should have comment or be unexported (golint)
    • Line 12: warning: exported method Subreddit.GetUps should have comment or be unexported (golint)
    • Line 13: warning: exported method Subreddit.GetKarma should have comment or be unexported (golint)
    • Line 14: warning: exported method Subreddit.GetDowns should have comment or be unexported (golint)
    • Line 15: warning: exported method Subreddit.IsOver18 should have comment or be unexported (golint)
    • Line 16: warning: exported method Subreddit.GetPublicDescription should have comment or be unexported (golint)
    • Line 17: warning: exported method Subreddit.GetDescription should have comment or be unexported (golint)
    • Line 18: warning: exported method Subreddit.GetFlair should have comment or be unexported (golint)
    • Line 19: warning: exported method Subreddit.GetCreated should have comment or be unexported (golint)
    • Line 20: warning: exported method Subreddit.GetSubscribers should have comment or be unexported (golint)
    • Line 21: warning: exported method Subreddit.IsRoot should have comment or be unexported (golint)
    • mira/models/me_struct.go
    • Line 3: warning: exported type Me should have comment or be unexported (golint)
    • Line 61: warning: exported type MeFeatures should have comment or be unexported (golint)
    • Line 85: warning: exported type MeSubFeature should have comment or be unexported (golint)
    • mira/models/submission.go
    • Line 3: warning: exported method Submission.GetId should have comment or be unexported (golint)
    • Line 4: warning: exported method Submission.GetDraftsCount should have comment or be unexported (golint)
    • Line 5: warning: exported method Submission.GetUrl should have comment or be unexported (golint)
    • mira/models/post.go
    • Line 3: warning: exported method PostListing.GetChildren should have comment or be unexported (golint)
    • Line 4: warning: exported method PostListingChild.GetSubreddit should have comment or be unexported (golint)
    • Line 5: warning: exported method PostListingChild.GetSubredditId should have comment or be unexported (golint)
    • Line 6: warning: exported method PostListingChild.GetName should have comment or be unexported (golint)
    • Line 7: warning: exported method PostListingChild.GetTitle should have comment or be unexported (golint)
    • Line 8: warning: exported method PostListingChild.GetId should have comment or be unexported (golint)
    • Line 9: warning: exported method PostListingChild.GetParentId should have comment or be unexported (golint)
    • Line 10: warning: exported method PostListingChild.GetAuthor should have comment or be unexported (golint)
    • Line 11: warning: exported method PostListingChild.GetAuthorId should have comment or be unexported (golint)
    • Line 12: warning: exported method PostListingChild.GetCreated should have comment or be unexported (golint)
    • Line 13: warning: exported method PostListingChild.GetKarma should have comment or be unexported (golint)
    • Line 14: warning: exported method PostListingChild.GetUps should have comment or be unexported (golint)
    • Line 15: warning: exported method PostListingChild.GetDowns should have comment or be unexported (golint)
    • Line 16: warning: exported method PostListingChild.GetScore should have comment or be unexported (golint)
    • Line 17: warning: exported method PostListingChild.GetBody should have comment or be unexported (golint)
    • Line 18: warning: exported method PostListingChild.GetAuthorFlair should have comment or be unexported (golint)
    • Line 19: warning: exported method PostListingChild.GetPermalink should have comment or be unexported (golint)
    • Line 20: warning: exported method PostListingChild.GetUrl should have comment or be unexported (golint)
    • Line 21: warning: exported method PostListingChild.GetFlair should have comment or be unexported (golint)
    • Line 22: warning: exported method PostListingChild.GetCommentCount should have comment or be unexported (golint)
    • Line 23: warning: exported method PostListingChild.GetCrosspostCount should have comment or be unexported (golint)
    • Line 24: warning: exported method PostListingChild.IsRoot should have comment or be unexported (golint)
    • mira/models/post_struct.go
    • Line 3: warning: exported type PostListing should have comment or be unexported (golint)
    • Line 8: warning: exported type PostListingData should have comment or be unexported (golint)
    • Line 14: warning: exported type PostListingChild should have comment or be unexported (golint)
    • Line 21: warning: exported type PostListingChildData should have comment or be unexported (golint)
    • Line 121: warning: exported type PostAward should have comment or be unexported (golint)
    • Line 139: warning: exported type PostAwardIcon should have comment or be unexported (golint)
    • Line 145: warning: exported type PostPreview should have comment or be unexported (golint)
    • Line 150: warning: exported type PostPreviewImage should have comment or be unexported (golint)
    • Line 157: warning: exported type PostPreviewImageResolutions should have comment or be unexported (golint)
    • Line 163: warning: exported type PostPreviewImageSource should have comment or be unexported (golint)
    • mira/models/redditor.go
    • Line 3: warning: exported method Redditor.IsEmployee should have comment or be unexported (golint)
    • Line 4: warning: exported method Redditor.GetName should have comment or be unexported (golint)
    • Line 5: warning: exported method Redditor.GetAuthor should have comment or be unexported (golint)
    • Line 6: warning: exported method Redditor.GetId should have comment or be unexported (golint)
    • Line 7: warning: exported method Redditor.GetParentId should have comment or be unexported (golint)
    • Line 8: warning: exported method Redditor.GetDescription should have comment or be unexported (golint)
    • Line 9: warning: exported method Redditor.GetCreated should have comment or be unexported (golint)
    • Line 10: warning: exported method Redditor.GetKarma should have comment or be unexported (golint)
    • Line 11: warning: exported method Redditor.GetUps should have comment or be unexported (golint)
    • Line 12: warning: exported method Redditor.GetDowns should have comment or be unexported (golint)
    • Line 13: warning: exported method Redditor.GetBody should have comment or be unexported (golint)
    • Line 14: warning: exported method Redditor.GetTitle should have comment or be unexported (golint)
    • Line 15: warning: exported method Redditor.GetFlair should have comment or be unexported (golint)
    • Line 16: warning: exported method Redditor.GetSubreddit should have comment or be unexported (golint)
    • Line 17: warning: exported method Redditor.GetUrl should have comment or be unexported (golint)
    • Line 18: warning: exported method Redditor.IsRoot should have comment or be unexported (golint)
    • mira/models/comment.go
    • Line 9: warning: exported method CommentWrap.GetId should have comment or be unexported (golint)
    • Line 10: warning: exported method CommentWrap.GetSubredditId should have comment or be unexported (golint)
    • Line 11: warning: exported method CommentWrap.GetParentId should have comment or be unexported (golint)
    • Line 12: warning: exported method CommentWrap.GetAuthor should have comment or be unexported (golint)
    • Line 13: warning: exported method CommentWrap.GetAuthorId should have comment or be unexported (golint)
    • Line 14: warning: exported method CommentWrap.GetSubreddit should have comment or be unexported (golint)
    • Line 15: warning: exported method CommentWrap.CreatedAt should have comment or be unexported (golint)
    • Line 16: warning: exported method CommentWrap.GetBody should have comment or be unexported (golint)
    • Line 17: warning: exported method CommentWrap.GetScore should have comment or be unexported (golint)
    • Line 18: warning: exported method CommentWrap.GetUps should have comment or be unexported (golint)
    • Line 19: warning: exported method CommentWrap.GetDowns should have comment or be unexported (golint)
    • Line 20: warning: exported method CommentWrap.IsSticky should have comment or be unexported (golint)
    • Line 21: warning: exported method CommentWrap.IsRemoved should have comment or be unexported (golint)
    • Line 22: warning: exported method CommentWrap.IsApproved should have comment or be unexported (golint)
    • Line 23: warning: exported method CommentWrap.IsAuthor should have comment or be unexported (golint)
    • mira/models/comment_struct.go
    • Line 3: warning: exported type CommentWrap should have comment or be unexported (golint)
    • Line 7: warning: exported type CommentJson should have comment or be unexported (golint)
    • Line 12: warning: exported type CommentJsonData should have comment or be unexported (golint)
    • Line 16: warning: exported type CommentJsonDataThing should have comment or be unexported (golint)
    • Line 21: warning: exported type CommentJsonDataThingData should have comment or be unexported (golint)
    • Line 51: warning: don't use underscores in Go names; struct field Mod_note should be ModNote (golint)
    • Line 88: warning: exported type Gilding should have comment or be unexported (golint)
    • mira/models/commentlisting.go
    • Line 3: warning: exported method CommentListing.GetChildren should have comment or be unexported (golint)
    • Line 4: warning: exported method Comment.GetId should have comment or be unexported (golint)
    • Line 5: warning: exported method Comment.GetParentId should have comment or be unexported (golint)
    • Line 6: warning: exported method Comment.IsRoot should have comment or be unexported (golint)
    • Line 7: warning: exported method Comment.GetTitle should have comment or be unexported (golint)
    • Line 8: warning: exported method Comment.GetBody should have comment or be unexported (golint)
    • Line 9: warning: exported method Comment.GetSubreddit should have comment or be unexported (golint)
    • Line 10: warning: exported method Comment.GetUps should have comment or be unexported (golint)
    • Line 11: warning: exported method Comment.GetDowns should have comment or be unexported (golint)
    • Line 12: warning: exported method Comment.GetCreated should have comment or be unexported (golint)
    • Line 13: warning: exported method Comment.GetAuthor should have comment or be unexported (golint)
    • Line 14: warning: exported method Comment.IsComment should have comment or be unexported (golint)
    • Line 15: warning: exported method Comment.IsCommentReply should have comment or be unexported (golint)
    • Line 16: warning: exported method Comment.IsMention should have comment or be unexported (golint)
    • Line 17: warning: exported method Comment.GetName should have comment or be unexported (golint)
    • Line 18: warning: exported method Comment.GetKarma should have comment or be unexported (golint)
    • Line 19: warning: exported method Comment.GetUrl should have comment or be unexported (golint)
    • Line 20: warning: exported method Comment.GetFlair should have comment or be unexported (golint)
    • mira/models/commentlisting_struct.go
    • Line 3: warning: exported type CommentListing should have comment or be unexported (golint)
    • Line 8: warning: exported type CommentListingData should have comment or be unexported (golint)
    • Line 16: warning: exported type Comment should have comment or be unexported (golint)
    • Line 21: warning: exported type CommentListingDataChildrenData should have comment or be unexported (golint)
    • Line 43: warning: don't use underscores in Go names; struct field Created_utc should be CreatedUtc (golint)
    • mira/models/me.go
    • Line 3: warning: exported method Me.GetId should have comment or be unexported (golint)
    • Line 4: warning: exported method Me.GetName should have comment or be unexported (golint)
    • Line 5: warning: exported method Me.GetAuthor should have comment or be unexported (golint)
    • Line 6: warning: exported method Me.GetParentId should have comment or be unexported (golint)
    • Line 7: warning: exported method Me.GetTitle should have comment or be unexported (golint)
    • Line 8: warning: exported method Me.GetBody should have comment or be unexported (golint)
    • Line 9: warning: exported method Me.GetKarma should have comment or be unexported (golint)
    • Line 10: warning: exported method Me.GetUps should have comment or be unexported (golint)
    • Line 11: warning: exported method Me.GetDowns should have comment or be unexported (golint)
    • Line 12: warning: exported method Me.GetSubreddit should have comment or be unexported (golint)
    • Line 13: warning: exported method Me.GetCreated should have comment or be unexported (golint)
    • Line 14: warning: exported method Me.GetFlair should have comment or be unexported (golint)
    • Line 15: warning: exported method Me.GetUrl should have comment or be unexported (golint)
    • Line 16: warning: exported method Me.IsRoot should have comment or be unexported (golint)
    • mira/models/redditor_struct.go
    • Line 3: warning: exported type Redditor should have comment or be unexported (golint)
    • Line 8: warning: exported type RedditorData should have comment or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; type Subreddit_s should be SubredditS (golint)
    • Line 28: warning: exported type Subreddit_s should have comment or be unexported (golint)
    • mira/auth.go
    • Line 13: warning: exported type Credentials should have comment or be unexported (golint)
    • Line 24: warning: don't use underscores in Go names; var auth_url should be authURL (golint)
    • Line 73: warning: don't use underscores in Go names; method auto_refresh should be autoRefresh (golint)
    • Line 81: warning: don't use underscores in Go names; method update_creds should be updateCreds (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words