Preparing report...

Report for github.com/classzz/classzz

A+    Excellent!    Found 94 issues across 424 files

Tweet

gofmt98%

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!


gocyclo84%

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.

    • classzz/rpcwebsocket.go
    • Line 2333: warning: cyclomatic complexity 38 of function handleRescan() is high (> 15) (gocyclo)
    • Line 482: warning: cyclomatic complexity 30 of function (*wsNotificationManager).notificationHandler() is high (> 15) (gocyclo)
    • Line 1306: warning: cyclomatic complexity 27 of function (*wsClient).inHandler() is high (> 15) (gocyclo)
    • Line 2006: warning: cyclomatic complexity 22 of function rescanBlock() is high (> 15) (gocyclo)
    • classzz/blockchain/validate.go
    • Line 418: warning: cyclomatic complexity 38 of function (*BlockChain).CheckBlockCrossTx() is high (> 15) (gocyclo)
    • Line 1338: warning: cyclomatic complexity 25 of function (*BlockChain).checkConnectBlock() is high (> 15) (gocyclo)
    • Line 254: warning: cyclomatic complexity 19 of function CheckTransactionSanity() is high (> 15) (gocyclo)
    • classzz/blockchain/chainio.go
    • Line 519: warning: cyclomatic complexity 27 of function dbStateTx() is high (> 15) (gocyclo)
    • Line 1605: warning: cyclomatic complexity 22 of function (*BlockChain).initChainState() is high (> 15) (gocyclo)
    • classzz/blockchain/chain.go
    • Line 2243: warning: cyclomatic complexity 40 of function New() is high (> 15) (gocyclo)
    • Line 951: warning: cyclomatic complexity 32 of function (*BlockChain).reorganizeChain() is high (> 15) (gocyclo)
    • Line 1215: warning: cyclomatic complexity 25 of function (*BlockChain).connectBestChain() is high (> 15) (gocyclo)
    • Line 675: warning: cyclomatic complexity 18 of function (*BlockChain).connectBlock() is high (> 15) (gocyclo)
    • classzz/txscript/engine.go
    • Line 482: warning: cyclomatic complexity 27 of function (*Engine).checkSignatureEncoding() is high (> 15) (gocyclo)
    • Line 768: warning: cyclomatic complexity 17 of function NewEngine() is high (> 15) (gocyclo)
    • Line 321: warning: cyclomatic complexity 16 of function (*Engine).Step() is high (> 15) (gocyclo)
    • classzz/txscript/opcode.go
    • Line 2378: warning: cyclomatic complexity 39 of function opcodeCheckMultiSig() is high (> 15) (gocyclo)
    • Line 2226: warning: cyclomatic complexity 21 of function opcodeCheckSig() is high (> 15) (gocyclo)
    • Line 2611: warning: cyclomatic complexity 20 of function opcodeCheckDataSig() is high (> 15) (gocyclo)
    • Line 677: warning: cyclomatic complexity 16 of function (*parsedOpcode).checkMinimalDataPush() is high (> 15) (gocyclo)
    • classzz/cross/validate.go
    • Line 498: warning: cyclomatic complexity 30 of function (*CommitteeVerify).verifyConvertConfirmEthereumTypeTx() is high (> 15) (gocyclo)
    • Line 361: warning: cyclomatic complexity 28 of function (*CommitteeVerify).verifyConvertEthereumTypeTx() is high (> 15) (gocyclo)
    • Line 43: warning: cyclomatic complexity 24 of function (*CommitteeVerify).VerifyBeaconRegistrationTx() is high (> 15) (gocyclo)
    • Line 197: warning: cyclomatic complexity 18 of function (*CommitteeVerify).VerifyMortgageTx() is high (> 15) (gocyclo)
    • classzz/netsync/manager_test.go
    • Line 244: warning: cyclomatic complexity 51 of function TestBlockchainSync() is high (> 15) (gocyclo)
    • Line 512: warning: cyclomatic complexity 41 of function TestMempoolSync() is high (> 15) (gocyclo)
    • Line 128: warning: cyclomatic complexity 21 of function TestPeerConnections() is high (> 15) (gocyclo)
    • classzz/addrmgr/addrmanager.go
    • Line 442: warning: cyclomatic complexity 22 of function (*AddrManager).deserializePeers() is high (> 15) (gocyclo)
    • Line 1022: warning: cyclomatic complexity 20 of function getReachabilityFrom() is high (> 15) (gocyclo)
    • classzz/txscript/standard.go
    • Line 992: warning: cyclomatic complexity 29 of function ExtractAtomicSwapDataPushes() is high (> 15) (gocyclo)
    • Line 858: warning: cyclomatic complexity 19 of function ExtractPkScriptAddrs() is high (> 15) (gocyclo)
    • classzz/database/ffldb/interface_test.go
    • Line 1688: warning: cyclomatic complexity 39 of function testClosedTxInterface() is high (> 15) (gocyclo)
    • Line 909: warning: cyclomatic complexity 35 of function testMetadataTxInterface() is high (> 15) (gocyclo)
    • Line 1221: warning: cyclomatic complexity 35 of function testFetchBlockIO() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 34 of function testBucketInterface() is high (> 15) (gocyclo)
    • Line 1512: warning: cyclomatic complexity 30 of function testBlockIOTxInterface() is high (> 15) (gocyclo)
    • Line 642: warning: cyclomatic complexity 29 of function testMetadataManualTxInterface() is high (> 15) (gocyclo)
    • Line 1996: warning: cyclomatic complexity 24 of function testConcurrecy() is high (> 15) (gocyclo)
    • Line 263: warning: cyclomatic complexity 21 of function testCursorInterface() is high (> 15) (gocyclo)
    • classzz/rpcserver.go
    • Line 3173: warning: cyclomatic complexity 45 of function chainErrToGBTErrString() is high (> 15) (gocyclo)
    • Line 4935: warning: cyclomatic complexity 39 of function handleSearchRawTransactions() is high (> 15) (gocyclo)
    • Line 651: warning: cyclomatic complexity 29 of function handleBeaconRegistration() is high (> 15) (gocyclo)
    • Line 818: warning: cyclomatic complexity 28 of function handleAddBeaconPledge() is high (> 15) (gocyclo)
    • Line 1127: warning: cyclomatic complexity 28 of function handleAddMortgage() is high (> 15) (gocyclo)
    • Line 973: warning: cyclomatic complexity 28 of function handleMortgage() is high (> 15) (gocyclo)
    • Line 1670: warning: cyclomatic complexity 26 of function handleCasting() is high (> 15) (gocyclo)
    • Line 1537: warning: cyclomatic complexity 25 of function handleConvertConfirm() is high (> 15) (gocyclo)
    • Line 1403: warning: cyclomatic complexity 25 of function handleConvert() is high (> 15) (gocyclo)
    • Line 1281: warning: cyclomatic complexity 23 of function handleUpdateCoinbaseAll() is high (> 15) (gocyclo)
    • Line 546: warning: cyclomatic complexity 21 of function handleCreateRawTransaction() is high (> 15) (gocyclo)
    • Line 428: warning: cyclomatic complexity 19 of function handleNode() is high (> 15) (gocyclo)
    • Line 5847: warning: cyclomatic complexity 19 of function (*rpcServer).jsonRPCRead() is high (> 15) (gocyclo)
    • Line 4413: warning: cyclomatic complexity 19 of function handleGetTxOutProof() is high (> 15) (gocyclo)
    • Line 2131: warning: cyclomatic complexity 16 of function handleGetAddedNodeInfo() is high (> 15) (gocyclo)
    • Line 4798: warning: cyclomatic complexity 16 of function createVinListPrevOut() is high (> 15) (gocyclo)
    • Line 4188: warning: cyclomatic complexity 16 of function handleGetRawTransaction() is high (> 15) (gocyclo)
    • classzz/czzrpc/server.go
    • Line 1102: warning: cyclomatic complexity 26 of function (*GrpcServer).SubscribeTransactionStream() is high (> 15) (gocyclo)
    • Line 995: warning: cyclomatic complexity 21 of function (*GrpcServer).SubscribeTransactions() is high (> 15) (gocyclo)
    • classzz/peer/peer.go
    • Line 1429: warning: cyclomatic complexity 75 of function (*Peer).inHandler() is high (> 15) (gocyclo)
    • Line 1709: warning: cyclomatic complexity 28 of function (*Peer).queueHandler() is high (> 15) (gocyclo)
    • Line 1280: warning: cyclomatic complexity 27 of function (*Peer).stallHandler() is high (> 15) (gocyclo)
    • classzz/wire/msgtx.go
    • Line 547: warning: cyclomatic complexity 34 of function (*MsgTx).CzzWitnessDecode() is high (> 15) (gocyclo)
    • Line 392: warning: cyclomatic complexity 19 of function (*MsgTx).CzzDecode() is high (> 15) (gocyclo)
    • classzz/wire/common.go
    • Line 191: warning: cyclomatic complexity 34 of function readElement() is high (> 15) (gocyclo)
    • Line 347: warning: cyclomatic complexity 30 of function writeElement() is high (> 15) (gocyclo)
    • classzz/txscript/reference_test.go
    • Line 184: warning: cyclomatic complexity 31 of function parseExpectedResult() is high (> 15) (gocyclo)
    • Line 451: warning: cyclomatic complexity 26 of function TestTxInvalidTests() is high (> 15) (gocyclo)
    • Line 607: warning: cyclomatic complexity 26 of function TestTxValidTests() is high (> 15) (gocyclo)
    • Line 295: warning: cyclomatic complexity 20 of function testScripts() is high (> 15) (gocyclo)
    • Line 76: warning: cyclomatic complexity 18 of function parseShortForm() is high (> 15) (gocyclo)
    • Line 138: warning: cyclomatic complexity 18 of function parseScriptFlags() is high (> 15) (gocyclo)
    • classzz/server.go
    • Line 3039: warning: cyclomatic complexity 42 of function newServer() is high (> 15) (gocyclo)
    • Line 2531: warning: cyclomatic complexity 22 of function (*server).peerHandler() is high (> 15) (gocyclo)
    • Line 2294: warning: cyclomatic complexity 21 of function (*server).handleQuery() is high (> 15) (gocyclo)
    • Line 3414: warning: cyclomatic complexity 20 of function initListeners() is high (> 15) (gocyclo)
    • Line 1151: warning: cyclomatic complexity 18 of function (*serverPeer).OnGetCFHeaders() is high (> 15) (gocyclo)
    • Line 2125: warning: cyclomatic complexity 17 of function (*server).handleRelayInvMsg() is high (> 15) (gocyclo)
    • Line 1268: warning: cyclomatic complexity 17 of function (*serverPeer).OnGetCFCheckpt() is high (> 15) (gocyclo)
    • classzz/netsync/manager.go
    • Line 1147: warning: cyclomatic complexity 34 of function (*SyncManager).handleInvMsg() is high (> 15) (gocyclo)
    • Line 676: warning: cyclomatic complexity 29 of function (*SyncManager).handleBlockMsg() is high (> 15) (gocyclo)
    • Line 1349: warning: cyclomatic complexity 26 of function (*SyncManager).blockHandler() is high (> 15) (gocyclo)
    • Line 954: warning: cyclomatic complexity 18 of function (*SyncManager).handleHeadersMsg() is high (> 15) (gocyclo)
    • Line 320: warning: cyclomatic complexity 18 of function (*SyncManager).startSync() is high (> 15) (gocyclo)
    • classzz/mempool/mempool.go
    • Line 748: warning: cyclomatic complexity 49 of function (*TxPool).maybeAcceptTransaction() is high (> 15) (gocyclo)
    • Line 1072: warning: cyclomatic complexity 18 of function (*TxPool).validateStateCrossTx() is high (> 15) (gocyclo)

