Preparing report...

Report for github.com/UtopiaCoinOrg/ucd

A    Great!    Found 170 issues across 484 files

Tweet

gofmt76%

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!


gocyclo81%

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.

    • ucd/txscript/sign.go
    • Line 229: warning: cyclomatic complexity 28 of function sign() is high (> 15) (gocyclo)
    • Line 364: warning: cyclomatic complexity 18 of function mergeMultiSig() is high (> 15) (gocyclo)
    • ucd/gcs/bits.go
    • Line 126: warning: cyclomatic complexity 16 of function (*bitReader).readNBits() is high (> 15) (gocyclo)
    • ucd/blockchain/stake/tickets.go
    • Line 702: warning: cyclomatic complexity 27 of function disconnectNode() is high (> 15) (gocyclo)
    • Line 964: warning: cyclomatic complexity 26 of function WriteDisconnectedBestNode() is high (> 15) (gocyclo)
    • Line 474: warning: cyclomatic complexity 25 of function connectNode() is high (> 15) (gocyclo)
    • Line 859: warning: cyclomatic complexity 21 of function WriteConnectedBestNode() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 18 of function LoadBestNode() is high (> 15) (gocyclo)
    • ucd/blockchain/upgrade.go
    • Line 250: warning: cyclomatic complexity 20 of function migrateBlockIndex() is high (> 15) (gocyclo)
    • Line 112: warning: cyclomatic complexity 18 of function upgradeToVersion2() is high (> 15) (gocyclo)
    • ucd/blockchain/stakeversion_test.go
    • Line 372: warning: cyclomatic complexity 40 of function TestIsStakeMajorityVersion() is high (> 15) (gocyclo)
    • Line 149: warning: cyclomatic complexity 27 of function TestCalcStakeVersionCorners() is high (> 15) (gocyclo)
    • ucd/ucd.go
    • Line 36: warning: cyclomatic complexity 26 of function ucdMain() is high (> 15) (gocyclo)
    • ucd/bech32/bech32.go
    • Line 41: warning: cyclomatic complexity 19 of function bech32Polymod() is high (> 15) (gocyclo)
    • Line 159: warning: cyclomatic complexity 16 of function DecodeNoLimit() is high (> 15) (gocyclo)
    • ucd/wire/common.go
    • Line 192: warning: cyclomatic complexity 40 of function readElement() is high (> 15) (gocyclo)
    • Line 370: warning: cyclomatic complexity 28 of function writeElement() is high (> 15) (gocyclo)
    • ucd/txscript/reference_test.go
    • Line 254: warning: cyclomatic complexity 51 of function parseExpectedResult() is high (> 15) (gocyclo)
    • Line 101: warning: cyclomatic complexity 29 of function parseShortForm() is high (> 15) (gocyclo)
    • Line 819: warning: cyclomatic complexity 24 of function TestCalcSignatureHashReference() is high (> 15) (gocyclo)
    • Line 661: warning: cyclomatic complexity 23 of function TestTxValidTests() is high (> 15) (gocyclo)
    • Line 517: warning: cyclomatic complexity 23 of function TestTxInvalidTests() is high (> 15) (gocyclo)
    • Line 389: warning: cyclomatic complexity 16 of function testScripts() is high (> 15) (gocyclo)
    • ucd/txscript/engine.go
    • Line 628: warning: cyclomatic complexity 21 of function (*Engine).checkSignatureEncoding() is high (> 15) (gocyclo)
    • Line 437: warning: cyclomatic complexity 18 of function (*Engine).Step() is high (> 15) (gocyclo)
    • Line 859: warning: cyclomatic complexity 16 of function NewEngine() is high (> 15) (gocyclo)
    • Line 217: warning: cyclomatic complexity 16 of function checkMinimalDataPush() is high (> 15) (gocyclo)
    • ucd/blockchain/stake/tickets_test.go
    • Line 632: warning: cyclomatic complexity 55 of function TestTicketDBGeneral() is high (> 15) (gocyclo)
    • Line 252: warning: cyclomatic complexity 35 of function TestTicketDBLongChain() is high (> 15) (gocyclo)
    • Line 181: warning: cyclomatic complexity 25 of function nodesEqual() is high (> 15) (gocyclo)
    • ucd/mining.go
    • Line 1073: warning: cyclomatic complexity 135 of function (*BlkTmplGenerator).NewBlockTemplate() is high (> 15) (gocyclo)
    • Line 778: warning: cyclomatic complexity 19 of function handleTooFewVoters() is high (> 15) (gocyclo)
    • ucd/mining_test.go
    • Line 20: warning: cyclomatic complexity 17 of function TestStakeTxFeePrioHeap() is high (> 15) (gocyclo)
    • ucd/txscript/opcode.go
    • Line 2556: warning: cyclomatic complexity 30 of function opcodeCheckMultiSig() is high (> 15) (gocyclo)
    • Line 2755: warning: cyclomatic complexity 26 of function opcodeCheckSigAlt() is high (> 15) (gocyclo)
    • ucd/database/ffldb/interface_test.go
    • Line 1662: warning: cyclomatic complexity 39 of function testClosedTxInterface() is high (> 15) (gocyclo)
    • Line 883: warning: cyclomatic complexity 35 of function testMetadataTxInterface() is high (> 15) (gocyclo)
    • Line 1195: warning: cyclomatic complexity 35 of function testFetchBlockIO() is high (> 15) (gocyclo)
    • Line 380: warning: cyclomatic complexity 34 of function testBucketInterface() is high (> 15) (gocyclo)
    • Line 1486: warning: cyclomatic complexity 30 of function testBlockIOTxInterface() is high (> 15) (gocyclo)
    • Line 615: warning: cyclomatic complexity 29 of function testMetadataManualTxInterface() is high (> 15) (gocyclo)
    • Line 1970: warning: cyclomatic complexity 24 of function testConcurrecy() is high (> 15) (gocyclo)
    • Line 235: warning: cyclomatic complexity 21 of function testCursorInterface() is high (> 15) (gocyclo)
    • ucd/rpcwebsocket.go
    • Line 1291: warning: cyclomatic complexity 84 of function (*wsClient).inHandler() is high (> 15) (gocyclo)
    • Line 494: warning: cyclomatic complexity 37 of function (*wsNotificationManager).notificationHandler() is high (> 15) (gocyclo)
    • ucd/blockchain/chainio.go
    • Line 1531: warning: cyclomatic complexity 32 of function (*BlockChain).initChainState() is high (> 15) (gocyclo)
    • Line 997: warning: cyclomatic complexity 17 of function deserializeUtxoEntry() is high (> 15) (gocyclo)
    • ucd/peer/peer.go
    • Line 1268: warning: cyclomatic complexity 61 of function (*Peer).inHandler() is high (> 15) (gocyclo)
    • Line 1119: warning: cyclomatic complexity 26 of function (*Peer).stallHandler() is high (> 15) (gocyclo)
    • Line 1489: warning: cyclomatic complexity 23 of function (*Peer).queueHandler() is high (> 15) (gocyclo)
    • ucd/peer/log.go
    • Line 142: warning: cyclomatic complexity 21 of function messageSummary() is high (> 15) (gocyclo)
    • ucd/blockchain/validate.go
    • Line 2710: warning: cyclomatic complexity 47 of function (*BlockChain).checkTransactionsAndConnect() is high (> 15) (gocyclo)
    • Line 2111: warning: cyclomatic complexity 38 of function CheckTransactionInputs() is high (> 15) (gocyclo)
    • Line 611: warning: cyclomatic complexity 38 of function checkBlockSanity() is high (> 15) (gocyclo)
    • Line 2971: warning: cyclomatic complexity 35 of function (*BlockChain).checkConnectBlock() is high (> 15) (gocyclo)
    • Line 245: warning: cyclomatic complexity 31 of function CheckTransactionSanity() is high (> 15) (gocyclo)
    • Line 920: warning: cyclomatic complexity 25 of function (*BlockChain).checkBlockHeaderPositional() is high (> 15) (gocyclo)
    • Line 1355: warning: cyclomatic complexity 16 of function (*BlockChain).checkBlockContext() is high (> 15) (gocyclo)
    • ucd/cpuminer.go
    • Line 231: warning: cyclomatic complexity 16 of function (*CPUMiner).solveBlock() is high (> 15) (gocyclo)
    • ucd/blockchain/difficulty.go
    • Line 919: warning: cyclomatic complexity 33 of function (*BlockChain).estimateNextStakeDifficultyV1() is high (> 15) (gocyclo)
    • Line 437: warning: cyclomatic complexity 29 of function (*BlockChain).calcNextRequiredStakeDifficultyV1() is high (> 15) (gocyclo)
    • Line 230: warning: cyclomatic complexity 16 of function (*BlockChain).calcNextRequiredDifficulty() is high (> 15) (gocyclo)
    • ucd/blockchain/chain.go
    • Line 1064: warning: cyclomatic complexity 27 of function (*BlockChain).reorganizeChainInternal() is high (> 15) (gocyclo)
    • Line 708: warning: cyclomatic complexity 16 of function (*BlockChain).connectBlock() is high (> 15) (gocyclo)
    • Line 1420: warning: cyclomatic complexity 16 of function (*BlockChain).connectBestChain() is high (> 15) (gocyclo)
    • ucd/mempool/txlockpool.go
    • Line 415: warning: cyclomatic complexity 56 of function (*TxPool).checkFlashTxWithMem() is high (> 15) (gocyclo)
    • Line 327: warning: cyclomatic complexity 17 of function (*TxPool).maybeAddtoLockPool() is high (> 15) (gocyclo)
    • ucd/config.go
    • Line 483: warning: cyclomatic complexity 121 of function loadConfig() is high (> 15) (gocyclo)
    • ucd/server.go
    • Line 2565: warning: cyclomatic complexity 61 of function newServer() is high (> 15) (gocyclo)
    • Line 2244: warning: cyclomatic complexity 21 of function (*server).rebroadcastHandler() is high (> 15) (gocyclo)
    • Line 1753: warning: cyclomatic complexity 21 of function (*server).handleQuery() is high (> 15) (gocyclo)
    • Line 1990: warning: cyclomatic complexity 19 of function (*server).peerHandler() is high (> 15) (gocyclo)
    • Line 814: warning: cyclomatic complexity 16 of function (*serverPeer).OnGetData() is high (> 15) (gocyclo)
    • ucd/addrmgr/addrmanager.go
    • Line 459: warning: cyclomatic complexity 20 of function (*AddrManager).deserializePeers() is high (> 15) (gocyclo)
    • Line 1018: warning: cyclomatic complexity 20 of function getReachabilityFrom() is high (> 15) (gocyclo)
    • ucd/blockmanager.go
    • Line 1992: warning: cyclomatic complexity 55 of function (*blockManager).handleBlockchainNotification() is high (> 15) (gocyclo)
    • Line 1522: warning: cyclomatic complexity 40 of function (*blockManager).handleInvMsg() is high (> 15) (gocyclo)
    • Line 1739: warning: cyclomatic complexity 37 of function (*blockManager).blockHandler() is high (> 15) (gocyclo)
    • Line 1097: warning: cyclomatic complexity 30 of function (*blockManager).handleBlockMsg() is high (> 15) (gocyclo)
    • Line 2516: warning: cyclomatic complexity 27 of function (*blockManager).requestFromPeer() is high (> 15) (gocyclo)
    • Line 931: warning: cyclomatic complexity 25 of function (*blockManager).checkBlockForHiddenVotes() is high (> 15) (gocyclo)
    • Line 800: warning: cyclomatic complexity 20 of function (*blockManager).handleFlashTxVoteMsg() is high (> 15) (gocyclo)
    • ucd/rpcserver.go
    • Line 6392: warning: cyclomatic complexity 40 of function (*rpcServer).jsonRPCRead() is high (> 15) (gocyclo)
    • Line 4792: warning: cyclomatic complexity 40 of function handleSearchRawTransactions() is high (> 15) (gocyclo)
    • Line 743: warning: cyclomatic complexity 39 of function handleCreateRawSStx() is high (> 15) (gocyclo)
    • Line 2860: warning: cyclomatic complexity 37 of function chainErrToGBTErrString() is high (> 15) (gocyclo)
    • Line 627: warning: cyclomatic complexity 27 of function handleCreateRawTransaction() is high (> 15) (gocyclo)
    • Line 2459: warning: cyclomatic complexity 26 of function (*gbtWorkState).blockTemplateResult() is high (> 15) (gocyclo)
    • Line 952: warning: cyclomatic complexity 25 of function handleCreateRawSSRtx() is high (> 15) (gocyclo)
    • Line 5203: warning: cyclomatic complexity 23 of function handleSendFlashTxVote() is high (> 15) (gocyclo)
    • Line 524: warning: cyclomatic complexity 19 of function handleNode() is high (> 15) (gocyclo)
    • Line 1829: warning: cyclomatic complexity 18 of function handleGetBlock() is high (> 15) (gocyclo)
    • Line 4632: warning: cyclomatic complexity 18 of function createVinListPrevOut() is high (> 15) (gocyclo)
    • Line 3435: warning: cyclomatic complexity 17 of function handleGetRawMempool() is high (> 15) (gocyclo)
    • Line 6720: warning: cyclomatic complexity 17 of function newRPCServer() is high (> 15) (gocyclo)
    • Line 3521: warning: cyclomatic complexity 16 of function handleGetRawTransaction() is high (> 15) (gocyclo)
    • Line 2780: warning: cyclomatic complexity 16 of function handleGetBlockTemplateRequest() is high (> 15) (gocyclo)

