Preparing report...

Report for github.com/cloudwego/kitex

(v0.11.3)

A+    Excellent!    Found 49 issues across 640 files

Tweet

gofmt96%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo95%

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.

    • pkg/generic/descriptor/tree.go
    • Line 261: warning: cyclomatic complexity 44 of function (*node).getValue() is high (> 15) (gocyclo)
    • Line 141: warning: cyclomatic complexity 27 of function (*node).insert() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 18 of function checkPathValid() is high (> 15) (gocyclo)
    • pkg/remote/trans/nphttp2/grpc/http2_client.go
    • Line 409: warning: cyclomatic complexity 25 of function (*http2Client).NewStream() is high (> 15) (gocyclo)
    • Line 116: warning: cyclomatic complexity 23 of function newHTTP2Client() is high (> 15) (gocyclo)
    • Line 1032: warning: cyclomatic complexity 17 of function (*http2Client).reader() is high (> 15) (gocyclo)
    • pkg/utils/json.go
    • Line 291: warning: cyclomatic complexity 18 of function readEscapedChar() is high (> 15) (gocyclo)
    • Line 353: warning: cyclomatic complexity 17 of function wrapStrWithQuotation() is high (> 15) (gocyclo)
    • pkg/generic/thrift/parse.go
    • Line 278: warning: cyclomatic complexity 29 of function parseType() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 17 of function parse() is high (> 15) (gocyclo)
    • Line 138: warning: cyclomatic complexity 16 of function addFunction() is high (> 15) (gocyclo)
    • pkg/generic/thrift/read.go
    • Line 316: warning: cyclomatic complexity 27 of function readStruct() is high (> 15) (gocyclo)
    • Line 414: warning: cyclomatic complexity 19 of function readHTTPResponse() is high (> 15) (gocyclo)
    • Line 68: warning: cyclomatic complexity 18 of function nextReader() is high (> 15) (gocyclo)
    • pkg/generic/thrift/write.go
    • Line 56: warning: cyclomatic complexity 28 of function typeOf() is high (> 15) (gocyclo)
    • Line 707: warning: cyclomatic complexity 17 of function writeStruct() is high (> 15) (gocyclo)
    • Line 658: warning: cyclomatic complexity 17 of function writeRequestBase() is high (> 15) (gocyclo)
    • Line 760: warning: cyclomatic complexity 16 of function writeHTTPRequest() is high (> 15) (gocyclo)
    • client/client.go
    • Line 547: warning: cyclomatic complexity 26 of function (*kClient).warmingUp() is high (> 15) (gocyclo)

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!