Preparing report...

Report for github.com/xhit/go-simple-mail

A+    Excellent!    Found 3 issues across 11 files

Tweet

gofmt90%

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!


gocyclo81%

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.

    • go-simple-mail/smtp_test.go
    • Line 313: warning: cyclomatic complexity 36 of function TestExtensions() is high (> 15) (gocyclo)
    • Line 705: warning: cyclomatic complexity 22 of function TestHello() is high (> 15) (gocyclo)
    • Line 185: warning: cyclomatic complexity 21 of function TestBasic() is high (> 15) (gocyclo)
    • go-simple-mail/email.go
    • Line 252: warning: cyclomatic complexity 28 of function (*Email).AddAddresses() is high (> 15) (gocyclo)
    • Line 721: warning: cyclomatic complexity 16 of function (*SMTPServer).Connect() is high (> 15) (gocyclo)

golint81%

Golint is a linter for Go source code.

    • go-simple-mail/attach_old.go
    • Line 9: warning: comment on exported method Email.AddAttachment should be of the form "AddAttachment ..." (golint)
    • Line 28: warning: comment on exported method Email.AddAttachmentData should be of the form "AddAttachmentData ..." (golint)
    • Line 33: warning: comment on exported method Email.AddAttachmentBase64 should be of the form "AddAttachmentBase64 ..." (golint)
    • Line 39: warning: comment on exported method Email.AddInline should be of the form "AddInline ..." (golint)
    • Line 59: warning: comment on exported method Email.AddInlineData should be of the form "AddInlineData ..." (golint)
    • Line 64: warning: comment on exported method Email.AddInlineBase64 should be of the form "AddInlineBase64 ..." (golint)
    • go-simple-mail/email.go
    • Line 71: warning: comment on exported const EncryptionSSL should be of the form "EncryptionSSL ..." (golint)
    • Line 73: warning: comment on exported const EncryptionTLS should be of the form "EncryptionTLS ..." (golint)
    • Line 122: warning: exported type AuthType should have comment or be unexported (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!