Preparing report...

Report for github.com/uponusolutions/go-smtp

(v0.5.0)

A+    Excellent!    Found 10 issues across 41 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!


gocyclo75%

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.

    • server/conn.go
    • Line 436: warning: cyclomatic complexity 38 of function (*Conn).handleMail() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 24 of function (*Conn).handleGreet() is high (> 15) (gocyclo)
    • Line 560: warning: cyclomatic complexity 18 of function (*Conn).handleRcpt() is high (> 15) (gocyclo)
    • Line 658: warning: cyclomatic complexity 16 of function (*Conn).handleAuth() is high (> 15) (gocyclo)
    • server/encode.go
    • Line 62: warning: cyclomatic complexity 31 of function decodeUTF8AddrXtext() is high (> 15) (gocyclo)
    • client/basic.go
    • Line 315: warning: cyclomatic complexity 26 of function (*Client).Mail() is high (> 15) (gocyclo)
    • server/bdat.go
    • Line 47: warning: cyclomatic complexity 17 of function (*bdat).Read() is high (> 15) (gocyclo)
    • server/server_test.go
    • Line 1579: warning: cyclomatic complexity 35 of function TestServerDSNwithSMTPUTF8() is high (> 15) (gocyclo)
    • Line 1495: warning: cyclomatic complexity 27 of function TestServerDSN() is high (> 15) (gocyclo)
    • client/basic_test.go
    • Line 59: warning: cyclomatic complexity 24 of function TestBasic() is high (> 15) (gocyclo)
    • Line 400: warning: cyclomatic complexity 18 of function HelloCase() 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!