Preparing report...

Report for github.com/assetcloud/plugin

(v0.0.0-20220923021052-3217f0426652)

A+    Excellent!    Found 343 issues across 1329 files

Tweet

gofmt81%

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!


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.

    • plugin/consensus/qbft/consensus_state.go
    • Line 1617: warning: cyclomatic complexity 52 of function (*ConsensusState).addVote() is high (> 15) (gocyclo)
    • Line 1466: warning: cyclomatic complexity 38 of function (*ConsensusState).tryAddAggVote() is high (> 15) (gocyclo)
    • Line 1380: warning: cyclomatic complexity 18 of function (*ConsensusState).addProposalBlock() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 18 of function (*ConsensusState).updateToState() is high (> 15) (gocyclo)
    • plugin/store/mpt/db2/trie.go
    • Line 302: warning: cyclomatic complexity 23 of function (*Trie).delete() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 18 of function (*Trie).insert() is high (> 15) (gocyclo)
    • plugin/dapp/blackwhite/executor/action.go
    • Line 542: warning: cyclomatic complexity 31 of function (*action).getWinner() is high (> 15) (gocyclo)
    • Line 398: warning: cyclomatic complexity 30 of function (*action).StatTransfer() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 18 of function (*action).TimeoutDone() is high (> 15) (gocyclo)
    • plugin/dapp/zksync/executor/zksyncOption.go
    • Line 60: warning: cyclomatic complexity 20 of function (*Action).Deposit() is high (> 15) (gocyclo)
    • Line 749: warning: cyclomatic complexity 18 of function (*Action).TransferToNew() is high (> 15) (gocyclo)
    • Line 607: warning: cyclomatic complexity 18 of function (*Action).Transfer() is high (> 15) (gocyclo)
    • Line 1099: warning: cyclomatic complexity 16 of function (*Action).FullExit() is high (> 15) (gocyclo)
    • plugin/consensus/tendermint/peer_set.go
    • Line 878: warning: cyclomatic complexity 23 of function (*peerConn).gossipVotesForHeight() is high (> 15) (gocyclo)
    • Line 709: warning: cyclomatic complexity 22 of function (*peerConn).gossipDataRoutine() is high (> 15) (gocyclo)
    • Line 549: warning: cyclomatic complexity 19 of function (*peerConn).recvRoutine() is high (> 15) (gocyclo)
    • Line 623: warning: cyclomatic complexity 17 of function (*peerConn).updateStateRoutine() is high (> 15) (gocyclo)
    • Line 806: warning: cyclomatic complexity 17 of function (*peerConn).gossipVotesRoutine() is high (> 15) (gocyclo)
    • Line 1141: warning: cyclomatic complexity 16 of function (*PeerConnState).getVoteBitArray() is high (> 15) (gocyclo)
    • plugin/p2p/gossip/monitor.go
    • Line 99: warning: cyclomatic complexity 24 of function (*Node).getAddrFromOnline() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 21 of function (*Node).nodeReBalance() is high (> 15) (gocyclo)
    • Line 428: warning: cyclomatic complexity 19 of function (*Node).monitorDialPeers() is high (> 15) (gocyclo)
    • plugin/consensus/qbft/peer_set.go
    • Line 872: warning: cyclomatic complexity 23 of function (*peerConn).gossipVotesForHeight() is high (> 15) (gocyclo)
    • Line 703: warning: cyclomatic complexity 22 of function (*peerConn).gossipDataRoutine() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 18 of function (*peerConn).recvRoutine() is high (> 15) (gocyclo)
    • Line 800: warning: cyclomatic complexity 17 of function (*peerConn).gossipVotesRoutine() is high (> 15) (gocyclo)
    • Line 618: warning: cyclomatic complexity 17 of function (*peerConn).updateStateRoutine() is high (> 15) (gocyclo)
    • Line 1161: warning: cyclomatic complexity 16 of function (*PeerConnState).getVoteBitArray() is high (> 15) (gocyclo)
    • plugin/consensus/dpos/dpos.go
    • Line 103: warning: cyclomatic complexity 20 of function (*Client).applyConfig() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 19 of function (*Client).StartConsensus() is high (> 15) (gocyclo)
    • plugin/store/mpt/db/trie.go
    • Line 302: warning: cyclomatic complexity 23 of function (*Trie).delete() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 18 of function (*Trie).insert() is high (> 15) (gocyclo)
    • plugin/dapp/paracross/executor/action.go
    • Line 596: warning: cyclomatic complexity 22 of function (*action).proCommitMsg() is high (> 15) (gocyclo)
    • Line 104: warning: cyclomatic complexity 18 of function checkCommitInfo() is high (> 15) (gocyclo)
    • Line 1412: warning: cyclomatic complexity 17 of function getCrossTxs() is high (> 15) (gocyclo)
    • plugin/dapp/autonomy/executor/projectaction.go
    • Line 170: warning: cyclomatic complexity 31 of function (*action).votePropProject() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 29 of function (*action).tmintPropProject() is high (> 15) (gocyclo)
    • Line 16: warning: cyclomatic complexity 17 of function (*action).propProject() is high (> 15) (gocyclo)
    • Line 319: warning: cyclomatic complexity 17 of function (*action).pubVotePropProject() is high (> 15) (gocyclo)
    • plugin/consensus/raft/raft.go
    • Line 214: warning: cyclomatic complexity 19 of function (*raftNode).serveChannels() is high (> 15) (gocyclo)
    • Line 491: warning: cyclomatic complexity 17 of function (*raftNode).publishEntries() is high (> 15) (gocyclo)
    • plugin/dapp/privacy/wallet/privacy.go
    • Line 364: warning: cyclomatic complexity 21 of function (*privacyPolicy).buildInput() is high (> 15) (gocyclo)
    • Line 1189: warning: cyclomatic complexity 17 of function (*privacyPolicy).processOutputUtxos() is high (> 15) (gocyclo)
    • plugin/dapp/cross2eth/ebrelayer/relayer/chain33/chain33.go
    • Line 459: warning: cyclomatic complexity 19 of function (*Relayer4Chain33).relayLockBurnToChain33() is high (> 15) (gocyclo)
    • Line 216: warning: cyclomatic complexity 18 of function (*Relayer4Chain33).onNewHeightProc() is high (> 15) (gocyclo)
    • Line 374: warning: cyclomatic complexity 17 of function (*Relayer4Chain33).ResendChain33Event() 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!