Preparing report...

Report for github.com/meshplus/bitxhub

(v1.24.0)

A+    Excellent!    Found 42 issues across 208 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!


gofmt85%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

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.

    • internal/executor/contracts/node_manager.go
    • Line 137: warning: cyclomatic complexity 42 of function (*NodeManager).Manage() is high (> 15) (gocyclo)
    • Line 854: warning: cyclomatic complexity 17 of function (*NodeManager).checkNodeInfo() is high (> 15) (gocyclo)
    • Line 466: warning: cyclomatic complexity 17 of function (*NodeManager).UpdateNode() is high (> 15) (gocyclo)
    • internal/executor/contracts/dapp_manager.go
    • Line 447: warning: cyclomatic complexity 23 of function (*DappManager).UpdateDapp() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 22 of function (*DappManager).Manage() is high (> 15) (gocyclo)
    • Line 924: warning: cyclomatic complexity 19 of function (*DappManager).checkDappInfo() is high (> 15) (gocyclo)
    • internal/executor/handle.go
    • Line 765: warning: cyclomatic complexity 22 of function (*BlockExecutor).setTimeoutList() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 16 of function (*BlockExecutor).applyTx() is high (> 15) (gocyclo)
    • internal/executor/contracts/appchain_manager.go
    • Line 476: warning: cyclomatic complexity 34 of function (*AppchainManager).UpdateAppchain() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 26 of function (*AppchainManager).Manage() is high (> 15) (gocyclo)
    • Line 367: warning: cyclomatic complexity 21 of function (*AppchainManager).RegisterAppchain() is high (> 15) (gocyclo)
    • api/grpc/sign.go
    • Line 60: warning: cyclomatic complexity 25 of function (*ChainBrokerService).GetTssSigns() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words

    • cmd/bitxhub/client/node_manage.go
    • Line 156: warning: "permisssion" is a misspelling of "permissions" (misspell)
    • Line 165: warning: "permisssion" is a misspelling of "permissions" (misspell)
    • Line 169: warning: "permisssion" is a misspelling of "permissions" (misspell)
    • Line 184: warning: "permisssion" is a misspelling of "permissions" (misspell)
    • Line 190: warning: "permisssion" is a misspelling of "permissions" (misspell)
    • Line 194: warning: "permisssion" is a misspelling of "permissions" (misspell)
    • cmd/bitxhub/client/http.go
    • Line 38: warning: "reponse" is a misspelling of "response" (misspell)
    • Line 43: warning: "reponse" is a misspelling of "response" (misspell)
    • Line 68: warning: "reponse" is a misspelling of "response" (misspell)
    • Line 77: warning: "reponse" is a misspelling of "response" (misspell)