Preparing report...

Report for github.com/rykov/paperboy

A    Great!    Found 12 issues across 28 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!


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.


golint64%

Golint is a linter for Go source code.

    • paperboy/mail/campaign.go
    • Line 39: warning: exported type Campaign should have comment or be unexported (golint)
    • Line 55: warning: exported method Campaign.MessageFor should have comment or be unexported (golint)
    • Line 130: warning: comment on exported function LoadCampaign should be of the form "LoadCampaign ..." (golint)
    • Line 149: warning: comment on exported function LoadContent should be of the form "LoadContent ..." (golint)
    • Line 215: warning: exported function MapsToRecipients should have comment or be unexported (golint)
    • Line 333: warning: exported type Template should have comment or be unexported (golint)
    • paperboy/server/listings.go
    • Line 14: warning: exported method Resolver.Campaigns should have comment or be unexported (golint)
    • Line 26: warning: exported type Campaign should have comment or be unexported (golint)
    • Line 31: warning: exported method Campaign.Param should have comment or be unexported (golint)
    • Line 35: warning: exported method Campaign.Subject should have comment or be unexported (golint)
    • Line 41: warning: exported method Resolver.Lists should have comment or be unexported (golint)
    • Line 53: warning: exported type List should have comment or be unexported (golint)
    • Line 58: warning: exported method List.Param should have comment or be unexported (golint)
    • Line 62: warning: exported method List.Name should have comment or be unexported (golint)
    • paperboy/config/config.go
    • Line 12: warning: comment on exported var ViperConfigFile should be of the form "ViperConfigFile ..." (golint)
    • Line 15: warning: comment on exported var Build should be of the form "Build ..." (golint)
    • Line 18: warning: exported type AConfig should have comment or be unexported (golint)
    • Line 29: warning: comment on exported type ConfigFile should be of the form "ConfigFile ..." (with optional leading article) (golint)
    • Line 57: warning: exported type SMTPConfig should have comment or be unexported (golint)
    • Line 63: warning: comment on exported type BuildInfo should be of the form "BuildInfo ..." (with optional leading article) (golint)
    • Line 73: warning: comment on exported function NewConfig should be of the form "NewConfig ..." (golint)
    • Line 80: warning: comment on exported function LoadConfig should be of the form "LoadConfig ..." (golint)
    • Line 86: warning: comment on exported function LoadConfigTo should be of the form "LoadConfigTo ..." (golint)
    • paperboy/config/fs.go
    • Line 13: warning: exported type Fs should have comment or be unexported (golint)
    • Line 18: warning: exported method Fs.ContentPath should have comment or be unexported (golint)
    • Line 22: warning: exported method Fs.ListPath should have comment or be unexported (golint)
    • Line 26: warning: exported method Fs.LayoutPath should have comment or be unexported (golint)
    • Line 34: warning: exported method Fs.FindContentPath should have comment or be unexported (golint)
    • Line 39: warning: exported method Fs.FindListPath should have comment or be unexported (golint)
    • Line 60: warning: exported method Fs.IsFile should have comment or be unexported (golint)
    • paperboy/server/send.go
    • Line 10: warning: exported type SendOneArgs should have comment or be unexported (golint)
    • Line 15: warning: exported type RecipientArg should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method Resolver.SendBeta should be of the form "SendBeta ..." (golint)
    • paperboy/mail/sender.go
    • Line 18: warning: exported function LoadAndSendCampaign should have comment or be unexported (golint)
    • Line 28: warning: exported function SendCampaign should have comment or be unexported (golint)
    • Line 242: warning: comment on exported var LastRunResult should be of the form "LastRunResult ..." (golint)
    • paperboy/server/resolver.go
    • Line 17: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 21: warning: exported method Resolver.RenderOne should have comment or be unexported (golint)
    • Line 58: warning: exported type RenderOneArgs should have comment or be unexported (golint)
    • Line 87: warning: exported method Resolver.PaperboyInfo should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell92%

Misspell Finds commonly misspelled English words