Preparing report...

Report for github.com/dolnikov/smpp

(v0.0.0-20221011151230-c230f95af61b)

A+    Excellent!    Found 9 issues across 27 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!


gocyclo74%

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_test.go
    • Line 17: warning: cyclomatic complexity 16 of function TestSMPPServer() is high (> 15) (gocyclo)
    • session.go
    • Line 549: warning: cyclomatic complexity 49 of function toError() is high (> 15) (gocyclo)
    • Line 427: warning: cyclomatic complexity 44 of function (*Session).makeTransition() is high (> 15) (gocyclo)
    • pdu/pdu.go
    • Line 346: warning: cyclomatic complexity 28 of function NewPDU() is high (> 15) (gocyclo)
    • pdu/deliver_sm.go
    • Line 85: warning: cyclomatic complexity 25 of function (*DeliverSm).UnmarshalBinary() is high (> 15) (gocyclo)
    • pdu/submit_sm.go
    • Line 85: warning: cyclomatic complexity 24 of function (*SubmitSm).UnmarshalBinary() is high (> 15) (gocyclo)
    • pdu/receipt.go
    • Line 62: warning: cyclomatic complexity 23 of function ParseDeliveryReceipt() is high (> 15) (gocyclo)
    • internal/mock/connection.go
    • Line 69: warning: cyclomatic complexity 19 of function (*Conn).read() is high (> 15) (gocyclo)
    • Line 143: warning: cyclomatic complexity 18 of function (*Conn).write() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words