Preparing report...

Report for github.com/bottos-project/bottos

B    Not bad!    Found 138 issues across 219 files

Tweet

gofmt52%

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

    • bottos/transaction/trx-apply.go
    • Line 427: missing ',' in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 430: missing ',' in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 432: expected operand, found 'var':1::warning: file is not gofmted with -s (gofmt)
    • Line 433: missing ',' before newline in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 434: expected '==', found '=':1::warning: file is not gofmted with -s (gofmt)
    • Line 436: expected '==', found '=':1::warning: file is not gofmted with -s (gofmt)
    • Line 438: expected '==', found '=':1::warning: file is not gofmted with -s (gofmt)
    • Line 439: expected operand, found '}':1::warning: file is not gofmted with -s (gofmt)
    • Line 444: missing ',' in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 446: missing ',' in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 447: expected operand, found 'if':1::warning: file is not gofmted with -s (gofmt)

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!


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.

    • bottos/vm/wasm/wasm/init_expr.go
    • Line 113: warning: cyclomatic complexity 25 of function (*Module).ExecInitExpr() is high (> 15) (gocyclo)
    • Line 60: warning: cyclomatic complexity 16 of function readInitExpr() is high (> 15) (gocyclo)
    • bottos/vm/wasm/exec/vm.go
    • Line 388: warning: cyclomatic complexity 25 of function (*VM).execCode() is high (> 15) (gocyclo)
    • Line 118: warning: cyclomatic complexity 24 of function NewVM() is high (> 15) (gocyclo)
    • bottos/contract/abi/abi.go
    • Line 331: warning: cyclomatic complexity 27 of function EncodeAbiEx() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 27 of function DecodeAbiEx() is high (> 15) (gocyclo)
    • Line 622: warning: cyclomatic complexity 25 of function DecodeAbiExWithBigInt() is high (> 15) (gocyclo)
    • Line 221: warning: cyclomatic complexity 25 of function DecodeTableAbiEx() is high (> 15) (gocyclo)
    • bottos/bcli/bcli.go
    • Line 1533: warning: cyclomatic complexity 29 of function (*CLI).getaccount() is high (> 15) (gocyclo)
    • Line 528: warning: cyclomatic complexity 20 of function (*CLI).transfer() is high (> 15) (gocyclo)
    • Line 778: warning: cyclomatic complexity 17 of function (*CLI).pushmsignproposal() is high (> 15) (gocyclo)
    • Line 945: warning: cyclomatic complexity 16 of function (*CLI).approvemsignproposal() is high (> 15) (gocyclo)
    • Line 682: warning: cyclomatic complexity 16 of function (*CLI).newmsignaccount() is high (> 15) (gocyclo)
    • Line 1045: warning: cyclomatic complexity 16 of function (*CLI).unapprovemsignproposal() is high (> 15) (gocyclo)
    • bottos/bpl/decode.go
    • Line 129: warning: cyclomatic complexity 19 of function (*DecodeContext).readHeader() is high (> 15) (gocyclo)
    • Line 84: warning: cyclomatic complexity 18 of function getDecoder() is high (> 15) (gocyclo)
    • bottos/protocol/block/sync.go
    • Line 483: warning: cyclomatic complexity 19 of function (*synchronizes).syncStateCheck() is high (> 15) (gocyclo)
    • Line 776: warning: cyclomatic complexity 17 of function (*synchronizes).syncBundleBlock() is high (> 15) (gocyclo)

golint60%