golint90%

Golint is a linter for Go source code.

    • classzz/chaincfg/chainhash/hashfuncs.go
    • Line 13: warning: exported const CZZDataSize should have comment or be unexported (golint)
    • Line 14: warning: exported const TBLSize should have comment or be unexported (golint)
    • Line 16: warning: exported type CZZTBL should have comment or be unexported (golint)
    • Line 52: warning: exported function DoubleHashH should have comment or be unexported (golint)
    • Line 151: warning: exported function BigToCompact should have comment or be unexported (golint)
    • Line 189: warning: exported function CompactToBig should have comment or be unexported (golint)
    • Line 350: warning: exported function HashCZZ should have comment or be unexported (golint)
    • classzz/mempool/mempool.go
    • Line 449: warning: exported method TxPool.IsTransactionInConvertPool should have comment or be unexported (golint)
    • Line 1109: 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)
    • classzz/wire/msgtx.go
    • Line 543: warning: comment on exported method MsgTx.CzzWitnessDecode should be of the form "CzzWitnessDecode ..." (golint)
    • Line 805: warning: exported method MsgTx.DeserializeWitness should have comment or be unexported (golint)
    • classzz/txscript/pkscript.go
    • Line 203: warning: exported function ComputePk should have comment or be unexported (golint)
    • Line 226: warning: comment on exported function ComputeWitnessPk should be of the form "ComputeWitnessPk ..." (golint)
    • classzz/blockchain/validate.go
    • Line 376: warning: exported method BlockChain.CheckBeacon should have comment or be unexported (golint)
    • Line 418: warning: exported method BlockChain.CheckBlockCrossTx should have comment or be unexported (golint)
    • Line 494: 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 1189: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 1194: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 1198: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 1495: 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 1640: warning: exported type KeepedInfoSummay should have comment or be unexported (golint)
    • Line 1777: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • classzz/rlp/encode.go
    • Line 12: warning: comment on exported var EmptyString should be of the form "EmptyString ..." (golint)
    • Line 15: warning: exported var EmptyList should have comment or be unexported (golint)
    • classzz/consensus/consensus.go
    • Line 10: warning: exported type CzzConsensusParam should have comment or be unexported (golint)
    • Line 15: warning: exported type MiningParam should have comment or be unexported (golint)
    • Line 31: warning: exported function MineBlock should have comment or be unexported (golint)
    • Line 55: warning: exported function VerifyBlockSeal should have comment or be unexported (golint)
    • classzz/chaincfg/chainhash/hash.go
    • Line 10: warning: exported const HashLen should have comment or be unexported (golint)
    • Line 22: warning: exported type Hash64 should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method Hash64.ReverseBytes should be of the form "ReverseBytes ..." (golint)
    • Line 174: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • classzz/cross/czzutils.go
    • Line 17: warning: exported var ErrInvalidParam should have comment or be unexported (golint)
    • Line 32: warning: exported var MaxWhiteListCount should have comment or be unexported (golint)
    • Line 47: warning: exported const LhAssetBTC should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported type BurnItem should have comment or be unexported (golint)
    • Line 83: warning: exported type BurnInfos should have comment or be unexported (golint)
    • Line 101: warning: exported method BurnInfos.GetAllBurnedAmountByOutside should have comment or be unexported (golint)
    • Line 168: warning: exported type TimeOutBurnInfo should have comment or be unexported (golint)
    • Line 181: warning: exported type TypeTimeOutBurnInfo should have comment or be unexported (golint)
    • Line 182: warning: exported type UserTimeOutBurnInfo should have comment or be unexported (golint)
    • Line 184: warning: exported type LHPunishedItem should have comment or be unexported (golint)
    • Line 188: warning: exported type LHPunishedItems should have comment or be unexported (golint)
    • Line 192: warning: exported type WhiteUnit should have comment or be unexported (golint)
    • Line 202: warning: exported type BaseAmountUint should have comment or be unexported (golint)
    • Line 207: warning: exported type EnAssetItem should have comment or be unexported (golint)
    • Line 208: warning: exported type FreeQuotaItem should have comment or be unexported (golint)
    • Line 210: warning: exported type BeaconAddressInfo should have comment or be unexported (golint)
    • Line 225: warning: exported type AddBeaconPledge should have comment or be unexported (golint)
    • Line 273: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 319: warning: comment on exported type EntangleEntity should be of the form "EntangleEntity ..." (with optional leading article) (golint)
    • Line 332: warning: exported type EntangleEntitys should have comment or be unexported (golint)
    • Line 333: warning: exported type UserEntangleInfos should have comment or be unexported (golint)
    • Line 334: warning: exported type StoreUserItme should have comment or be unexported (golint)
    • Line 338: warning: exported type SortStoreUserItems should have comment or be unexported (golint)
    • Line 362: warning: receiver name es should be consistent with previous receiver name uinfos for UserEntangleInfos (golint)
    • Line 369: warning: exported method UserEntangleInfos.DecodeRLP should have comment or be unexported (golint)
    • Line 369: warning: receiver name es should be consistent with previous receiver name uinfos for UserEntangleInfos (golint)
    • Line 380: warning: exported method UserEntangleInfos.EncodeRLP should have comment or be unexported (golint)
    • Line 380: warning: receiver name es should be consistent with previous receiver name uinfos for UserEntangleInfos (golint)
    • Line 396: warning: comment on exported method EntangleEntity.GetValidRedeemAmount should be of the form "GetValidRedeemAmount ..." (golint)
    • Line 507: warning: receiver name u should be consistent with previous receiver name uinfos for UserEntangleInfos (golint)
    • Line 523: warning: exported type BurnProofInfo should have comment or be unexported (golint)
    • Line 532: warning: comment on exported function ValidAssetType should be of the form "ValidAssetType ..." (golint)
    • Line 540: warning: exported function ValidPK should have comment or be unexported (golint)
    • Line 547: warning: exported function ComputeDiff should have comment or be unexported (golint)
    • Line 548: warning: don't use underscores in Go names; var found_t should be foundT (golint)
    • Line 597: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 603: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 609: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • classzz/rpcclient/chain.go
    • Line 108: warning: exported type DogecoinMsgBlock should have comment or be unexported (golint)
    • Line 112: warning: comment on exported type FutureGetDogecoinBlockResult should be of the form "FutureGetDogecoinBlockResult ..." (with optional leading article) (golint)
    • Line 134: warning: comment on exported method Client.GetDogecoinBlockAsync should be of the form "GetDogecoinBlockAsync ..." (golint)
    • Line 145: warning: exported method Client.GetDogecoinBlock should have comment or be unexported (golint)
    • Line 387: warning: exported type BurnTxInfo should have comment or be unexported (golint)
    • Line 395: warning: comment on exported type FutureGetBurnTxInfoResult should be of the form "FutureGetBurnTxInfoResult ..." (with optional leading article) (golint)
    • Line 416: warning: comment on exported type FutureGetStateInfoResult should be of the form "FutureGetStateInfoResult ..." (with optional leading article) (golint)
    • Line 437: warning: comment on exported method Client.GetStateInfoAsync should be of the form "GetStateInfoAsync ..." (golint)
    • Line 447: warning: comment on exported method Client.GetStateInfo should be of the form "GetStateInfo ..." (golint)
    • Line 453: warning: comment on exported type FutureGetConvertItemsResult should be of the form "FutureGetConvertItemsResult ..." (with optional leading article) (golint)
    • Line 474: warning: comment on exported method Client.GetConvertItemsAsync should be of the form "GetConvertItemsAsync ..." (golint)
    • Line 484: warning: comment on exported method Client.GetConvertItems should be of the form "GetConvertItems ..." (golint)
    • Line 490: warning: comment on exported type FutureGetConvertConfirmItemsResult should be of the form "FutureGetConvertConfirmItemsResult ..." (with optional leading article) (golint)
    • Line 511: warning: comment on exported method Client.GetConvertConfirmItems should be of the form "GetConvertConfirmItems ..." (golint)
    • Line 517: warning: exported method Client.GetConvertConfirmItemsAsync should have comment or be unexported (golint)
    • Line 522: warning: comment on exported type FutureGetBeaconBurnInfoResult should be of the form "FutureGetBeaconBurnInfoResult ..." (with optional leading article) (golint)
    • classzz/cross/czztx.go
    • Line 20: warning: comment on exported const ExpandedTxConvert_Czz should be of the form "ExpandedTxConvert_Czz ..." (golint)
    • Line 21: warning: don't use underscores in Go names; const ExpandedTxConvert_Czz should be ExpandedTxConvertCzz (golint)
    • Line 22: warning: don't use underscores in Go names; const ExpandedTxConvert_ECzz should be ExpandedTxConvertECzz (golint)
    • Line 22: warning: exported const ExpandedTxConvert_ECzz should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; const ExpandedTxConvert_HCzz should be ExpandedTxConvertHCzz (golint)
    • Line 24: warning: don't use underscores in Go names; const ExpandedTxConvert_BCzz should be ExpandedTxConvertBCzz (golint)
    • Line 28: warning: error var NoBeaconRegistration should have name of the form ErrFoo (golint)
    • Line 28: warning: exported var NoBeaconRegistration should have comment or be unexported (golint)
    • Line 29: warning: error var NoAddBeaconPledge should have name of the form ErrFoo (golint)
    • Line 30: warning: error var NoMortgage should have name of the form ErrFoo (golint)
    • Line 31: warning: error var NoAddMortgage should have name of the form ErrFoo (golint)
    • Line 32: warning: error var NoUpdateCoinbaseAll should have name of the form ErrFoo (golint)
    • Line 33: warning: error var NoConvert should have name of the form ErrFoo (golint)
    • Line 34: warning: error var NoConvertConfirm should have name of the form ErrFoo (golint)
    • Line 35: warning: error var NoCasting should have name of the form ErrFoo (golint)
    • Line 37: warning: don't use underscores in Go names; var ExpandedTxEntangle_Doge should be ExpandedTxEntangleDoge (golint)
    • Line 38: warning: don't use underscores in Go names; var ExpandedTxEntangle_Ltc should be ExpandedTxEntangleLtc (golint)
    • Line 49: warning: exported type EntangleItem should have comment or be unexported (golint)
    • Line 55: warning: exported method EntangleItem.Clone should have comment or be unexported (golint)
    • Line 64: warning: comment on exported type EtsInfo should be of the form "EtsInfo ..." (with optional leading article) (golint)
    • Line 70: warning: exported type TuplePubIndex should have comment or be unexported (golint)
    • Line 77: warning: exported type PoolAddrItem should have comment or be unexported (golint)
    • Line 83: warning: exported type PunishedRewardItem should have comment or be unexported (golint)
    • Line 93: warning: exported method PunishedRewardItem.PkScript should have comment or be unexported (golint)
    • Line 106: warning: exported method PunishedRewardItem.EqualPkScript should have comment or be unexported (golint)
    • Line 113: warning: exported method PunishedRewardItem.Change should have comment or be unexported (golint)
    • Line 117: warning: exported type BeaconMergeItem should have comment or be unexported (golint)
    • Line 124: warning: comment on exported type Mortgage should be of the form "Mortgage ..." (with optional leading article) (golint)
    • Line 131: warning: exported type AddMortgage should have comment or be unexported (golint)
    • Line 136: warning: exported type UpdateCoinbaseAll should have comment or be unexported (golint)
    • Line 141: warning: exported type ConvertTxInfo should have comment or be unexported (golint)
    • Line 153: warning: exported type CastingTxInfo should have comment or be unexported (golint)
    • Line 159: warning: exported type ConvertConfirmTxInfo should have comment or be unexported (golint)
    • Line 170: warning: exported method ConvertTxInfo.ToBytes should have comment or be unexported (golint)
    • Line 179: warning: exported method ConvertTxInfo.GetAssetType should have comment or be unexported (golint)
    • Line 183: warning: exported method ConvertTxInfo.GetExtTxHash should have comment or be unexported (golint)
    • Line 187: warning: exported method ConvertConfirmTxInfo.GetAssetType should have comment or be unexported (golint)
    • Line 191: warning: exported method ConvertConfirmTxInfo.GetExtTxHash should have comment or be unexported (golint)
    • Line 195: warning: exported type KeepedItem should have comment or be unexported (golint)
    • Line 200: warning: exported type KeepedAmount should have comment or be unexported (golint)
    • Line 205: warning: exported method KeepedAmount.Serialize should have comment or be unexported (golint)
    • Line 218: warning: exported method KeepedAmount.Parse should have comment or be unexported (golint)
    • Line 238: warning: exported method KeepedAmount.Add should have comment or be unexported (golint)
    • Line 249: warning: exported method KeepedAmount.GetValue should have comment or be unexported (golint)
    • Line 258: warning: exported function IsBeaconRegistrationTx should have comment or be unexported (golint)
    • Line 279: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 316: warning: exported function IsAddBeaconPledgeTx should have comment or be unexported (golint)
    • Line 339: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 376: warning: comment on exported function IsMortgageTx should be of the form "IsMortgageTx ..." (golint)
    • Line 397: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 433: warning: exported function IsAddMortgageTx should have comment or be unexported (golint)
    • Line 456: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 493: warning: exported function IsUpdateCoinbaseAllTx should have comment or be unexported (golint)
    • Line 516: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 551: warning: exported function IsConvertTx should have comment or be unexported (golint)
    • Line 573: warning: exported function IsCastingTx should have comment or be unexported (golint)
    • Line 593: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 621: warning: exported function IsConvertConfirmTx should have comment or be unexported (golint)
    • Line 643: warning: exported function IsSendToZeroAddress should have comment or be unexported (golint)
    • Line 646: 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 652: 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 662: warning: exported function BeaconRegistrationTxFromScript should have comment or be unexported (golint)
    • Line 675: warning: exported function AddBeaconPledgeTxFromScript should have comment or be unexported (golint)
    • Line 685: warning: exported function MortgageFromScript should have comment or be unexported (golint)
    • Line 698: warning: exported function AddMortgageFromScript should have comment or be unexported (golint)
    • Line 708: warning: exported function UpdateBeaconCoinbaseAllTxFromScript should have comment or be unexported (golint)
    • Line 718: warning: exported function ConvertTxFromScript should have comment or be unexported (golint)
    • Line 728: warning: exported function CastingTxFromScript should have comment or be unexported (golint)
    • Line 738: warning: exported function ConvertConfirmTxFromScript should have comment or be unexported (golint)
    • Line 748: warning: exported function GetMaxHeight should have comment or be unexported (golint)
    • Line 758: warning: exported function MakeCoinbaseTxUtxo should have comment or be unexported (golint)
    • Line 787: warning: exported function MakeMergerCoinbaseTx should have comment or be unexported (golint)
    • Line 860: warning: should omit 2nd value from range; this loop is equivalent to `for k1 := range ...` (golint)
    • Line 882: warning: exported function MakeMergerCoinbaseTx2 should have comment or be unexported (golint)
    • Line 932: warning: exported function EnoughAmount should have comment or be unexported (golint)
    • Line 990: warning: exported function KeepedAmountFromScript should have comment or be unexported (golint)
    • Line 1003: warning: comment on exported type TmpAddressPair should be of the form "TmpAddressPair ..." (with optional leading article) (golint)
    • Line 1009: warning: exported type ConvertTxTemp should have comment or be unexported (golint)
    • Line 1014: warning: exported function ToAddressFromConvertsVerify should have comment or be unexported (golint)
    • Line 1033: warning: exported function ConvertConfirms should have comment or be unexported (golint)
    • Line 1039: warning: exported function ConvertConfirmsVerify should have comment or be unexported (golint)
    • Line 1131: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1233: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • classzz/blockchain/chain.go
    • Line 1498: warning: comment on exported method BlockChain.BlockHeightByHashAll should be of the form "BlockHeightByHashAll ..." (golint)
    • Line 2482: warning: exported method BlockChain.GetCommitteeVerify should have comment or be unexported (golint)
    • classzz/wire/blockheader.go
    • Line 19: warning: exported const BlockHeaderSize should have comment or be unexported (golint)
    • Line 22: warning: exported var EmptyCIDRoot should have comment or be unexported (golint)
    • Line 66: warning: exported method BlockHeader.BlockHashNoNonce should have comment or be unexported (golint)
    • classzz/config_test.go
    • Line 252: warning: don't use underscores in Go names; var hash_1 should be hash1 (golint)
    • Line 264: warning: don't use underscores in Go names; var pk_hex should be pkHex (golint)
    • Line 276: warning: don't use underscores in Go names; var pub_str should be pubStr (golint)
    • classzz/btcjson/chainsvrcmds.go
    • Line 63: warning: exported type WhiteUnit should have comment or be unexported (golint)
    • Line 68: warning: exported type BeaconRegistrationOut should have comment or be unexported (golint)
    • Line 78: warning: exported type AddBeaconPledgeOut should have comment or be unexported (golint)
    • Line 84: warning: exported type MortgageOut should have comment or be unexported (golint)
    • Line 90: warning: exported type AddMortgageOut should have comment or be unexported (golint)
    • Line 95: warning: exported type UpdateCoinbaseAllOut should have comment or be unexported (golint)
    • Line 99: warning: exported type ConvertOut should have comment or be unexported (golint)
    • Line 110: warning: exported type CastingOut should have comment or be unexported (golint)
    • Line 115: warning: exported type ConvertConfirmOut should have comment or be unexported (golint)
    • Line 125: warning: comment on exported type BeaconRegistrationCmd should be of the form "BeaconRegistrationCmd ..." (with optional leading article) (golint)
    • Line 149: warning: comment on exported type AddMortgageCmd should be of the form "AddMortgageCmd ..." (with optional leading article) (golint)
    • Line 157: warning: comment on exported type UpdateCoinbaseAllCmd should be of the form "UpdateCoinbaseAllCmd ..." (with optional leading article) (golint)
    • Line 165: warning: comment on exported type ConvertCmd should be of the form "ConvertCmd ..." (with optional leading article) (golint)
    • Line 173: warning: comment on exported type CastingCmd should be of the form "CastingCmd ..." (with optional leading article) (golint)
    • Line 181: warning: comment on exported type ConvertConfirmCmd should be of the form "ConvertConfirmCmd ..." (with optional leading article) (golint)
    • Line 189: warning: comment on exported type ConversionAddresseCmd should be of the form "ConversionAddresseCmd ..." (with optional leading article) (golint)
    • Line 199: warning: exported type BaseAmountUint should have comment or be unexported (golint)
    • Line 204: warning: exported type EnAssetItem should have comment or be unexported (golint)
    • Line 205: warning: exported type FreeQuotaItem should have comment or be unexported (golint)
    • Line 207: warning: exported type BeaconAddressInfo should have comment or be unexported (golint)
    • Line 222: warning: exported type AddBeaconPledge should have comment or be unexported (golint)
    • Line 242: warning: comment on exported function NewBeaconRegistrationCmd should be of the form "NewBeaconRegistrationCmd ..." (golint)
    • Line 256: warning: comment on exported function NewAddBeaconPledgeCmd should be of the form "NewAddBeaconPledgeCmd ..." (golint)
    • Line 270: warning: exported function NewMortgageCmd should have comment or be unexported (golint)
    • Line 280: warning: exported function NewAddMortgageCmd should have comment or be unexported (golint)
    • Line 290: warning: comment on exported function NewUpdateCoinbaseAllCmd should be of the form "NewUpdateCoinbaseAllCmd ..." (golint)
    • Line 304: warning: exported function NewConvertCmd should have comment or be unexported (golint)
    • Line 314: warning: exported function NewCastingCmd should have comment or be unexported (golint)
    • Line 324: warning: exported function NewConvertConfirmCmd should have comment or be unexported (golint)
    • Line 503: warning: comment on exported type GetDogecoinBlockCmd should be of the form "GetDogecoinBlockCmd ..." (with optional leading article) (golint)
    • Line 508: warning: exported function NewGetDogecoinBlockCmd should have comment or be unexported (golint)
    • Line 733: warning: comment on exported type GetWorkTemplateCmd should be of the form "GetWorkTemplateCmd ..." (with optional leading article) (golint)
    • Line 736: warning: comment on exported function NewGetWorkTemplateCmd should be of the form "NewGetWorkTemplateCmd ..." (golint)
    • Line 834: warning: comment on exported type GetStateInfoCmd should be of the form "GetStateInfoCmd ..." (with optional leading article) (golint)
    • Line 845: warning: comment on exported type GetConvertItemsCmd should be of the form "GetConvertItemsCmd ..." (with optional leading article) (golint)
    • Line 851: warning: comment on exported function NewGetConvertItemsCmd should be of the form "NewGetConvertItemsCmd ..." (golint)
    • Line 857: warning: exported type GetConvertConfirmItemsCmd should have comment or be unexported (golint)
    • Line 862: warning: exported function NewGetConvertConfirmItemsCmd should have comment or be unexported (golint)
    • Line 903: warning: comment on exported type OmniGetTransactionCmd should be of the form "OmniGetTransactionCmd ..." (with optional leading article) (golint)
    • Line 911: warning: comment on exported function NewOmniGetTransactionCmd should be of the form "NewOmniGetTransactionCmd ..." (golint)
    • Line 1153: warning: comment on exported function NewSubmitWorkCmd should be of the form "NewSubmitWorkCmd ..." (golint)
    • classzz/cross/types.go
    • Line 27: warning: exported type TrxBlock should have comment or be unexported (golint)
    • Line 31: warning: don't use underscores in Go names; type TrxBlock_ should be TrxBlock (golint)
    • Line 31: warning: exported type TrxBlock_ should have comment or be unexported (golint)
    • Line 36: warning: exported type TrxBlockHeader should have comment or be unexported (golint)
    • Line 41: warning: exported type TrxBlockRawData should have comment or be unexported (golint)
    • Line 50: warning: exported type TrxTx should have comment or be unexported (golint)
    • Line 62: warning: don't use underscores in Go names; type Parameter_value should be ParameterValue (golint)
    • Line 62: warning: exported type Parameter_value should have comment or be unexported (golint)
    • Line 69: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 74: warning: exported type Contract should have comment or be unexported (golint)
    • Line 76: warning: don't use underscores in Go names; struct field Type_ should be Type (golint)
    • Line 79: warning: exported type TrxRawData should have comment or be unexported (golint)
    • classzz/txscript/opcode.go
    • Line 37: warning: don't use underscores in Go names; const OP_0 should be OP0 (golint)
    • Line 119: warning: don't use underscores in Go names; const OP_1 should be OP1 (golint)
    • Line 121: warning: don't use underscores in Go names; const OP_2 should be OP2 (golint)
    • Line 122: warning: don't use underscores in Go names; const OP_3 should be OP3 (golint)
    • Line 123: warning: don't use underscores in Go names; const OP_4 should be OP4 (golint)
    • Line 124: warning: don't use underscores in Go names; const OP_5 should be OP5 (golint)
    • Line 125: warning: don't use underscores in Go names; const OP_6 should be OP6 (golint)
    • Line 126: warning: don't use underscores in Go names; const OP_7 should be OP7 (golint)
    • Line 127: warning: don't use underscores in Go names; const OP_8 should be OP8 (golint)
    • Line 128: warning: don't use underscores in Go names; const OP_9 should be OP9 (golint)
    • classzz/blockchain/utxocache.go
    • Line 90: warning: exported method UtxoEntry.IsPool should have comment or be unexported (golint)
    • Line 869: warning: exported method BlockChain.FetchPoolUtxoView should have comment or be unexported (golint)
    • Line 894: warning: exported method BlockChain.FetchUtxoForBeacon should have comment or be unexported (golint)
    • Line 900: warning: exported method BlockChain.GetTxInAmount should have comment or be unexported (golint)
    • classzz/cross/czzstate.go
    • Line 19: warning: exported type CommitteeInfo should have comment or be unexported (golint)
    • Line 35: warning: exported method CommitteeInfo.DecodeRLP should have comment or be unexported (golint)
    • Line 44: warning: exported method CommitteeInfo.EncodeRLP should have comment or be unexported (golint)
    • Line 54: warning: exported type CommitteeMember should have comment or be unexported (golint)
    • Line 70: warning: exported method CommitteeMember.DecodeRLP should have comment or be unexported (golint)
    • Line 79: warning: exported method CommitteeMember.EncodeRLP should have comment or be unexported (golint)
    • Line 89: warning: exported type PledgeInfo should have comment or be unexported (golint)
    • Line 107: warning: exported method PledgeInfo.DecodeRLP should have comment or be unexported (golint)
    • Line 116: warning: exported method PledgeInfo.EncodeRLP should have comment or be unexported (golint)
    • Line 127: warning: exported type ConvertItem should have comment or be unexported (golint)
    • Line 138: warning: exported type ConvertItemMap should have comment or be unexported (golint)
    • Line 139: warning: exported type ConvertItemList should have comment or be unexported (golint)
    • Line 141: warning: exported type StoreConvertItemMap should have comment or be unexported (golint)
    • Line 146: warning: exported type SortStoreConvertMapItem should have comment or be unexported (golint)
    • Line 174: warning: receiver name cs should be consistent with previous receiver name ci for ConvertItemMap (golint)
    • Line 182: warning: exported method ConvertItemMap.DecodeRLP should have comment or be unexported (golint)
    • Line 182: warning: receiver name cs should be consistent with previous receiver name ci for ConvertItemMap (golint)
    • Line 194: warning: exported method ConvertItemMap.EncodeRLP should have comment or be unexported (golint)
    • Line 194: warning: receiver name cs should be consistent with previous receiver name ci for ConvertItemMap (golint)
    • Line 203: warning: exported type SortStoreConvertItemList should have comment or be unexported (golint)
    • Line 229: warning: exported method ConvertItemList.DecodeRLP should have comment or be unexported (golint)
    • Line 241: warning: exported method ConvertItemList.EncodeRLP should have comment or be unexported (golint)
    • Line 241: warning: receiver name cs should be consistent with previous receiver name ci for ConvertItemList (golint)
    • Line 249: warning: exported type CommitteeState should have comment or be unexported (golint)
    • Line 258: warning: exported type StoreConvertItems should have comment or be unexported (golint)
    • Line 263: warning: exported type SortStoreConvertItems should have comment or be unexported (golint)
    • Line 279: warning: exported type StoreConvertConfirmItems should have comment or be unexported (golint)
    • Line 284: warning: exported type SortStoreConvertConfirmItems should have comment or be unexported (golint)
    • Line 300: warning: exported type StoreNoCostUtxos should have comment or be unexported (golint)
    • Line 305: warning: exported type SortStoreNoCostUtxos should have comment or be unexported (golint)
    • Line 321: warning: exported type SortStorePledgeInfos should have comment or be unexported (golint)
    • Line 337: warning: exported type SortStoreCommitteeInfos should have comment or be unexported (golint)
    • Line 414: warning: exported method CommitteeState.DecodeRLP should have comment or be unexported (golint)
    • Line 424: warning: exported method CommitteeState.EncodeRLP should have comment or be unexported (golint)
    • Line 436: warning: comment on exported method CommitteeState.GetPledgeInfoByID should be of the form "GetPledgeInfoByID ..." (golint)
    • Line 446: warning: exported method CommitteeState.GetPledgeInfoByAddress should have comment or be unexported (golint)
    • Line 455: warning: exported method CommitteeState.GetPledgeInfoByAddressTo should have comment or be unexported (golint)
    • Line 464: warning: exported method CommitteeState.GetPledgeInfoToAddrByID should have comment or be unexported (golint)
    • Line 474: warning: exported method CommitteeState.GetPledgeInfoAddressByID should have comment or be unexported (golint)
    • Line 482: warning: exported method CommitteeState.GetPledgeInfoMaxId should have comment or be unexported (golint)
    • Line 492: warning: comment on exported method CommitteeState.Mortgage should be of the form "Mortgage ..." (golint)
    • Line 509: warning: exported method CommitteeState.AddMortgage should have comment or be unexported (golint)
    • Line 514: warning: exported method CommitteeState.UpdateCoinbaseAll should have comment or be unexported (golint)
    • Line 519: warning: exported method CommitteeState.Convert should have comment or be unexported (golint)
    • Line 559: warning: exported method CommitteeState.Casting should have comment or be unexported (golint)
    • Line 581: warning: exported method CommitteeState.ConvertConfirm should have comment or be unexported (golint)
    • Line 625: warning: exported method CommitteeState.ConvertConfirmVerify should have comment or be unexported (golint)
    • Line 642: warning: exported method CommitteeState.PutNoCostUtxos should have comment or be unexported (golint)
    • Line 664: warning: exported method CommitteeState.ConvertExistExtTx should have comment or be unexported (golint)
    • Line 699: warning: exported method CommitteeState.ConvertConfirmExistExtTx should have comment or be unexported (golint)
    • Line 719: warning: exported method CommitteeState.ToBytes should have comment or be unexported (golint)
    • Line 730: warning: exported method CommitteeState.Hash should have comment or be unexported (golint)
    • Line 734: warning: exported function NewCommitteeState should have comment or be unexported (golint)
    • Line 745: warning: comment on exported type EntangleState should be of the form "EntangleState ..." (with optional leading article) (golint)
    • Line 753: warning: exported type StoreBeaconAddress should have comment or be unexported (golint)
    • Line 757: warning: exported type StoreUserInfos should have comment or be unexported (golint)
    • Line 761: warning: exported type SortStoreBeaconAddress should have comment or be unexported (golint)
    • Line 775: warning: exported type SortStoreUserInfos should have comment or be unexported (golint)
    • Line 822: warning: exported method EntangleState.DecodeRLP should have comment or be unexported (golint)
    • Line 836: warning: exported method EntangleState.EncodeRLP should have comment or be unexported (golint)
    • Line 868: warning: exported method EntangleState.RegisterBeaconAddress should have comment or be unexported (golint)
    • Line 906: warning: exported method EntangleState.AppendWhiteList should have comment or be unexported (golint)
    • Line 918: 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 922: warning: exported method EntangleState.AppendCoinbase should have comment or be unexported (golint)
    • Line 934: 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 939: warning: exported method EntangleState.AppendAmountForBeaconAddress should have comment or be unexported (golint)
    • Line 942: 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 948: warning: exported method EntangleState.AppendAmountForBeaconAddressVerify should have comment or be unexported (golint)
    • Line 955: warning: exported method EntangleState.UpdateCoinbase should have comment or be unexported (golint)
    • Line 963: 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 967: warning: exported method EntangleState.UpdateCfgForBeaconAddress should have comment or be unexported (golint)
    • Line 974: 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 979: warning: exported method EntangleState.GetCoinbase should have comment or be unexported (golint)
    • Line 1043: warning: exported method EntangleState.SetInitPoolAmount should have comment or be unexported (golint)
    • Line 1046: warning: exported method EntangleState.AddPoolAmount should have comment or be unexported (golint)
    • Line 1050: warning: exported method EntangleState.SubPoolAmount1 should have comment or be unexported (golint)
    • Line 1053: warning: exported method EntangleState.SubPoolAmount2 should have comment or be unexported (golint)
    • Line 1079: warning: exported method EntangleState.AddressInWhiteList should have comment or be unexported (golint)
    • Line 1143: warning: comment on exported method EntangleState.UpdateQuotaOnBlock should be of the form "UpdateQuotaOnBlock ..." (golint)
    • Line 1178: warning: exported method EntangleState.UpdateStateToPunished should have comment or be unexported (golint)
    • Line 1187: warning: exported function SummayPunishedInfos should have comment or be unexported (golint)
    • Line 1201: warning: exported method EntangleState.FinishBeaconAddressPunished should have comment or be unexported (golint)
    • Line 1214: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1218: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1232: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1241: warning: exported method EntangleState.ToBytes should have comment or be unexported (golint)
    • Line 1249: warning: exported method EntangleState.Save should have comment or be unexported (golint)
    • Line 1252: warning: exported method EntangleState.Load should have comment or be unexported (golint)
    • Line 1256: warning: exported method EntangleState.Hash should have comment or be unexported (golint)
    • Line 1259: warning: exported function NewEntangleState should have comment or be unexported (golint)
    • classzz/rpcclient/mining.go
    • Line 410: warning: exported method Client.SubmitWorkAsync should have comment or be unexported (golint)
    • Line 416: warning: comment on exported method Client.SubmitWork should be of the form "SubmitWork ..." (golint)
    • classzz/log/logger.go
    • Line 18: warning: exported type Lvl should have comment or be unexported (golint)
    • Line 21: warning: exported const LvlCrit should have comment (or a comment on this block) or be unexported (golint)
    • classzz/cross/addressto.go
    • Line 13: warning: exported var ErrInvalidPubkey should have comment or be unexported (golint)
    • Line 17: warning: comment on exported function RecoverPublicFromBytes should be of the form "RecoverPublicFromBytes ..." (golint)
    • Line 29: warning: exported function MakeAddress should have comment or be unexported (golint)
    • Line 33: 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)
    • classzz/cross/validate.go
    • Line 28: warning: exported var CoinPools should have comment or be unexported (golint)
    • Line 35: warning: exported type CommitteeVerify should have comment or be unexported (golint)
    • Line 43: warning: exported method CommitteeVerify.VerifyBeaconRegistrationTx should have comment or be unexported (golint)
    • Line 139: warning: exported method CommitteeVerify.VerifyAddBeaconPledgeTx should have comment or be unexported (golint)
    • Line 197: warning: exported method CommitteeVerify.VerifyMortgageTx should have comment or be unexported (golint)
    • Line 265: warning: exported method CommitteeVerify.VerifyAddMortgageTx should have comment or be unexported (golint)
    • Line 311: warning: exported method CommitteeVerify.VerifyUpdateCoinbaseAllTx should have comment or be unexported (golint)
    • Line 331: warning: exported method CommitteeVerify.VerifyConvertTx should have comment or be unexported (golint)
    • Line 334: 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 417: warning: should omit 2nd value from range; this loop is equivalent to `for k1 := range ...` (golint)
    • Line 483: warning: exported method CommitteeVerify.VerifyConvertConfirmTx should have comment or be unexported (golint)
    • Line 610: warning: exported method CommitteeVerify.VerifyCastingTx should have comment or be unexported (golint)
    • classzz/rpcclient/rawtransactions.go
    • Line 118: warning: comment on exported type FutureGetWitnessRawTransactionResult should be of the form "FutureGetWitnessRawTransactionResult ..." (with optional leading article) (golint)
    • Line 151: warning: comment on exported method Client.GetWitnessRawTransactionAsync should be of the form "GetWitnessRawTransactionAsync ..." (golint)
    • Line 162: warning: exported method Client.GetWitnessRawTransaction should have comment or be unexported (golint)
    • Line 212: warning: comment on exported type FutureOmniGetTransactionVerboseResult should be of the form "FutureOmniGetTransactionVerboseResult ..." (with optional leading article) (golint)
    • Line 235: warning: comment on exported method Client.OmniGetTransactionResultAsync should be of the form "OmniGetTransactionResultAsync ..." (golint)
    • Line 250: warning: comment on exported method Client.OmniGetTransactionResult should be of the form "OmniGetTransactionResult ..." (golint)
    • Line 480: warning: comment on exported method Client.ConvertConfirm should be of the form "ConvertConfirm ..." (golint)
    • Line 487: warning: comment on exported method Client.ConvertConfirmAsync should be of the form "ConvertConfirmAsync ..." (golint)
    • classzz/blockchain/chainio.go
    • Line 1879: warning: exported method BlockChain.CurrentCstate should have comment or be unexported (golint)
    • Line 1886: warning: exported method BlockChain.CurrentEstate should have comment or be unexported (golint)
    • Line 1893: warning: exported method BlockChain.GetCstateByHashAndHeight should have comment or be unexported (golint)
    • Line 1898: warning: exported method BlockChain.GetEstateByHashAndHeight should have comment or be unexported (golint)
    • classzz/rlp/decode.go
    • Line 18: warning: error var EOL should have name of the form ErrFoo (golint)
    • Line 20: warning: comment on exported var ErrExpectedString should be of the form "ErrExpectedString ..." (golint)
    • Line 22: warning: exported var ErrExpectedList should have comment or be unexported (golint)
    • Line 540: warning: exported const Byte should have comment (or a comment on this block) or be unexported (golint)
    • classzz/consensus/algorithm.go
    • Line 11: warning: exported const TBLSize should have comment or be unexported (golint)
    • Line 13: warning: exported type CZZTBL should have comment or be unexported (golint)
    • Line 68: warning: exported function MatMuliple should have comment or be unexported (golint)
    • Line 95: warning: don't use underscores in Go names; func parameter data_in should be dataIn (golint)
    • Line 97: warning: don't use underscores in Go names; var data_out should be dataOut (golint)
    • Line 122: warning: exported function HashCZZ should have comment or be unexported (golint)
    • Line 162: warning: don't use underscores in Go names; var dat_in should be datIn (golint)
    • Line 187: warning: don't use underscores in Go names; var tbl_standard should be tblStandard (golint)
    • Line 228: warning: don't use underscores in Go names; var table_hash should be tableHash (golint)
    • Line 237: warning: don't use underscores in Go names; var val_t should be valT (golint)
    • Line 239: warning: don't use underscores in Go names; var val_t should be valT (golint)
    • classzz/txscript/standard.go
    • Line 323: warning: exported function IsBeaconRegistrationTy should have comment or be unexported (golint)
    • Line 331: warning: exported function IsAddBeaconPledgeTy should have comment or be unexported (golint)
    • Line 339: warning: exported function IsMortgageTy should have comment or be unexported (golint)
    • Line 347: warning: exported function IsAddMortgageTy should have comment or be unexported (golint)
    • Line 355: warning: exported function IsUpdateCoinbaseAllTy should have comment or be unexported (golint)
    • Line 363: warning: exported function IsConvertTy should have comment or be unexported (golint)
    • Line 371: warning: exported function IsCastingTy should have comment or be unexported (golint)
    • Line 378: warning: exported function IsConvertConfirmTy should have comment or be unexported (golint)
    • Line 550: warning: exported function PayToPubKeyHashScript should have comment or be unexported (golint)
    • Line 624: warning: comment on exported function BeaconRegistrationScript should be of the form "BeaconRegistrationScript ..." (golint)
    • Line 664: warning: comment on exported function UpdateCoinbaseAllScript should be of the form "UpdateCoinbaseAllScript ..." (golint)
    • Line 736: warning: exported function GetKeepedAmountData should have comment or be unexported (golint)
    • Line 747: warning: exported function GetBeaconRegistrationData should have comment or be unexported (golint)
    • Line 758: warning: exported function GetAddBeaconPledgeData should have comment or be unexported (golint)
    • Line 769: warning: exported function GetMortgageData should have comment or be unexported (golint)
    • Line 780: warning: exported function GetAddMortgageData should have comment or be unexported (golint)
    • Line 791: warning: exported function GetUpdateCoinbaseAllData should have comment or be unexported (golint)
    • Line 802: warning: exported function GetConvertInfoData should have comment or be unexported (golint)
    • Line 813: warning: exported function GetCastingInfoData should have comment or be unexported (golint)
    • Line 824: warning: exported function GetConvertConfirmInfoData should have comment or be unexported (golint)
    • Line 944: warning: exported function ExtractPkScriptPub should have comment or be unexported (golint)
    • classzz/btcjson/chainsvrresults.go
    • Line 50: warning: exported type GetWorkTemplateResult should have comment or be unexported (golint)
    • Line 490: warning: comment on exported type StateInfoChainResult should be of the form "StateInfoChainResult ..." (with optional leading article) (golint)
    • Line 514: warning: exported type ConvertItemsSort should have comment or be unexported (golint)
    • Line 567: warning: comment on exported type OmniTxRawResult should be of the form "OmniTxRawResult ..." (with optional leading article) (golint)
    • classzz/cross/etxcache.go
    • Line 14: warning: exported var BucketKey should have comment or be unexported (golint)
    • Line 19: warning: exported type CacheCommitteeState should have comment or be unexported (golint)
    • Line 23: warning: exported method CacheCommitteeState.LoadCommitteeState should have comment or be unexported (golint)
    • Line 52: warning: exported method CacheCommitteeState.LoadEntangleState should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • classzz/czzrpc/server.go
    • Line 367: warning: ineffectual assignment to err (ineffassign)
    • Line 399: warning: ineffectual assignment to err (ineffassign)
    • Line 474: warning: ineffectual assignment to err (ineffassign)
    • Line 700: warning: ineffectual assignment to startHeight (ineffassign)
    • Line 712: warning: ineffectual assignment to err (ineffassign)
    • Line 777: warning: ineffectual assignment to startHeight (ineffassign)
    • Line 789: warning: ineffectual assignment to err (ineffassign)

misspell99%

Misspell Finds commonly misspelled English words