Preparing report...

Report for github.com/AllenCXS/rpcx

(v0.0.0-20230510182840-7f5da8171174)

A+    Excellent!    Found 22 issues across 91 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!


gofmt86%

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


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/xclient.go
    • Line 508: warning: cyclomatic complexity 46 of function (*xClient).Call() is high (> 15) (gocyclo)
    • Line 696: warning: cyclomatic complexity 28 of function (*xClient).SendRaw() is high (> 15) (gocyclo)
    • Line 1051: warning: cyclomatic complexity 23 of function (*xClient).Inform() is high (> 15) (gocyclo)
    • Line 854: warning: cyclomatic complexity 23 of function (*xClient).Broadcast() is high (> 15) (gocyclo)
    • Line 950: warning: cyclomatic complexity 23 of function (*xClient).Fork() is high (> 15) (gocyclo)
    • client/client.go
    • Line 614: warning: cyclomatic complexity 36 of function (*Client).input() is high (> 15) (gocyclo)
    • Line 488: warning: cyclomatic complexity 24 of function (*Client).send() is high (> 15) (gocyclo)
    • Line 345: warning: cyclomatic complexity 17 of function (*Client).SendRaw() is high (> 15) (gocyclo)
    • server/server.go
    • Line 386: warning: cyclomatic complexity 26 of function (*Server).serveConn() is high (> 15) (gocyclo)
    • Line 517: warning: cyclomatic complexity 17 of function (*Server).processOneRequest() is high (> 15) (gocyclo)
    • Line 667: warning: cyclomatic complexity 17 of function (*Server).handleRequest() is high (> 15) (gocyclo)
    • Line 922: warning: cyclomatic complexity 16 of function (*Server).Shutdown() is high (> 15) (gocyclo)
    • server/gateway.go
    • Line 98: warning: cyclomatic complexity 21 of function (*Server).handleGatewayRequest() 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!


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)