Preparing report...

Report for github.com/Mparaiso/gonews

A+    Excellent!    Found 12 issues across 25 files

Tweet

gofmt92%

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!


gocyclo96%

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.


golint68%

Golint is a linter for Go source code.

    • gonews/core/response.go
    • Line 25: warning: comment on exported type ResponseWriterExtra should be of the form "ResponseWriterExtra ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported type DefaultResponseWriterExtra should be of the form "DefaultResponseWriterExtra ..." (with optional leading article) (golint)
    • gonews/core/session.go
    • Line 28: warning: comment on exported type SessionWrapper should be of the form "SessionWrapper ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported type DefaultSessionWrapper should be of the form "DefaultSessionWrapper ..." (with optional leading article) (golint)
    • Line 59: warning: exported method DefaultSessionWrapper.Options should have comment or be unexported (golint)
    • Line 63: warning: exported method DefaultSessionWrapper.SetOptions should have comment or be unexported (golint)
    • Line 82: warning: exported method DefaultSessionWrapper.Delete should have comment or be unexported (golint)
    • gonews/core/app.go
    • Line 140: warning: exported method Route.StoryByID should have comment or be unexported (golint)
    • Line 141: warning: exported method Route.Reply should have comment or be unexported (golint)
    • Line 142: warning: exported method Route.StoriesByDomain should have comment or be unexported (golint)
    • Line 143: warning: exported method Route.AuthorComments should have comment or be unexported (golint)
    • Line 144: warning: exported method Route.StoriesByAuthor should have comment or be unexported (golint)
    • Line 145: warning: exported method Route.Login should have comment or be unexported (golint)
    • Line 146: warning: exported method Route.Registration should have comment or be unexported (golint)
    • Line 147: warning: exported method Route.Public should have comment or be unexported (golint)
    • Line 148: warning: exported method Route.Logout should have comment or be unexported (golint)
    • Line 149: warning: exported method Route.UserProfile should have comment or be unexported (golint)
    • Line 150: warning: exported method Route.SubmitStory should have comment or be unexported (golint)
    • Line 151: warning: exported method Route.CastStoryVote should have comment or be unexported (golint)
    • gonews/core/controllers.go
    • Line 29: warning: comment on exported function StoriesByScoreController should be of the form "StoriesByScoreController ..." (golint)
    • Line 67: warning: comment on exported function StoriesByDomainController should be of the form "StoriesByDomainController ..." (golint)
    • Line 102: warning: comment on exported function AuthorCommentsController should be of the form "AuthorCommentsController ..." (golint)
    • Line 129: warning: comment on exported function StoriesByAuthorController should be of the form "StoriesByAuthorController ..." (golint)
    • Line 325: warning: comment on exported function UserProfileController should be of the form "UserProfileController ..." (golint)
    • Line 347: warning: comment on exported function SubmitStoryController should be of the form "SubmitStoryController ..." (golint)
    • Line 486: warning: comment on exported function NewStoriesController should be of the form "NewStoriesController ..." (golint)
    • gonews/core/csrf.go
    • Line 28: warning: exported const CsrfSessionKey should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type DefaultCSRFGenerator should be of the form "DefaultCSRFGenerator ..." (with optional leading article) (golint)
    • gonews/core/logger.go
    • Line 35: warning: don't use underscores in Go names; const time_format should be timeFormat (golint)
    • Line 41: warning: exported const ALL should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported method Logger.SetLevel should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell84%

Misspell Finds commonly misspelled English words