Preparing report...

Report for github.com/qiaoborui/rpcx

(v1.8.32)

A+    Excellent!    Found 19 issues across 95 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!


gocyclo90%

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.

    • client/client.go
    • Line 635: warning: cyclomatic complexity 37 of function (*Client).input() is high (> 15) (gocyclo)
    • Line 509: warning: cyclomatic complexity 24 of function (*Client).send() is high (> 15) (gocyclo)
    • Line 366: warning: cyclomatic complexity 17 of function (*Client).SendRaw() is high (> 15) (gocyclo)
    • server/server.go
    • Line 394: warning: cyclomatic complexity 26 of function (*Server).serveConn() is high (> 15) (gocyclo)
    • Line 525: warning: cyclomatic complexity 19 of function (*Server).processOneRequest() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 17 of function (*Server).handleRequest() is high (> 15) (gocyclo)
    • server/gateway.go
    • Line 160: warning: cyclomatic complexity 22 of function (*Server).handleGatewayRequest() is high (> 15) (gocyclo)
    • client/xclient.go
    • Line 545: warning: cyclomatic complexity 48 of function (*xClient).Call() is high (> 15) (gocyclo)
    • Line 771: warning: cyclomatic complexity 30 of function (*xClient).SendRaw() is high (> 15) (gocyclo)
    • Line 1022: warning: cyclomatic complexity 22 of function (*xClient).Fork() is high (> 15) (gocyclo)
    • Line 1119: warning: cyclomatic complexity 22 of function (*xClient).Inform() is high (> 15) (gocyclo)
    • Line 929: warning: cyclomatic complexity 22 of function (*xClient).Broadcast() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words

    • tool/xgen/xgen.go
    • Line 160: warning: "registery" is a misspelling of "registry" (misspell)
    • Line 170: warning: "registery" is a misspelling of "registry" (misspell)
    • Line 180: warning: "registery" is a misspelling of "registry" (misspell)