golint94%

Golint is a linter for Go source code.

    • ucd/rpcclient/rawtransactions.go
    • Line 394: warning: exported type FutureSendFlashRawTransactionResult should have comment or be unexported (golint)
    • Line 395: warning: exported type FutureSendFlashTxVoteResult should have comment or be unexported (golint)
    • Line 415: warning: exported method FutureSendFlashRawTransactionResult.Receive should have comment or be unexported (golint)
    • Line 432: warning: exported method FutureSendFlashTxVoteResult.Receive should have comment or be unexported (golint)
    • Line 461: warning: exported method Client.SendFlashRawTransactionAsync should have comment or be unexported (golint)
    • Line 475: warning: exported method Client.SendFlashTxVoteAsync should have comment or be unexported (golint)
    • Line 495: warning: exported method Client.SendFlashRawTransaction should have comment or be unexported (golint)
    • Line 498: warning: exported method Client.SendFlashTxVote should have comment or be unexported (golint)
    • ucd/txscript/opcode.go
    • Line 49: warning: don't use underscores in Go names; const OP_0 should be OP0 (golint)
    • Line 131: warning: don't use underscores in Go names; const OP_1 should be OP1 (golint)
    • Line 133: warning: don't use underscores in Go names; const OP_2 should be OP2 (golint)
    • Line 134: warning: don't use underscores in Go names; const OP_3 should be OP3 (golint)
    • Line 135: warning: don't use underscores in Go names; const OP_4 should be OP4 (golint)
    • Line 136: warning: don't use underscores in Go names; const OP_5 should be OP5 (golint)
    • Line 137: warning: don't use underscores in Go names; const OP_6 should be OP6 (golint)
    • Line 138: warning: don't use underscores in Go names; const OP_7 should be OP7 (golint)
    • Line 139: warning: don't use underscores in Go names; const OP_8 should be OP8 (golint)
    • Line 140: warning: don't use underscores in Go names; const OP_9 should be OP9 (golint)
    • ucd/wire/msgflashtxvote.go
    • Line 10: warning: exported type MsgFlashTxVote should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMsgFlashTxVote should have comment or be unexported (golint)
    • Line 22: warning: exported method MsgFlashTxVote.Hash should have comment or be unexported (golint)
    • Line 27: warning: exported method MsgFlashTxVote.BtcDecode should have comment or be unexported (golint)
    • Line 43: warning: exported method MsgFlashTxVote.BtcEncode should have comment or be unexported (golint)
    • Line 56: warning: exported method MsgFlashTxVote.Command should have comment or be unexported (golint)
    • Line 60: warning: exported method MsgFlashTxVote.MaxPayloadLength should have comment or be unexported (golint)
    • Line 83: warning: exported method MsgFlashTxVote.SerializeSize should have comment or be unexported (golint)
    • Line 87: warning: exported method MsgFlashTxVote.Serialize should have comment or be unexported (golint)
    • Line 94: warning: comment on exported method MsgFlashTxVote.MustSerialize should be of the form "MustSerialize ..." (golint)
    • Line 104: warning: exported method MsgFlashTxVote.Deserialize should have comment or be unexported (golint)
    • ucd/chaincfg/chainhash/x19rhash/x19r.go
    • Line 15: warning: comment on exported const X19HashSize should be of the form "X19HashSize ..." (golint)
    • Line 18: warning: exported function X19r_Sum256 should have comment or be unexported (golint)
    • Line 18: warning: don't use underscores in Go names; func X19r_Sum256 should be X19rSum256 (golint)
    • Line 34: warning: exported function X19r_Sum256B should have comment or be unexported (golint)
    • Line 34: warning: don't use underscores in Go names; func X19r_Sum256B should be X19rSum256B (golint)
    • ucd/lru/cache.go
    • Line 96: warning: comment on exported function NewCache should be of the form "NewCache ..." (golint)
    • ucd/rpc/jsonrpc/types/chainsvrcmds.go
    • Line 1020: warning: exported type SendFlashRawTransactionCmd should have comment or be unexported (golint)
    • Line 1025: warning: exported type SendFlashTxVoteCmd should have comment or be unexported (golint)
    • Line 1028: warning: exported type GetTxlockPoolInfoCmd should have comment or be unexported (golint)
    • Line 1030: warning: exported function NewGetTxlockPoolInfoCmd should have comment or be unexported (golint)
    • Line 1034: warning: exported type FetchPendingLockTxCmd should have comment or be unexported (golint)
    • Line 1038: warning: exported function NewFetchPendingLockTxCmd should have comment or be unexported (golint)
    • Line 1058: warning: exported function NewSendFlashRawTransactionCmd should have comment or be unexported (golint)
    • Line 1065: warning: exported function NewSendFlashTxVoteCmd should have comment or be unexported (golint)
    • ucd/ucutil/flashtx.go
    • Line 13: warning: exported type FlashTxVote should have comment or be unexported (golint)
    • Line 17: warning: exported function NewFlashTxVote should have comment or be unexported (golint)
    • Line 23: warning: exported method FlashTxVote.Hash should have comment or be unexported (golint)
    • Line 27: warning: exported method FlashTxVote.MsgFlashTxVote should have comment or be unexported (golint)
    • Line 31: warning: exported method FlashTxVote.GetPubKey should have comment or be unexported (golint)
    • Line 35: warning: exported type FlashTx should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method FlashTx.MsgFlashTx should be of the form "MsgFlashTx ..." (golint)
    • Line 45: warning: exported function NewFlashTx should have comment or be unexported (golint)
    • Line 56: warning: exported function NewFlashTxFromTx should have comment or be unexported (golint)
    • ucd/wire/msggetlockpoolstate.go
    • Line 10: warning: comment on exported type MsgGetLockPoolState should be of the form "MsgGetLockPoolState ..." (with optional leading article) (golint)
    • Line 39: warning: comment on exported function NewMsgGetLockPoolState should be of the form "NewMsgGetLockPoolState ..." (golint)
    • ucd/rpcclient/wallet.go
    • Line 466: warning: comment on exported type FutureFlashSendToAddressResult should be of the form "FutureFlashSendToAddressResult ..." (with optional leading article) (golint)
    • Line 499: warning: comment on exported method Client.FlashSendToAddress should be of the form "FlashSendToAddress ..." (golint)
    • Line 545: warning: comment on exported method Client.FlashSendToAddressCommentAsync should be of the form "FlashSendToAddressCommentAsync ..." (golint)
    • Line 560: warning: comment on exported method Client.FlashSendToAddressComment should be of the form "FlashSendToAddressComment ..." (golint)
    • ucd/wire/msglockpoolstate.go
    • Line 15: warning: comment on exported const MaxFlashTx should be of the form "MaxFlashTx ..." (golint)
    • Line 18: warning: exported const MaxFlashTxVote should have comment or be unexported (golint)
    • Line 20: warning: comment on exported type MsgLockPoolState should be of the form "MsgLockPoolState ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported method MsgLockPoolState.AddFlashTxHash should be of the form "AddFlashTxHash ..." (golint)
    • Line 42: warning: comment on exported method MsgLockPoolState.AddFlashTxVoteHash should be of the form "AddFlashTxVoteHash ..." (golint)
    • Line 167: warning: comment on exported function NewMsgLockPoolState should be of the form "NewMsgLockPoolState ..." (golint)
    • ucd/rpc/jsonrpc/types/chainsvrwscmds.go
    • Line 74: warning: exported type NotifyNewFlashTxCmd should have comment or be unexported (golint)
    • Line 75: warning: exported type StopNotifyNewFlashTxCmd should have comment or be unexported (golint)
    • Line 77: warning: exported function NewNotifyNewFlashTxCmd should have comment or be unexported (golint)
    • Line 80: warning: exported function NewStopNotifyNewFlashTxCmd should have comment or be unexported (golint)
    • ucd/mempool/txlockpool.go
    • Line 23: warning: exported type FlashTxDesc should have comment or be unexported (golint)
    • Line 47: warning: exported method TxPool.AppendFlashTxVote should have comment or be unexported (golint)
    • Line 61: warning: exported method TxPool.GetFlashTxDesc should have comment or be unexported (golint)
    • Line 68: warning: error should be the last type when returning multiple items (golint)
    • Line 68: warning: exported method TxPool.ProcessFlashTxVote should have comment or be unexported (golint)
    • Line 75: warning: error should be the last type when returning multiple items (golint)
    • Line 93: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 104: warning: exported method TxPool.ModifyFlashTxHeight should have comment or be unexported (golint)
    • Line 111: warning: exported method TxPool.RemoveConfirmedFlashTx should have comment or be unexported (golint)
    • Line 154: warning: exported method TxPool.IsFlashTxExist should have comment or be unexported (golint)
    • Line 167: warning: exported method TxPool.IsFlashTxExistAndVoted should have comment or be unexported (golint)
    • Line 189: warning: exported method TxPool.TxLockPoolInfo should have comment or be unexported (golint)
    • Line 207: warning: exported method TxPool.FetchLockPoolState should have comment or be unexported (golint)
    • Line 230: warning: comment on exported method TxPool.FetchPendingLockTx should be of the form "FetchPendingLockTx ..." (golint)
    • Line 255: warning: comment on exported method TxPool.CheckBlkConflictWithTxLockPool should be of the form "CheckBlkConflictWithTxLockPool ..." (golint)
    • Line 283: warning: comment on exported method TxPool.RemoveFlashTxDoubleSpends should be of the form "RemoveFlashTxDoubleSpends ..." (golint)
    • Line 320: warning: exported method TxPool.MayBeAddToLockPool should have comment or be unexported (golint)
    • Line 765: warning: exported method TxPool.FetchFlashTx should have comment or be unexported (golint)
    • Line 788: warning: exported method TxPool.FetchFlashTxVote should have comment or be unexported (golint)
    • ucd/rpcserver.go
    • Line 5156: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 5161: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • ucd/rpcclient/notify.go
    • Line 1253: warning: exported type FutureNotifyNewFlashTxResult should have comment or be unexported (golint)
    • Line 1262: warning: exported method FutureNotifyNewFlashTxResult.Receive should have comment or be unexported (golint)
    • Line 1310: warning: exported method Client.NotifyNewFlashTx should have comment or be unexported (golint)
    • Line 1314: warning: exported method Client.NotifyNewFlashTxAsync should have comment or be unexported (golint)
    • ucd/wire/msgflashtx.go
    • Line 6: warning: exported type MsgFlashTx should have comment or be unexported (golint)
    • Line 10: warning: exported function NewMsgFlashTx should have comment or be unexported (golint)
    • Line 16: warning: exported function NewMsgFlashTxFromMsgTx should have comment or be unexported (golint)
    • Line 23: warning: exported method MsgFlashTx.Command should have comment or be unexported (golint)
    • ucd/rpc/jsonrpc/types/chainsvrwsntfns.go
    • Line 56: warning: exported const NewFlashTxNtfnMethod should have comment (or a comment on this block) or be unexported (golint)
    • Line 178: warning: exported type FlashTxNtfn should have comment or be unexported (golint)
    • Line 184: warning: exported type FlashTxVoteNtfn should have comment or be unexported (golint)
    • Line 192: warning: exported function NewFlashTxNtfn should have comment or be unexported (golint)
    • Line 196: warning: exported function NewFlashTxVoteNtfn should have comment or be unexported (golint)
    • ucd/txscript/script.go
    • Line 155: warning: exported function IsFlashTx should have comment or be unexported (golint)
    • Line 259: warning: exported function GetEvmData should have comment or be unexported (golint)
    • Line 286: warning: exported function HaveFlashTxTag should have comment or be unexported (golint)
    • Line 339: warning: comment on exported function DisasmString should be of the form "DisasmString ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!