Golint is a linter for Go source code.

    • bottos/db/platform/codedb/codedb-load.go
    • Line 32: warning: exported method MultindexDB.CallUndoFlush should have comment or be unexported (golint)
    • Line 46: warning: exported method MultindexDB.CallLoadStateDB should have comment or be unexported (golint)
    • Line 82: warning: exported method MultindexDB.CallReleaseUndoInfo should have comment or be unexported (golint)
    • bottos/protocol/consensus/consensus.go
    • Line 38: warning: exported type Consensus should have comment or be unexported (golint)
    • Line 42: warning: exported function MakeConsensus should have comment or be unexported (golint)
    • Line 46: warning: exported method Consensus.SetActor should have comment or be unexported (golint)
    • Line 50: warning: exported method Consensus.Start should have comment or be unexported (golint)
    • Line 54: warning: exported method Consensus.Dispatch should have comment or be unexported (golint)
    • Line 65: warning: exported method Consensus.SendPrevote should have comment or be unexported (golint)
    • Line 86: warning: exported method Consensus.SendPrecommit should have comment or be unexported (golint)
    • Line 107: warning: exported method Consensus.SendCommit should have comment or be unexported (golint)
    • bottos/cmd/flags.go
    • Line 18: warning: package comment should be of the form "Package cmd ..." (golint)
    • Line 18: warning: package comment should not have leading space (golint)
    • Line 32: warning: exported var ConfigFileFlag should have comment or be unexported (golint)
    • bottos/vm/duktape/cgocallback.go
    • Line 17: warning: comment on exported function StorageSaveFunc should be of the form "StorageSaveFunc ..." (golint)
    • Line 44: warning: comment on exported function StorageReadFunc should be of the form "StorageReadFunc ..." (golint)
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 73: warning: comment on exported function AddSubTrxFunc should be of the form "AddSubTrxFunc ..." (golint)
    • Line 90: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bottos/bpl/bpl.go
    • Line 33: warning: comment on exported type IgnoreRule should be of the form "IgnoreRule ..." (with optional leading article) (golint)
    • Line 38: warning: exported function SetIgnoreRule should have comment or be unexported (golint)
    • Line 59: warning: comment on exported function UnmarshalUntilField should be of the form "UnmarshalUntilField ..." (golint)
    • bottos/role/voter-role.go
    • Line 39: warning: exported const VoterObjectKeyName should have comment (or a comment on this block) or be unexported (golint)
    • Line 88: warning: exported function GetAllVotersRole should have comment or be unexported (golint)
    • bottos/db/platform/codedb/codedb-object-undo.go
    • Line 9: warning: exported method MultindexDB.CallAddObject should have comment or be unexported (golint)
    • Line 15: warning: exported method MultindexDB.CallRollback should have comment or be unexported (golint)
    • Line 31: warning: exported method MultindexDB.CallRollbackAll should have comment or be unexported (golint)
    • Line 48: warning: exported method MultindexDB.CallCommit should have comment or be unexported (golint)
    • Line 70: warning: exported method MultindexDB.CallGetRevision should have comment or be unexported (golint)
    • Line 74: warning: exported method MultindexDB.CallSetRevision should have comment or be unexported (golint)
    • Line 87: warning: exported method MultindexDB.PushObject should have comment or be unexported (golint)
    • bottos/vm/wasm/exec/exception.go
    • Line 36: warning: exported type TYPE should have comment or be unexported (golint)
    • Line 39: warning: exported const VM_NOERROR should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported const VM_NULL should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported const VM_FALSE should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: error var ERR_EOF should have name of the form ErrFoo (golint)
    • Line 55: warning: exported var ERR_EOF should have comment or be unexported (golint)
    • Line 56: warning: error var ERR_STORE_METHOD should have name of the form ErrFoo (golint)
    • Line 56: warning: exported var ERR_STORE_METHOD should have comment or be unexported (golint)
    • Line 57: warning: error var ERR_STORE_PARAM should have name of the form ErrFoo (golint)
    • Line 57: warning: exported var ERR_STORE_PARAM should have comment or be unexported (golint)
    • Line 58: warning: error var ERR_STORE_MEMORY should have name of the form ErrFoo (golint)
    • Line 58: warning: exported var ERR_STORE_MEMORY should have comment or be unexported (golint)
    • Line 59: warning: error var ERR_COPY_DATA should have name of the form ErrFoo (golint)
    • Line 59: warning: exported var ERR_COPY_DATA should have comment or be unexported (golint)
    • Line 60: warning: error var ERR_GET_STORE_POS should have name of the form ErrFoo (golint)
    • Line 60: warning: exported var ERR_GET_STORE_POS should have comment or be unexported (golint)
    • Line 61: warning: error var ERR_CREATE_VM should have name of the form ErrFoo (golint)
    • Line 61: warning: exported var ERR_CREATE_VM should have comment or be unexported (golint)
    • Line 62: warning: error var ERR_GET_VM should have name of the form ErrFoo (golint)
    • Line 62: warning: exported var ERR_GET_VM should have comment or be unexported (golint)
    • Line 63: warning: error var ERR_FIND_VM_METHOD should have name of the form ErrFoo (golint)
    • Line 63: warning: exported var ERR_FIND_VM_METHOD should have comment or be unexported (golint)
    • Line 64: warning: error var ERR_PARAM_COUNT should have name of the form ErrFoo (golint)
    • Line 64: warning: exported var ERR_PARAM_COUNT should have comment or be unexported (golint)
    • Line 65: warning: error var ERR_UNSUPPORT_TYPE should have name of the form ErrFoo (golint)
    • Line 65: warning: exported var ERR_UNSUPPORT_TYPE should have comment or be unexported (golint)
    • Line 66: warning: error var ERR_OUT_BOUNDS should have name of the form ErrFoo (golint)
    • Line 66: warning: exported var ERR_OUT_BOUNDS should have comment or be unexported (golint)
    • Line 67: warning: error var ERR_CALL_ENV_METHOD should have name of the form ErrFoo (golint)
    • Line 67: warning: exported var ERR_CALL_ENV_METHOD should have comment or be unexported (golint)
    • Line 68: warning: error var ERR_EMPTY_INVALID_PARAM should have name of the form ErrFoo (golint)
    • Line 68: warning: exported var ERR_EMPTY_INVALID_PARAM should have comment or be unexported (golint)
    • Line 69: warning: error var ERR_INVALID_WASM should have name of the form ErrFoo (golint)
    • Line 69: warning: exported var ERR_INVALID_WASM should have comment or be unexported (golint)
    • Line 70: warning: error var ERR_DATA_INDEX should have name of the form ErrFoo (golint)
    • Line 70: warning: exported var ERR_DATA_INDEX should have comment or be unexported (golint)
    • Line 71: warning: error var ERR_FINE_MAP should have name of the form ErrFoo (golint)
    • Line 71: warning: exported var ERR_FINE_MAP should have comment or be unexported (golint)
    • Line 72: warning: error var ERR_USED_POS should have name of the form ErrFoo (golint)
    • Line 72: warning: exported var ERR_USED_POS should have comment or be unexported (golint)
    • Line 73: warning: comment on exported var ERR_MULTIPLE_LINEAR_MEMORIES should be of the form "ERR_MULTIPLE_LINEAR_MEMORIES ..." (golint)
    • Line 75: warning: error var ERR_MULTIPLE_LINEAR_MEMORIES should have name of the form ErrFoo (golint)
    • Line 76: warning: comment on exported var ERR_INVALID_ARGUMENT_COUNT should be of the form "ERR_INVALID_ARGUMENT_COUNT ..." (golint)
    • Line 78: warning: error var ERR_INVALID_ARGUMENT_COUNT should have name of the form ErrFoo (golint)
    • bottos/protocol/transaction/transaction.go
    • Line 40: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 47: warning: exported function MakeTransaction should have comment or be unexported (golint)
    • Line 53: warning: exported method Transaction.Start should have comment or be unexported (golint)
    • Line 57: warning: exported method Transaction.SetActor should have comment or be unexported (golint)
    • Line 61: warning: exported method Transaction.Dispatch should have comment or be unexported (golint)
    • Line 72: warning: exported method Transaction.SendNewTrx should have comment or be unexported (golint)
    • bottos/role/resource-role.go
    • Line 35: warning: comment on exported const ResourceLimitObjectName should be of the form "ResourceLimitObjectName ..." (golint)
    • Line 38: warning: comment on exported const ResourceUsageObjectName should be of the form "ResourceUsageObjectName ..." (golint)
    • bottos/p2p/p2p.go
    • Line 46: warning: comment on exported var BasicLocalPeerInfo should be of the form "BasicLocalPeerInfo ..." (golint)
    • Line 153: warning: comment on exported method P2PServer.GetPeerP2PInfo should be of the form "GetPeerP2PInfo ..." (golint)
    • bottos/action/message/actor-message.go
    • Line 119: warning: comment on exported type RemovePendingBlockTrxsReq should be of the form "RemovePendingBlockTrxsReq ..." (with optional leading article) (golint)
    • Line 124: warning: exported type RemovePendingTrxsReq should have comment or be unexported (golint)
    • Line 169: warning: comment on exported type RcvCommitReq should be of the form "RcvCommitReq ..." (with optional leading article) (golint)
    • Line 200: warning: comment on exported type PrecommitResp should be of the form "PrecommitResp ..." (with optional leading article) (golint)
    • bottos/db/db.go
    • Line 43: warning: exported type OptionDBService should have comment or be unexported (golint)
    • Line 63: warning: exported function NewOptionDbService should have comment or be unexported (golint)
    • Line 80: warning: exported method OptionDBService.Close should have comment or be unexported (golint)
    • Line 138: warning: exported type OptionDBApi should have comment or be unexported (golint)
    • bottos/common/queue.go
    • Line 30: warning: exported type Queue should have comment or be unexported (golint)
    • Line 34: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 38: warning: exported method Queue.Pop should have comment or be unexported (golint)
    • Line 46: warning: exported method Queue.Push should have comment or be unexported (golint)
    • Line 50: warning: exported method Queue.Length should have comment or be unexported (golint)
    • bottos/role/balance-role.go
    • Line 203: warning: comment on exported method StakedBalance.UnstakingAmount should be of the form "UnstakingAmount ..." (golint)
    • Line 220: warning: comment on exported method StakedBalance.Claim should be of the form "Claim ..." (golint)
    • bottos/bcli/bcli_trx.go
    • Line 18: warning: exported type BcliPushTrxInfo should have comment or be unexported (golint)
    • Line 25: warning: exported type TransactionStatus should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func send_httpreq should be sendHttpreq (golint)
    • Line 29: warning: don't use underscores in Go names; func parameter get_or_post should be getOrPost (golint)
    • Line 60: warning: exported type GetTransactionResponse should have comment or be unexported (golint)
    • Line 66: warning: exported type ResponseStruct should have comment or be unexported (golint)
    • Line 72: warning: exported function Sha256 should have comment or be unexported (golint)
    • Line 78: warning: comment on exported type SignDataResponse_Result should be of the form "SignDataResponse_Result ..." (with optional leading article) (golint)
    • Line 79: warning: don't use underscores in Go names; type SignDataResponse_Result should be SignDataResponseResult (golint)
    • Line 83: warning: exported type SignDataResponse should have comment or be unexported (golint)
    • Line 89: warning: error should be the last type when returning multiple items (golint)
    • Line 89: warning: exported function SignHash should have comment or be unexported (golint)
    • Line 126: warning: exported method CLI.BcliSignTrxOverHttp should have comment or be unexported (golint)
    • Line 126: warning: don't use underscores in Go names; method parameter http_url should be httpURL (golint)
    • Line 135: warning: don't use underscores in Go names; var param_bin should be paramBin (golint)
    • Line 172: warning: don't use underscores in Go names; var http_url_sign should be httpURLSign (golint)
    • Line 188: warning: exported method CLI.BcliGetTransaction should have comment or be unexported (golint)
    • Line 193: warning: don't use underscores in Go names; var http_method should be httpMethod (golint)
    • Line 217: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 220: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 276: warning: exported method CLI.BcliSendTransaction should have comment or be unexported (golint)
    • Line 367: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 382: warning: don't use underscores in Go names; var http_method should be httpMethod (golint)
    • Line 393: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 395: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 435: warning: exported type GetContractCodeAbi should have comment or be unexported (golint)
    • Line 439: warning: exported method CLI.BcliGetContractCode should have comment or be unexported (golint)
    • Line 439: warning: don't use underscores in Go names; method parameter save_to_wasm_path should be saveToWasmPath (golint)
    • Line 439: warning: don't use underscores in Go names; method parameter save_to_abi_path should be saveToAbiPath (golint)
    • Line 443: warning: don't use underscores in Go names; var httpurl_contractcode should be httpurlContractcode (golint)
    • Line 446: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 468: warning: don't use underscores in Go names; var http_urlAbi should be httpURLAbi (golint)
    • Line 499: warning: exported method CLI.BCliGetTableInfo should have comment or be unexported (golint)
    • Line 501: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 505: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 522: warning: exported method CLI.BCliAccountStakeInfo should have comment or be unexported (golint)
    • Line 566: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 568: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 606: warning: exported method CLI.BCliAccountUnStakeInfo should have comment or be unexported (golint)
    • Line 650: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 652: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 690: warning: exported method CLI.BCliAccountClaimInfo should have comment or be unexported (golint)
    • Line 734: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 736: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 774: warning: exported method CLI.BCliVoteInfo should have comment or be unexported (golint)
    • Line 821: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 823: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 861: warning: exported method CLI.BCliCancelVoteInfo should have comment or be unexported (golint)
    • Line 907: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 909: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 947: warning: exported method CLI.BCliDelegateRegInfo should have comment or be unexported (golint)
    • Line 994: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 996: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 1034: warning: exported method CLI.BCliDelegateUnRegInfo should have comment or be unexported (golint)
    • Line 1078: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1080: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • bottos/common/types/block-role.go
    • Line 37: warning: exported type BlockV0 should have comment or be unexported (golint)
    • Line 43: warning: comment on exported type Block should be of the form "Block ..." (with optional leading article) (golint)
    • Line 51: warning: exported type Header should have comment or be unexported (golint)
    • Line 62: warning: exported type BlockDetail should have comment or be unexported (golint)
    • Line 75: warning: exported function NewBlock should have comment or be unexported (golint)
    • Line 88: warning: exported function NewHeader should have comment or be unexported (golint)
    • Line 94: warning: exported method Block.Hash should have comment or be unexported (golint)
    • Line 98: warning: exported method Header.Hash should have comment or be unexported (golint)
    • Line 112: warning: exported method Block.Copy should have comment or be unexported (golint)
    • Line 130: warning: exported method Block.InitFromV0 should have comment or be unexported (golint)
    • Line 146: warning: exported method Block.CovertToV0 should have comment or be unexported (golint)
    • Line 161: warning: exported method Block.GetPrevBlockHash should have comment or be unexported (golint)
    • Line 166: warning: exported method Block.GetNumber should have comment or be unexported (golint)
    • Line 170: warning: exported method Block.GetTimestamp should have comment or be unexported (golint)
    • Line 174: warning: exported method Block.GetMerkleRoot should have comment or be unexported (golint)
    • Line 179: warning: exported method Block.ComputeMerkleRoot should have comment or be unexported (golint)
    • Line 190: warning: exported method Block.GetDelegate should have comment or be unexported (golint)
    • Line 194: warning: exported method Block.GetDelegateSign should have comment or be unexported (golint)
    • Line 199: warning: exported method Block.GetTransactionByHash should have comment or be unexported (golint)
    • Line 209: warning: exported method Block.GetVersion should have comment or be unexported (golint)
    • Line 213: warning: exported method Header.GetPrevBlockHash should have comment or be unexported (golint)
    • Line 213: warning: receiver name m should be consistent with previous receiver name h for Header (golint)
    • Line 220: warning: exported method Header.GetNumber should have comment or be unexported (golint)
    • Line 220: warning: receiver name m should be consistent with previous receiver name h for Header (golint)
    • Line 227: warning: exported method Header.GetTimestamp should have comment or be unexported (golint)
    • Line 227: warning: receiver name m should be consistent with previous receiver name h for Header (golint)
    • Line 234: warning: exported method Header.GetMerkleRoot should have comment or be unexported (golint)
    • Line 234: warning: receiver name m should be consistent with previous receiver name h for Header (golint)
    • Line 241: warning: exported method Header.GetDelegate should have comment or be unexported (golint)
    • Line 241: warning: receiver name m should be consistent with previous receiver name h for Header (golint)
    • Line 248: warning: exported method Header.GetDelegateSign should have comment or be unexported (golint)
    • Line 248: warning: receiver name m should be consistent with previous receiver name h for Header (golint)
    • Line 255: warning: exported method Header.GetDelegateChanges should have comment or be unexported (golint)
    • Line 255: warning: receiver name m should be consistent with previous receiver name h for Header (golint)
    • Line 262: warning: exported method Header.GetVersion should have comment or be unexported (golint)
    • Line 262: warning: receiver name m should be consistent with previous receiver name h for Header (golint)
    • Line 269: warning: exported method Block.SignVote should have comment or be unexported (golint)
    • Line 286: warning: exported method Block.VerifyVote should have comment or be unexported (golint)
    • Line 302: warning: exported method Block.MarshalCompatibly should have comment or be unexported (golint)
    • Line 307: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 313: warning: exported method Block.Marshal should have comment or be unexported (golint)
    • Line 317: warning: exported method Block.UnmarshalCompatibly should have comment or be unexported (golint)
    • Line 336: warning: exported method Block.Unmarshal should have comment or be unexported (golint)
    • bottos/common/safemath/safemath.go
    • Line 72: warning: comment on exported function U256Add should be of the form "U256Add ..." (golint)
    • Line 115: warning: exported function U256Div should have comment or be unexported (golint)
    • Line 126: warning: exported function U256Mod should have comment or be unexported (golint)
    • bottos/common/name.go
    • Line 39: warning: exported type NameType should have comment or be unexported (golint)
    • Line 42: warning: exported const NameTypeAccount should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: comment on exported const CONTRACT_NAME_REGEXP should be of the form "CONTRACT_NAME_REGEXP ..." (golint)
    • Line 49: warning: exported const ACCOUNT_NAME_REGEXP should have comment or be unexported (golint)
    • Line 50: warning: exported const EX_CONTRACT_NAME_REGEXP should have comment or be unexported (golint)
    • Line 53: warning: exported var AccountReg should have comment or be unexported (golint)
    • Line 54: warning: exported var ContractReg should have comment or be unexported (golint)
    • Line 55: warning: exported var ExContractReg should have comment or be unexported (golint)
    • Line 58: warning: exported function CheckAccountNameContent should have comment or be unexported (golint)
    • Line 62: warning: exported function CheckContractNameContent should have comment or be unexported (golint)
    • Line 66: warning: exported function CheckExContractNameContent should have comment or be unexported (golint)
    • Line 70: warning: exported function AnalyzeName should have comment or be unexported (golint)
    • bottos/plugin/mongodb/mdb.go
    • Line 44: warning: exported type MongoDBPlugin should have comment or be unexported (golint)
    • Line 94: warning: exported function NewMongoDBPlugin should have comment or be unexported (golint)
    • Line 98: warning: exported method MongoDBPlugin.ApplyBlock should have comment or be unexported (golint)
    • Line 340: warning: comment on exported var ExternalAbiMap should be of the form "ExternalAbiMap ..." (golint)
    • bottos/db/platform/codedb/codedb-repo.go
    • Line 36: warning: comment on exported type MultindexDB should be of the form "MultindexDB ..." (with optional leading article) (golint)
    • Line 52: warning: comment on exported function NewMultindexDB should be of the form "NewMultindexDB ..." (golint)
    • Line 73: warning: exported method MultindexDB.CallClose should have comment or be unexported (golint)
    • Line 85: warning: exported method MultindexDB.CallGlobalLock should have comment or be unexported (golint)
    • Line 89: warning: exported method MultindexDB.CallGlobalUnLock should have comment or be unexported (golint)
    • Line 93: warning: exported method MultindexDB.CallLock should have comment or be unexported (golint)
    • Line 97: warning: exported method MultindexDB.CallUnLock should have comment or be unexported (golint)
    • bottos/db/platform/codedb/codedb-undo-item.go
    • Line 11: warning: exported const UndoObjectName should have comment or be unexported (golint)
    • Line 12: warning: exported const UndoObjectKeyName should have comment or be unexported (golint)
    • Line 13: warning: exported const DB_REVISION_KEY should have comment or be unexported (golint)
    • Line 15: warning: exported type UndoObjectValue should have comment or be unexported (golint)
    • Line 21: warning: exported type DbItem should have comment or be unexported (golint)
    • Line 26: warning: exported type UndoRecord should have comment or be unexported (golint)
    • Line 30: warning: exported type RevisionRecord should have comment or be unexported (golint)
    • bottos/vm/wasm/exec/conv.go
    • Line 184: warning: exported method VM.StrLen should have comment or be unexported (golint)
    • Line 205: warning: comment on exported function ConvertStr should be of the form "ConvertStr ..." (golint)
    • Line 226: warning: exported function UnConvertStr should have comment or be unexported (golint)
    • Line 254: warning: comment on exported function Convert should be of the form "Convert ..." (golint)
    • Line 282: warning: exported function RemoveElement should have comment or be unexported (golint)
    • Line 286: warning: exported function ByteArrToNum should have comment or be unexported (golint)
    • Line 296: warning: comment on exported function PackStrToByteArray should be of the form "PackStrToByteArray ..." (golint)
    • Line 347: warning: comment on exported function ConvertU8Byte should be of the form "ConvertU8Byte ..." (golint)
    • bottos/vm/duktape/interface.go
    • Line 50: warning: exported type SubTrx should have comment or be unexported (golint)
    • Line 59: warning: exported function InitDuktapeVm should have comment or be unexported (golint)
    • Line 64: warning: exported function Process should have comment or be unexported (golint)
    • Line 87: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bottos/action/actor/api/service.go
    • Line 65: warning: comment on exported function SetTrxPreHandleActorPid should be of the form "SetTrxPreHandleActorPid ..." (golint)
    • Line 70: warning: exported function ConvertApiTrxToIntTrx should have comment or be unexported (golint)
    • Line 97: warning: exported function ConvertIntTrxToApiTrx should have comment or be unexported (golint)
    • Line 230: warning: exported var QuerhChainInfoCntReq should have comment or be unexported (golint)
    • Line 231: warning: exported var QuerhChainInfoCntSuc should have comment or be unexported (golint)
    • Line 447: warning: comment on exported method ApiService.UnlockAccount should be of the form "UnlockAccount ..." (golint)
    • Line 458: warning: comment on exported method ApiService.LockAccount should be of the form "LockAccount ..." (golint)
    • Line 523: warning: comment on exported method ApiService.GetPubKey should be of the form "GetPubKey ..." (golint)
    • Line 530: warning: comment on exported method ApiService.GetForecastResBalance should be of the form "GetForecastResBalance ..." (golint)
    • bottos/role/delegate-vote-role.go
    • Line 23: warning: exported const DelegateVotesObjectIndexVoteJSON should have comment or be unexported (golint)
    • Line 27: warning: exported const DelegateVotesObjectIndexFinishTimeJSON should have comment or be unexported (golint)
    • bottos/role/role.go
    • Line 155: warning: exported method Role.SetGenesisState should have comment or be unexported (golint)
    • Line 159: warning: exported method Role.GetGenesisState should have comment or be unexported (golint)
    • Line 163: warning: exported method Role.IsChainActivated should have comment or be unexported (golint)
    • Line 183: warning: exported method Role.IsTransitPeriod should have comment or be unexported (golint)
    • Line 276: warning: comment on exported method Role.SetVoter should be of the form "SetVoter ..." (golint)
    • Line 281: warning: comment on exported method Role.GetVoter should be of the form "GetVoter ..." (golint)
    • Line 361: warning: exported method Role.SetStrValue should have comment or be unexported (golint)
    • Line 365: warning: exported method Role.GetStrValue should have comment or be unexported (golint)
    • Line 369: warning: exported method Role.SetBinValue should have comment or be unexported (golint)
    • Line 373: warning: exported method Role.GetBinValue should have comment or be unexported (golint)
    • Line 377: warning: exported method Role.RemoveKeyValue should have comment or be unexported (golint)
    • bottos/db/platform/codedb/codedb-auto-inc.go
    • Line 28: warning: exported type AutoInc should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 52: warning: exported method AutoInc.Id should have comment or be unexported (golint)
    • Line 56: warning: exported method AutoInc.Close should have comment or be unexported (golint)
    • bottos/vm/wasm/exec/vm.go
    • Line 42: warning: exported type SrcFileType should have comment or be unexported (golint)
    • Line 44: warning: exported const CPP should have comment (or a comment on this block) or be unexported (golint)
    • Line 559: warning: exported method VM.RecoverContext should have comment or be unexported (golint)
    • bottos/role/transaction-expiration-role.go
    • Line 38: warning: exported const TransactionExpirationObjectName should have comment or be unexported (golint)
    • Line 39: warning: exported const TransactionExpirationObjectKeyName should have comment or be unexported (golint)
    • Line 40: warning: exported const TransactionExpirationObjectIndexExpiration should have comment or be unexported (golint)
    • Line 103: warning: exported function RemoveTransactionExpirationRoleByExpiration should have comment or be unexported (golint)
    • bottos/restful/handler/responseBean.go
    • Line 3: warning: exported type ResponseStruct should have comment or be unexported (golint)
    • Line 9: warning: exported type ResponseStructs should have comment or be unexported (golint)
    • Line 11: warning: exported type NewAccount should have comment or be unexported (golint)
    • bottos/restful/handler/routes.go
    • Line 10: warning: comment on exported const GET_BLK_INFO should be of the form "GET_BLK_INFO ..." (golint)
    • Line 12: warning: exported const GET_BLK_DETAIL should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported const SEND_TRANSACTION should be of the form "SEND_TRANSACTION ..." (golint)
    • Line 21: warning: comment on exported const GET_ACCOUNT_BRIEF should be of the form "GET_ACCOUNT_BRIEF ..." (golint)
    • Line 26: warning: comment on exported const GET_CONTRACT_ABI should be of the form "GET_CONTRACT_ABI ..." (golint)
    • Line 30: warning: comment on exported const QUERY_DB_VALUE should be of the form "QUERY_DB_VALUE ..." (golint)
    • Line 34: warning: comment on exported const GET_GEN_BLK_TIME should be of the form "GET_GEN_BLK_TIME ..." (golint)
    • Line 38: warning: comment on exported const GET_ALL_DELEFATE should be of the form "GET_ALL_DELEFATE ..." (golint)
    • Line 41: warning: comment on exported const GET_GLOBAL_STAKED should be of the form "GET_GLOBAL_STAKED ..." (golint)
    • Line 45: warning: comment on exported const GET_ALL_PEERINFO should be of the form "GET_ALL_PEERINFO ..." (golint)
    • Line 51: warning: comment on exported const Proposal_Review should be of the form "Proposal_Review ..." (golint)
    • Line 52: warning: don't use underscores in Go names; const Proposal_Review should be ProposalReview (golint)
    • Line 55: warning: exported type Route should have comment or be unexported (golint)
    • Line 62: warning: exported type Routes should have comment or be unexported (golint)
    • Line 64: warning: exported function NewRouter should have comment or be unexported (golint)
    • bottos/restful/log/routes.go
    • Line 10: warning: exported const SET_CONFIGITEM should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type Route should have comment or be unexported (golint)
    • Line 20: warning: exported type Routes should have comment or be unexported (golint)
    • Line 22: warning: exported function NewRouter should have comment or be unexported (golint)
    • bottos/action/actor/net/netactor.go
    • Line 39: warning: exported type NetActor should have comment or be unexported (golint)
    • Line 46: warning: exported function NewNetActor should have comment or be unexported (golint)
    • Line 62: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 112: warning: exported method NetActor.Receive should have comment or be unexported (golint)
    • Line 128: warning: exported function SetChainActorPid should have comment or be unexported (golint)
    • Line 132: warning: exported function SetTrxPreHandleActorPid should have comment or be unexported (golint)
    • Line 136: warning: exported function SetConsensusActorPid should have comment or be unexported (golint)
    • bottos/config/config.go
    • Line 50: warning: exported const DefaultDataDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported const DefaultGenesisTime should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported type BottosConfig should have comment or be unexported (golint)
    • Line 87: warning: exported type NodeConfig should have comment or be unexported (golint)
    • Line 91: warning: exported type RestConfig should have comment or be unexported (golint)
    • Line 96: warning: exported type P2PConfig should have comment or be unexported (golint)
    • Line 105: warning: exported type DelegateConfig should have comment or be unexported (golint)
    • Line 111: warning: exported type PluginConfig should have comment or be unexported (golint)
    • Line 117: warning: exported type WalletConfig should have comment or be unexported (golint)
    • Line 123: warning: exported type LogRestConfig should have comment or be unexported (golint)
    • Line 128: warning: exported type MongoDBConfig should have comment or be unexported (golint)
    • Line 132: warning: comment on exported type Signature should be of the form "Signature ..." (with optional leading article) (golint)
    • Line 146: warning: exported function InitConfig should have comment or be unexported (golint)
    • Line 199: warning: exported function GetChainID should have comment or be unexported (golint)
    • Line 217: warning: exported function LoadGenesisFile should have comment or be unexported (golint)
    • Line 252: warning: exported function SetGenesisConfig should have comment or be unexported (golint)
    • Line 270: warning: exported function FileExist should have comment or be unexported (golint)
    • Line 412: warning: exported function GetDelegateSignKey should have comment or be unexported (golint)
    • bottos/action/actor/chain/chainactor.go
    • Line 44: warning: exported var NetActorPid should have comment or be unexported (golint)
    • Line 56: warning: comment on exported function SetTrxPoolActorPid should be of the form "SetTrxPoolActorPid ..." (golint)
    • Line 225: warning: exported function BroadCastBlock should have comment or be unexported (golint)
    • bottos/contract/abi/abi.go
    • Line 60: warning: don't use underscores in Go names; struct field Table_name should be TableName (golint)
    • Line 61: warning: don't use underscores in Go names; struct field Index_type should be IndexType (golint)
    • Line 62: warning: don't use underscores in Go names; struct field Key_names should be KeyNames (golint)
    • Line 63: warning: don't use underscores in Go names; struct field Key_types should be KeyTypes (golint)
    • Line 180: warning: don't use underscores in Go names; func parameter table_name should be tableName (golint)
    • Line 196: warning: don't use underscores in Go names; func parameter table_name should be tableName (golint)
    • Line 221: warning: don't use underscores in Go names; func parameter table_name should be tableName (golint)
    • Line 439: warning: exported function Setmapval should have comment or be unexported (golint)
    • Line 603: warning: comment on exported function UnmarshalAbiExForMgoDB should be of the form "UnmarshalAbiExForMgoDB ..." (golint)
    • Line 734: warning: exported function GetAbi should have comment or be unexported (golint)
    • Line 744: warning: exported function CreateNativeContractABI should have comment or be unexported (golint)
    • bottos/bpl/unpack.go
    • Line 59: warning: exported function ReadByte should have comment or be unexported (golint)
    • Line 68: warning: comment on exported function TryUnpackNil should be of the form "TryUnpackNil ..." (golint)
    • Line 115: warning: exported function ReadUint16 should have comment or be unexported (golint)
    • Line 137: warning: exported function ReadUint32 should have comment or be unexported (golint)
    • Line 159: warning: exported function ReadUint64 should have comment or be unexported (golint)
    • Line 235: warning: exported function UnpackExt16 should have comment or be unexported (golint)
    • bottos/db/platform/codedb/codedb-multi-index.go
    • Line 32: warning: exported method MultindexDB.CallCreatObjectIndex should have comment or be unexported (golint)
    • Line 38: warning: exported method MultindexDB.CallCreatObjectMultiIndex should have comment or be unexported (golint)
    • Line 42: warning: exported method MultindexDB.CallDeleteObject should have comment or be unexported (golint)
    • bottos/db/db-codedb.go
    • Line 43: warning: comment on exported method DBService.CreatObjectMultiIndex should be of the form "CreatObjectMultiIndex ..." (golint)
    • Line 85: warning: comment on exported method DBService.GetObjectsWithinRangeByIndex should be of the form "GetObjectsWithinRangeByIndex ..." (golint)
    • Line 105: warning: exported method DBService.RollbackAll should have comment or be unexported (golint)
    • Line 109: warning: exported method DBService.AddObject should have comment or be unexported (golint)
    • Line 112: warning: exported method DBService.GetSession should have comment or be unexported (golint)
    • Line 115: warning: exported method DBService.GetSessionEx should have comment or be unexported (golint)
    • Line 118: warning: exported method DBService.ResetSession should have comment or be unexported (golint)
    • Line 121: warning: exported method DBService.ResetSubSession should have comment or be unexported (golint)
    • Line 124: warning: exported method DBService.FreeSessionEx should have comment or be unexported (golint)
    • Line 127: warning: exported method DBService.Squash should have comment or be unexported (golint)
    • Line 131: warning: exported method DBService.UndoFlush should have comment or be unexported (golint)
    • Line 134: warning: exported method DBService.LoadStateDB should have comment or be unexported (golint)
    • Line 138: warning: exported method DBService.ReleaseUndoInfo should have comment or be unexported (golint)
    • Line 142: warning: exported method DBService.Push should have comment or be unexported (golint)
    • Line 145: warning: exported method DBService.PushEx should have comment or be unexported (golint)
    • Line 148: warning: exported method DBService.Lock should have comment or be unexported (golint)
    • Line 151: warning: exported method DBService.UnLock should have comment or be unexported (golint)
    • bottos/common/types/transaction-role.go
    • Line 52: warning: exported type P2PTransaction should have comment or be unexported (golint)
    • Line 56: warning: exported type BlockTransaction should have comment or be unexported (golint)
    • Line 61: warning: comment on exported type ResourceReceipt should be of the form "ResourceReceipt ..." (with optional leading article) (golint)
    • bottos/bpl/encode.go
    • Line 37: warning: exported type EncodeContext should have comment or be unexported (golint)
    • Line 52: warning: exported const EXT_BIGINT should have comment (or a comment on this block) or be unexported (golint)
    • bottos/version/version.go
    • Line 13: warning: exported type VersionInfo should have comment or be unexported (golint)
    • Line 27: warning: exported function Init should have comment or be unexported (golint)
    • Line 37: 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 50: warning: exported function GetAppVersionString should have comment or be unexported (golint)
    • Line 54: warning: exported function GetAppVersionNum should have comment or be unexported (golint)
    • Line 58: warning: exported function GetVersionByBlockNum should have comment or be unexported (golint)
    • Line 69: warning: exported function GetVersionNumByBlockNum should have comment or be unexported (golint)
    • Line 72: 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 77: warning: exported function CheckBlock should have comment or be unexported (golint)
    • Line 91: warning: exported function GetStringVersion should have comment or be unexported (golint)
    • Line 96: warning: exported function GetUintVersion should have comment or be unexported (golint)
    • Line 136: warning: comment on exported function BlockVersionRule should be of the form "BlockVersionRule ..." (golint)
    • Line 157: warning: exported function BlockHeaderVersionRule should have comment or be unexported (golint)
    • Line 177: warning: exported function TrxVersionRule should have comment or be unexported (golint)
    • bottos/bcli/config.go
    • Line 40: warning: exported const PUBKEY_LEN should have comment (or a comment on this block) or be unexported (golint)
    • bottos/common/vm/vm.go
    • Line 3: warning: exported type VmType should have comment or be unexported (golint)
    • Line 6: warning: exported const VmTypeUnkonw should have comment (or a comment on this block) or be unexported (golint)
    • bottos/db/db-kv.go
    • Line 65: warning: exported method DBService.NewBatch should have comment or be unexported (golint)
    • Line 69: warning: exported method DBService.BatchPut should have comment or be unexported (golint)
    • Line 73: warning: exported method DBService.BatchDelete should have comment or be unexported (golint)
    • Line 77: warning: exported method DBService.BatchCommit should have comment or be unexported (golint)
    • bottos/common/errors/errorcode.go
    • Line 59: warning: comment on exported const ErrTrxAlreadyInPool should be of the form "ErrTrxAlreadyInPool ..." (golint)
    • Line 87: warning: exported const ErrTrxExecTimeOver should have comment (or a comment on this block) or be unexported (golint)
    • Line 170: warning: comment on exported const ErrBlockInsertErrorValidateFail should be of the form "ErrBlockInsertErrorValidateFail ..." (golint)
    • Line 172: warning: comment on exported const ErrBlockInsertErrorDiffLibLinked should be of the form "ErrBlockInsertErrorDiffLibLinked ..." (golint)
    • Line 174: warning: comment on exported const ErrBlockInsertErrorDiffLibNotLinked should be of the form "ErrBlockInsertErrorDiffLibNotLinked ..." (golint)
    • Line 187: warning: comment on exported const ErrMsignProposalNotFound should be of the form "ErrMsignProposalNotFound ..." (golint)
    • Line 191: warning: comment on exported const ErrMsignProposalApprovedNotFound should be of the form "ErrMsignProposalApprovedNotFound ..." (golint)
    • Line 193: warning: comment on exported const ErrMsignProposalTransferIllegal should be of the form "ErrMsignProposalTransferIllegal ..." (golint)
    • Line 195: warning: comment on exported const ErrMsignProposalWeightNotEnough should be of the form "ErrMsignProposalWeightNotEnough ..." (golint)
    • Line 197: warning: comment on exported const ErrMsignProposalNoAuthorityData should be of the form "ErrMsignProposalNoAuthorityData ..." (golint)
    • Line 199: warning: comment on exported const ErrMsignProposalThresholdIllegal should be of the form "ErrMsignProposalThresholdIllegal ..." (golint)
    • Line 201: warning: comment on exported const ErrMsignProposalAuthorityAccountIllegal should be of the form "ErrMsignProposalAuthorityAccountIllegal ..." (golint)
    • Line 204: warning: comment on exported const RestErrInternal should be of the form "RestErrInternal ..." (golint)
    • Line 242: warning: comment on exported const WASMExecErrorStart should be of the form "WASMExecErrorStart ..." (golint)
    • Line 245: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_CREATE_VM should be WASMEXecErrorVMERRCREATEVM (golint)
    • Line 246: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_GET_VM should be WASMEXecErrorVMERRGETVM (golint)
    • Line 247: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_FIND_VM_METHOD should be WASMEXecErrorVMERRFINDVMMETHOD (golint)
    • Line 248: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_PARAM_COUNT should be WASMEXecErrorVMERRPARAMCOUNT (golint)
    • Line 249: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_UNSUPPORT_TYPE should be WASMEXecErrorVMERRUNSUPPORTTYPE (golint)
    • Line 250: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_EXEC_FAILED should be WASMEXecErrorVMERREXECFAILED (golint)
    • Line 252: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_OUT_OF_MEMORY should be WASMEXecErrorVMERROUTOFMEMORY (golint)
    • Line 253: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_INVALID_PARAMETER_COUNT should be WASMEXecErrorVMERRINVALIDPARAMETERCOUNT (golint)
    • Line 254: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_FAIL_EXECUTE_ENVFUNC should be WASMEXecErrorVMERRFAILEXECUTEENVFUNC (golint)
    • Line 255: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_FAIL_STORAGE_MEMORY should be WASMEXecErrorVMERRFAILSTORAGEMEMORY (golint)
    • Line 256: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_EXEC_TIME_OVER should be WASMEXecErrorVMERREXECTIMEOVER (golint)
    • Line 257: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_EXEC_PANIC should be WASMEXecErrorVMERREXECPANIC (golint)
    • Line 258: warning: don't use underscores in Go names; const WASMEXecError_VM_ERR_EXEC_DEFER should be WASMEXecErrorVMERREXECDEFER (golint)
    • Line 260: warning: comment on exported const JSExecErrorStart should be of the form "JSExecErrorStart ..." (golint)
    • Line 263: warning: don't use underscores in Go names; const JSExecError_VM_CTX_INIT_FAIL should be JSExecErrorVMCTXINITFAIL (golint)
    • Line 264: warning: don't use underscores in Go names; const JSExecError_VM_LOAD_CODE_FAIL should be JSExecErrorVMLOADCODEFAIL (golint)
    • Line 265: warning: don't use underscores in Go names; const JSExecError_VM_JS_CALL_FAIL should be JSExecErrorVMJSCALLFAIL (golint)
    • Line 266: warning: don't use underscores in Go names; const JSExecError_VM_JS_RTN_FAIL should be JSExecErrorVMJSRTNFAIL (golint)
    • Line 267: warning: don't use underscores in Go names; const JSExecError_VM_ADD_SUB_TRX_FAIL should be JSExecErrorVMADDSUBTRXFAIL (golint)
    • Line 435: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bottos/common/signature/signature.go
    • Line 19: warning: exported function SignWithKey should have comment or be unexported (golint)
    • Line 27: warning: exported function SignWithWallet should have comment or be unexported (golint)
    • Line 54: warning: exported function SignHash should have comment or be unexported (golint)
    • Line 78: warning: exported function SignByDelegate should have comment or be unexported (golint)
    • Line 100: warning: exported function Sign should have comment or be unexported (golint)
    • Line 104: warning: exported function VerifySign should have comment or be unexported (golint)
    • bottos/bcli/bcli.go
    • Line 294: warning: exported method CLI.UnlockWalletOverHttp should have comment or be unexported (golint)
    • Line 294: warning: don't use underscores in Go names; method parameter http_url should be httpURL (golint)
    • Line 299: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 330: warning: exported method CLI.GetPrivateKeyOverHttp should have comment or be unexported (golint)
    • Line 330: warning: don't use underscores in Go names; method parameter http_url should be httpURL (golint)
    • Line 335: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 381: warning: exported method CLI.GetChainInfoOverHttp should have comment or be unexported (golint)
    • Line 381: warning: don't use underscores in Go names; method parameter http_url should be httpURL (golint)
    • Line 384: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 415: warning: don't use underscores in Go names; method parameter http_url should be httpURL (golint)
    • Line 415: warning: don't use underscores in Go names; method parameter block_num should be blockNum (golint)
    • Line 415: warning: don't use underscores in Go names; method parameter block_hash should be blockHash (golint)
    • Line 426: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 457: warning: don't use underscores in Go names; method parameter http_url should be httpURL (golint)
    • Line 461: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 591: warning: don't use underscores in Go names; var add_zero_cnt should be addZeroCnt (golint)
    • Line 630: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 640: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 748: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 758: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 815: warning: don't use underscores in Go names; var transfer_value_str should be transferValueStr (golint)
    • Line 822: warning: don't use underscores in Go names; var transfer_bytes should be transferBytes (golint)
    • Line 857: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 867: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 900: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 903: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 966: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 969: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 1067: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1070: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 1164: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1167: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 1263: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1266: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 1349: warning: exported function IsContractExist should have comment or be unexported (golint)
    • Line 1355: warning: don't use underscores in Go names; var httpurl_contractcode should be httpurlContractcode (golint)
    • Line 1358: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 1404: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1485: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1495: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 1742: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1744: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 1860: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1985: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 1997: warning: don't use underscores in Go names; var http_method should be httpMethod (golint)
    • Line 2012: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 2014: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 2118: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 2128: warning: don't use underscores in Go names; var http_method should be httpMethod (golint)
    • Line 2139: warning: don't use underscores in Go names; var http_url should be httpURL (golint)
    • Line 2141: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • Line 2160: warning: exported function GetAbiOverHttp should have comment or be unexported (golint)
    • Line 2160: warning: don't use underscores in Go names; func parameter http_url should be httpURL (golint)
    • Line 2163: warning: don't use underscores in Go names; var req_new should be reqNew (golint)
    • bottos/bcli/bcli_cmd.go
    • Line 32: warning: exported var ChainAddr should have comment or be unexported (golint)
    • Line 33: warning: exported var ChainId should have comment or be unexported (golint)
    • Line 58: warning: don't use underscores in Go names; var len_letters should be lenLetters (golint)
    • Line 98: warning: exported function MigrateFlags should have comment or be unexported (golint)
    • Line 115: warning: exported method CLI.BcliGetChainInfo should have comment or be unexported (golint)
    • Line 129: warning: exported method CLI.BcliGetBlockInfo should have comment or be unexported (golint)
    • Line 144: warning: exported method CLI.BcliNewAccount should have comment or be unexported (golint)
    • Line 154: warning: exported method CLI.BcliGetAccount should have comment or be unexported (golint)
    • Line 163: warning: exported method CLI.BcliTransfer should have comment or be unexported (golint)
    • Line 178: warning: exported method CLI.BCLIGetTransaction should have comment or be unexported (golint)
    • Line 187: warning: exported method CLI.BCLIPushTransaction should have comment or be unexported (golint)
    • Line 209: warning: exported method CLI.BCLIDeployCode should have comment or be unexported (golint)
    • Line 219: warning: exported method CLI.BCLIDeployAbi should have comment or be unexported (golint)
    • Line 228: warning: exported method CLI.BCLIDeployBoth should have comment or be unexported (golint)
    • Line 267: warning: exported method CLI.BCLIGetContractCode should have comment or be unexported (golint)
    • Line 277: warning: exported method CLI.BCLIGetTableInfo should have comment or be unexported (golint)
    • Line 287: warning: exported method CLI.BcliAccountStake should have comment or be unexported (golint)
    • Line 300: warning: exported method CLI.BcliAccountUnStake should have comment or be unexported (golint)
    • Line 313: warning: exported method CLI.BcliAccountClaim should have comment or be unexported (golint)
    • Line 326: warning: exported method CLI.BcliVote should have comment or be unexported (golint)
    • Line 335: warning: exported method CLI.BcliCancelVote should have comment or be unexported (golint)
    • Line 344: warning: exported method CLI.BcliDelegateReg should have comment or be unexported (golint)
    • Line 355: warning: exported method CLI.BcliDelegateUnReg should have comment or be unexported (golint)
    • Line 363: warning: exported method CLI.RunNewCLI should have comment or be unexported (golint)
    • Line 363: warning: receiver name Cli should be consistent with previous receiver name cli for CLI (golint)
    • bottos/plugin/mongodb/mdb-actor.go
    • Line 36: warning: exported type MdbActor should have comment or be unexported (golint)
    • Line 77: warning: exported method MdbActor.Receive should have comment or be unexported (golint)
    • Line 90: warning: comment on exported method MdbActor.HandleReceiveBlock should be of the form "HandleReceiveBlock ..." (golint)
    • bottos/role/key-value-role.go
    • Line 47: warning: comment on exported function SetStrValue should be of the form "SetStrValue ..." (golint)
    • Line 60: warning: comment on exported function GetStrValue should be of the form "GetStrValue ..." (golint)
    • Line 73: warning: comment on exported function RemoveKeyValue should be of the form "RemoveKeyValue ..." (golint)
    • Line 86: warning: comment on exported function SetBinValue should be of the form "SetBinValue ..." (golint)
    • Line 98: warning: comment on exported function GetBinValue should be of the form "GetBinValue ..." (golint)
    • Line 111: warning: exported function IsBinExist should have comment or be unexported (golint)
    • Line 120: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bottos/restful/handler/handlers.go
    • Line 41: warning: don't use underscores in Go names; type ListWalletResponse_Result should be ListWalletResponseResult (golint)
    • Line 41: warning: exported type ListWalletResponse_Result should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function SetRoleIntf should be of the form "SetRoleIntf ..." (golint)
    • Line 67: warning: comment on exported function SetTrxPreHandleActorPid should be of the form "SetTrxPreHandleActorPid ..." (golint)
    • Line 94: warning: comment on exported function GetGenerateBlockTime should be of the form "GetGenerateBlockTime ..." (golint)
    • Line 319: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 343: warning: exported type BlockTransaction should have comment or be unexported (golint)
    • Line 349: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 378: warning: exported function ParseTransactionParam should have comment or be unexported (golint)
    • Line 492: warning: exported type TransactionStatus should have comment or be unexported (golint)
    • Line 496: warning: exported function GetTransactionStatus should have comment or be unexported (golint)
    • Line 683: warning: exported function GetKeyValue should have comment or be unexported (golint)
    • Line 719: warning: exported function GetContractAbi should have comment or be unexported (golint)
    • Line 752: warning: exported function GetContractCode should have comment or be unexported (golint)
    • Line 785: warning: exported function GetTransferCredit should have comment or be unexported (golint)
    • Line 817: warning: comment on exported function ConnetPeerbyAddress should be of the form "ConnetPeerbyAddress ..." (golint)
    • Line 844: warning: comment on exported function DisConnectPeerbyAddress should be of the form "DisConnectPeerbyAddress ..." (golint)
    • Line 871: warning: comment on exported function GetPeerStatebyAddress should be of the form "GetPeerStatebyAddress ..." (golint)
    • Line 946: warning: exported function PushTrxReq should have comment or be unexported (golint)
    • Line 967: warning: exported function GetBlockHeader should have comment or be unexported (golint)
    • Line 993: warning: exported function PushTrx should have comment or be unexported (golint)
    • Line 1033: warning: exported function JsonToBin should have comment or be unexported (golint)
    • Line 1073: warning: exported function GetContract should have comment or be unexported (golint)
    • Line 1077: warning: exported function ReviewProposal should have comment or be unexported (golint)
    • Line 1167: warning: exported function GetTrxHashForSign should have comment or be unexported (golint)
    • bottos/p2p/peer.go
    • Line 101: warning: receiver name a should be consistent with previous receiver name pi for PeerInfo (golint)
    • Line 106: warning: receiver name a should be consistent with previous receiver name pi for PeerInfo (golint)
    • Line 111: warning: receiver name a should be consistent with previous receiver name pi for PeerInfo (golint)
    • bottos/vm/wasm/exec/wasm_api.go
    • Line 65: warning: exported const CALL_MAX_VM_LIMIT should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: comment on exported const SUB_WASM_FILE should be of the form "SUB_WASM_FILE ..." (golint)
    • Line 235: warning: comment on exported function NewWASM1 should be of the form "NewWASM1 ..." (golint)
    • Line 271: warning: comment on exported function NewWASM should be of the form "NewWASM ..." (golint)
    • Line 277: warning: don't use underscores in Go names; var wasm_code should be wasmCode (golint)
    • Line 301: warning: don't use underscores in Go names; var wasm_file should be wasmFile (golint)
    • bottos/config/default-value.go
    • Line 84: warning: exported const DEFAULT_MAX_SYNC_DISTANCE_PUT_TRX_IN_CACHE should have comment or be unexported (golint)
    • Line 106: warning: exported const DEFAUL_MAX_NOTICE_CONTRACT_NUM should have comment or be unexported (golint)
    • Line 108: warning: exported const PRIMARY_TRX_SESSION should have comment or be unexported (golint)
    • Line 109: warning: exported const SUB_TRX_SESSION should have comment or be unexported (golint)
    • Line 110: warning: exported const CONSENSUS_VERSION should have comment or be unexported (golint)
    • Line 112: warning: exported const TRX_IN should have comment or be unexported (golint)
    • Line 113: warning: exported const TRX_IN_TTL should have comment or be unexported (golint)
    • Line 114: warning: exported const TRX_OUT should have comment or be unexported (golint)
    • Line 115: warning: exported const TRX_OUT_TTL should have comment or be unexported (golint)
    • bottos/role/transit-role-vole.go
    • Line 18: warning: package comment should be of the form "Package role ..." (golint)
    • Line 18: warning: package comment should not have leading space (golint)
    • Line 45: warning: exported const TransitVotesObjectIndexVoteJSON should have comment or be unexported (golint)
    • bottos/protocol/block/block.go
    • Line 143: warning: comment on exported method Block.GetSyncDistance should be of the form "GetSyncDistance ..." (golint)
    • Line 151: warning: exported method Block.UpdateHeadNumber should have comment or be unexported (golint)
    • Line 158: warning: exported method Block.UpdateNumber should have comment or be unexported (golint)
    • Line 302: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bottos/db/platform/codedb/codedb-session.go
    • Line 10: warning: exported method MultindexDB.CallBeginUndo should have comment or be unexported (golint)
    • Line 33: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 58: warning: exported method MultindexDB.CallResetSession should have comment or be unexported (golint)
    • Line 76: warning: exported method MultindexDB.CallResetSubSession should have comment or be unexported (golint)
    • Line 91: warning: exported method MultindexDB.CallResetSessionEx should have comment or be unexported (golint)
    • Line 104: warning: exported method MultindexDB.CallGetSession should have comment or be unexported (golint)
    • Line 111: warning: exported method MultindexDB.CallGetSubSession should have comment or be unexported (golint)
    • Line 118: warning: exported method MultindexDB.CallGetSessionEx should have comment or be unexported (golint)
    • Line 126: warning: exported method MultindexDB.CallFreeSessionEx should have comment or be unexported (golint)
    • Line 136: warning: exported method MultindexDB.CallSquash should have comment or be unexported (golint)
    • Line 152: warning: exported method MultindexDB.CallPush should have comment or be unexported (golint)
    • Line 178: warning: exported method MultindexDB.CallPushEx should have comment or be unexported (golint)
    • bottos/bcli/bcli_binary.go
    • Line 13: warning: don't use underscores in Go names; func parameter binary_strings should be binaryStrings (golint)
    • Line 13: warning: don't use underscores in Go names; func parameter to_file_path should be toFilePath (golint)
    • Line 29: warning: don't use underscores in Go names; var bin_buf should be binBuf (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.

    • bottos/bpl/bpl_test.go
    • Line 75: warning: ineffectual assignment to err (ineffassign)
    • Line 98: warning: ineffectual assignment to err (ineffassign)
    • Line 125: warning: ineffectual assignment to err (ineffassign)
    • Line 151: warning: ineffectual assignment to err (ineffassign)
    • Line 172: warning: ineffectual assignment to err (ineffassign)
    • Line 193: warning: ineffectual assignment to err (ineffassign)
    • Line 211: warning: ineffectual assignment to err (ineffassign)
    • Line 245: warning: ineffectual assignment to err (ineffassign)
    • Line 265: warning: ineffectual assignment to err (ineffassign)
    • Line 366: warning: ineffectual assignment to err (ineffassign)

misspell95%

Misspell Finds commonly misspelled English words

    • bottos/protocol/block/sync.go
    • Line 783: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 784: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 904: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 905: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 1289: warning: "lenght" is a misspelling of "length" (misspell)
    • Line 1290: warning: "lenght" is a misspelling of "length" (misspell)
    • bottos/bcli/bcli.go
    • Line 802: warning: "infomation" is a misspelling of "information" (misspell)
    • Line 824: warning: "infomation" is a misspelling of "information" (misspell)