Preparing report...

Report for github.com/gozelle/mail

(v0.0.0-20230116030531-6968ee75f10c)

A+    Excellent!    Found 14 issues across 42 files

Tweet

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!


gofmt88%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

    • msg.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

gocyclo85%

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.

    • msg_test.go
    • Line 972: warning: cyclomatic complexity 19 of function TestMsg_SetImportance() is high (> 15) (gocyclo)
    • Line 1085: warning: cyclomatic complexity 17 of function TestMsg_RequestMDN() is high (> 15) (gocyclo)
    • Line 2354: warning: cyclomatic complexity 17 of function TestMsg_GetAddrHeader() is high (> 15) (gocyclo)
    • msgwriter.go
    • Line 281: warning: cyclomatic complexity 18 of function (*msgWriter).writeBody() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 16 of function (*msgWriter).writeMsg() is high (> 15) (gocyclo)
    • client_120.go
    • Line 15: warning: cyclomatic complexity 18 of function (*Client).Send() is high (> 15) (gocyclo)
    • smtp/smtp_test.go
    • Line 376: warning: cyclomatic complexity 34 of function TestExtensions() is high (> 15) (gocyclo)
    • Line 772: warning: cyclomatic complexity 22 of function TestHello() is high (> 15) (gocyclo)
    • Line 246: warning: cyclomatic complexity 22 of function TestBasic() is high (> 15) (gocyclo)
    • Line 887: warning: cyclomatic complexity 20 of function TestSendMail() is high (> 15) (gocyclo)
    • client_119.go
    • Line 11: warning: cyclomatic complexity 21 of function (*Client).Send() is high (> 15) (gocyclo)
    • smtp/smtp.go
    • Line 320: warning: cyclomatic complexity 19 of function SendMail() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell92%

Misspell Finds commonly misspelled English words

    • reader.go
    • Line 15: warning: "initalization" is a misspelling of "initialization" (misspell)