Preparing report...

Report for github.com/lcd1232/hectane

A+    Excellent!    Found 22 issues across 42 files

Tweet

gofmt95%

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!


gocyclo97%

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.


golint54%

Golint is a linter for Go source code.

    • hectane/cmd/command.go
    • Line 20: warning: comment on exported function Print should be of the form "Print ..." (golint)
    • Line 31: warning: comment on exported function Exec should be of the form "Exec ..." (golint)
    • hectane/queue/host.go
    • Line 23: warning: exported type SMTPError should have comment or be unexported (golint)
    • Line 35: warning: exported method SMTPError.IsPermanent should have comment or be unexported (golint)
    • Line 44: warning: exported method SMTPError.IsTemporary should have comment or be unexported (golint)
    • Line 53: warning: comment on exported type HostStatus should be of the form "HostStatus ..." (with optional leading article) (golint)
    • Line 59: warning: exported type ProcessFunc should have comment or be unexported (golint)
    • Line 60: warning: exported type ProcessFailFunc should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type Host should be of the form "Host ..." (with optional leading article) (golint)
    • Line 319: warning: comment on exported method Host.Deliver should be of the form "Deliver ..." (golint)
    • Line 328: warning: comment on exported method Host.Idle should be of the form "Idle ..." (golint)
    • Line 338: warning: comment on exported method Host.Status should be of the form "Status ..." (golint)
    • Line 346: warning: comment on exported method Host.Stop should be of the form "Stop ..." (golint)
    • hectane/log/config.go
    • Line 3: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • hectane/log/log.go
    • Line 9: warning: comment on exported function Init should be of the form "Init ..." (golint)
    • Line 29: warning: comment on exported function Cleanup should be of the form "Cleanup ..." (golint)
    • hectane/email/headers.go
    • Line 9: warning: comment on exported type Headers should be of the form "Headers ..." (with optional leading article) (golint)
    • hectane/queue/storage.go
    • Line 32: warning: comment on exported type Storage should be of the form "Storage ..." (with optional leading article) (golint)
    • Line 76: warning: comment on exported function NewStorage should be of the form "NewStorage ..." (golint)
    • Line 83: warning: comment on exported method Storage.NewBody should be of the form "NewBody ..." (golint)
    • Line 97: warning: comment on exported method Storage.LoadMessages should be of the form "LoadMessages ..." (golint)
    • Line 118: warning: comment on exported method Storage.SaveMessage should be of the form "SaveMessage ..." (golint)
    • Line 137: warning: comment on exported method Storage.GetMessageBody should be of the form "GetMessageBody ..." (golint)
    • Line 144: warning: comment on exported method Storage.DeleteMessage should be of the form "DeleteMessage ..." (golint)
    • hectane/cfg/config.go
    • Line 15: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • hectane/email/util.go
    • Line 17: warning: comment on exported function GroupAddressesByHost should be of the form "GroupAddressesByHost ..." (golint)
    • hectane/queue/queue.go
    • Line 15: warning: comment on exported type Queue should be of the form "Queue ..." (with optional leading article) (golint)
    • Line 88: warning: comment on exported function NewQueue should be of the form "NewQueue ..." (golint)
    • Line 112: warning: comment on exported method Queue.Status should be of the form "Status ..." (golint)
    • hectane/api/api.go
    • Line 21: warning: comment on exported type API should be of the form "API ..." (with optional leading article) (golint)
    • Line 67: warning: comment on exported function New should be of the form "New ..." (golint)
    • hectane/email/email.go
    • Line 18: warning: comment on exported type Email should be of the form "Email ..." (with optional leading article) (golint)
    • Line 115: warning: comment on exported method Email.Messages should be of the form "Messages ..." (golint)
    • Line 147: warning: comment on exported method Email.RawMessages should be of the form "RawMessages ..." (golint)
    • hectane/api/config.go
    • Line 3: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • hectane/queue/config.go
    • Line 5: warning: comment on exported type DKIMConfig should be of the form "DKIMConfig ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (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