Preparing report...

Report for github.com/filecoin-project/venus-wallet

A+    Excellent!    Found 53 issues across 79 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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.

No problems detected. Good job!


golint32%

Golint is a linter for Go source code.

    • venus-wallet/build/builder.go
    • Line 33: warning: exported type Settings should have comment or be unexported (golint)
    • Line 52: warning: exported function WalletOpt should have comment or be unexported (golint)
    • Line 66: warning: exported function CommonOpt should have comment or be unexported (golint)
    • Line 73: warning: exported function FullAPIOpt should have comment or be unexported (golint)
    • Line 82: warning: exported type StopFunc should have comment or be unexported (golint)
    • venus-wallet/core/msg_router.go
    • Line 17: warning: comment on exported type Types should be of the form "Types ..." (with optional leading article) (golint)
    • Line 24: warning: exported type FGetSignBytes should have comment or be unexported (golint)
    • Line 25: warning: exported type FParseObj should have comment or be unexported (golint)
    • Line 27: warning: exported function RegistSupportedMsgTypes should have comment or be unexported (golint)
    • Line 34: warning: comment on exported var SupportedMsgTypes should be of the form "SupportedMsgTypes ..." (golint)
    • Line 94: warning: comment on exported function GetSignBytes should be of the form "GetSignBytes ..." (golint)
    • venus-wallet/api/api_common.go
    • Line 11: warning: comment on exported type CommonAPIAdapter should be of the form "CommonAPIAdapter ..." (with optional leading article) (golint)
    • Line 22: warning: exported method CommonAPIAdapter.AuthVerify should have comment or be unexported (golint)
    • Line 26: warning: exported method CommonAPIAdapter.AuthNew should have comment or be unexported (golint)
    • Line 35: warning: exported method CommonAPIAdapter.LogList should have comment or be unexported (golint)
    • Line 39: warning: exported method CommonAPIAdapter.LogSetLevel should have comment or be unexported (golint)
    • venus-wallet/api/api_wallet_lock.go
    • Line 10: warning: exported type WalletLockAPIAdapter should have comment or be unexported (golint)
    • Line 19: warning: exported method WalletLockAPIAdapter.SetPassword should have comment or be unexported (golint)
    • Line 22: warning: exported method WalletLockAPIAdapter.Unlock should have comment or be unexported (golint)
    • Line 25: warning: exported method WalletLockAPIAdapter.Lock should have comment or be unexported (golint)
    • Line 29: warning: exported method WalletLockAPIAdapter.LockState should have comment or be unexported (golint)
    • venus-wallet/storage/strategy_store.go
    • Line 8: warning: exported type StrategyStore should have comment or be unexported (golint)
    • Line 100: warning: exported method KeyBind.ContainMsgType should have comment or be unexported (golint)
    • Line 103: warning: exported method KeyBind.ContainMethod should have comment or be unexported (golint)
    • venus-wallet/crypto/key.go
    • Line 10: warning: comment on exported type PrivateKey should be of the form "PrivateKey ..." (with optional leading article) (golint)
    • Line 28: warning: exported function Verify should have comment or be unexported (golint)
    • Line 45: warning: exported function GeneratePrivateKey should have comment or be unexported (golint)
    • Line 55: warning: exported function NewKeyFromKeyInfo should have comment or be unexported (golint)
    • Line 66: warning: exported function NewKeyFromData2 should have comment or be unexported (golint)
    • Line 77: warning: exported function NewKeyFromData should have comment or be unexported (golint)
    • venus-wallet/storage/sqlite/conn.go
    • Line 15: warning: comment on exported type Conn should be of the form "Conn ..." (with optional leading article) (golint)
    • Line 20: warning: exported type TableName should have comment or be unexported (golint)
    • Line 23: warning: exported const TBWallet should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported function NewSQLiteConn should have comment or be unexported (golint)
    • venus-wallet/core/method.go
    • Line 20: warning: exported var MethodsMap should have comment or be unexported (golint)
    • Line 22: warning: exported var MethodNamesMap should have comment or be unexported (golint)
    • Line 23: warning: exported var MethodNameList should have comment or be unexported (golint)
    • Line 25: warning: exported type MethodName should have comment or be unexported (golint)
    • Line 26: warning: exported type EmptyValue should have comment or be unexported (golint)
    • Line 89: warning: exported function GetMethodName should have comment or be unexported (golint)
    • Line 97: warning: exported function AggregateMethodNames should have comment or be unexported (golint)
    • venus-wallet/api/api_wallet.go
    • Line 11: warning: comment on exported type WalletAPIAdapter should be of the form "WalletAPIAdapter ..." (with optional leading article) (golint)
    • Line 24: warning: exported method WalletAPIAdapter.WalletNew should have comment or be unexported (golint)
    • Line 28: warning: exported method WalletAPIAdapter.WalletHas should have comment or be unexported (golint)
    • Line 32: warning: exported method WalletAPIAdapter.WalletList should have comment or be unexported (golint)
    • Line 36: warning: exported method WalletAPIAdapter.WalletSign should have comment or be unexported (golint)
    • Line 40: warning: exported method WalletAPIAdapter.WalletExport should have comment or be unexported (golint)
    • Line 44: warning: exported method WalletAPIAdapter.WalletImport should have comment or be unexported (golint)
    • Line 48: warning: exported method WalletAPIAdapter.WalletDelete should have comment or be unexported (golint)
    • venus-wallet/api/interface.go
    • Line 10: warning: comment on exported type APIEndpoint should be of the form "APIEndpoint ..." (with optional leading article) (golint)
    • Line 13: warning: exported type FullAPI should have comment or be unexported (golint)
    • Line 19: warning: exported type IFullAPI should have comment or be unexported (golint)
    • venus-wallet/core/msgtypes.go
    • Line 16: warning: exported const MTUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: comment on exported const MTChainMsg should be of the form "MTChainMsg ..." (golint)
    • Line 21: warning: comment on exported const MTBlock should be of the form "MTBlock ..." (golint)
    • Line 24: warning: comment on exported const MTDealProposal should be of the form "MTDealProposal ..." (golint)
    • Line 26: warning: comment on exported const MTDrawRandomParam should be of the form "MTDrawRandomParam ..." (golint)
    • Line 34: warning: comment on exported const MTClientDeal should be of the form "MTClientDeal ..." (golint)
    • Line 43: warning: exported type DrawRandomParams should have comment or be unexported (golint)
    • Line 50: warning: comment on exported method DrawRandomParams.SignBytes should be of the form "SignBytes ..." (golint)
    • Line 72: warning: exported method DrawRandomParams.MarshalCBOR should have comment or be unexported (golint)
    • Line 81: warning: exported method DrawRandomParams.UnmarshalCBOR should have comment or be unexported (golint)
    • venus-wallet/node/node.go
    • Line 21: warning: exported type TipSetKey should have comment or be unexported (golint)
    • Line 42: warning: exported method TipSetKey.MarshalJSON should have comment or be unexported (golint)
    • Line 45: warning: exported method TipSetKey.Cids should have comment or be unexported (golint)
    • Line 69: warning: exported method TipSetKey.UnmarshalJSON should have comment or be unexported (golint)
    • Line 87: warning: exported type Actor should have comment or be unexported (golint)
    • Line 102: warning: exported var EmptyNodeClient should have comment or be unexported (golint)
    • Line 104: warning: exported function NewNodeClient should have comment or be unexported (golint)
    • venus-wallet/crypto/bls.go
    • Line 12: warning: exported const DST should have comment or be unexported (golint)
    • Line 14: warning: exported type SecretKey should have comment or be unexported (golint)
    • Line 15: warning: exported type PublicKey should have comment or be unexported (golint)
    • Line 16: warning: exported type Signature should have comment or be unexported (golint)
    • Line 17: warning: exported type AggregateSignature should have comment or be unexported (golint)
    • venus-wallet/core/message.go
    • Line 11: warning: exported const MessageVersion should have comment or be unexported (golint)
    • Line 13: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 32: warning: exported method Message.Serialize should have comment or be unexported (golint)
    • Line 40: warning: exported method Message.Cid should have comment or be unexported (golint)
    • Line 48: warning: exported method Message.ToStorageBlock should have comment or be unexported (golint)
    • Line 60: warning: exported function DecodeMessage should have comment or be unexported (golint)
    • Line 73: warning: exported type SignedMessage should have comment or be unexported (golint)
    • venus-wallet/api/api_strategy.go
    • Line 12: warning: exported type StrategyAPIAdapter should have comment or be unexported (golint)
    • Line 51: warning: exported method StrategyAPIAdapter.NewWalletToken should have comment or be unexported (golint)
    • Line 55: warning: exported method StrategyAPIAdapter.GetWalletTokensByGroup should have comment or be unexported (golint)
    • Line 59: warning: exported method StrategyAPIAdapter.NewMsgTypeTemplate should have comment or be unexported (golint)
    • Line 62: warning: exported method StrategyAPIAdapter.NewMethodTemplate should have comment or be unexported (golint)
    • Line 65: warning: exported method StrategyAPIAdapter.NewKeyBindCustom should have comment or be unexported (golint)
    • Line 68: warning: exported method StrategyAPIAdapter.NewKeyBindFromTemplate should have comment or be unexported (golint)
    • Line 71: warning: exported method StrategyAPIAdapter.NewGroup should have comment or be unexported (golint)
    • Line 75: warning: exported method StrategyAPIAdapter.GetMsgTypeTemplate should have comment or be unexported (golint)
    • Line 78: warning: exported method StrategyAPIAdapter.GetMethodTemplateByName should have comment or be unexported (golint)
    • Line 81: warning: exported method StrategyAPIAdapter.GetKeyBindByName should have comment or be unexported (golint)
    • Line 84: warning: exported method StrategyAPIAdapter.GetKeyBinds should have comment or be unexported (golint)
    • Line 87: warning: exported method StrategyAPIAdapter.GetGroupByName should have comment or be unexported (golint)
    • Line 90: warning: exported method StrategyAPIAdapter.GetWalletTokenInfo should have comment or be unexported (golint)
    • Line 93: warning: exported method StrategyAPIAdapter.ListGroups should have comment or be unexported (golint)
    • Line 96: warning: exported method StrategyAPIAdapter.ListKeyBinds should have comment or be unexported (golint)
    • Line 99: warning: exported method StrategyAPIAdapter.ListMethodTemplates should have comment or be unexported (golint)
    • Line 102: warning: exported method StrategyAPIAdapter.ListMsgTypeTemplates should have comment or be unexported (golint)
    • Line 106: warning: exported method StrategyAPIAdapter.PushMsgTypeIntoKeyBind should have comment or be unexported (golint)
    • Line 109: warning: exported method StrategyAPIAdapter.PushMethodIntoKeyBind should have comment or be unexported (golint)
    • Line 112: warning: exported method StrategyAPIAdapter.PullMsgTypeFromKeyBind should have comment or be unexported (golint)
    • Line 115: warning: exported method StrategyAPIAdapter.PullMethodFromKeyBind should have comment or be unexported (golint)
    • Line 119: warning: exported method StrategyAPIAdapter.RemoveKeyBind should have comment or be unexported (golint)
    • Line 122: warning: exported method StrategyAPIAdapter.RemoveKeyBindByAddress should have comment or be unexported (golint)
    • Line 125: warning: exported method StrategyAPIAdapter.RemoveGroup should have comment or be unexported (golint)
    • Line 128: warning: exported method StrategyAPIAdapter.RemoveMethodTemplate should have comment or be unexported (golint)
    • Line 131: warning: exported method StrategyAPIAdapter.RemoveMsgTypeTemplate should have comment or be unexported (golint)
    • Line 134: warning: exported method StrategyAPIAdapter.RemoveToken should have comment or be unexported (golint)
    • Line 137: warning: exported method StrategyAPIAdapter.ScopeWallet should have comment or be unexported (golint)
    • Line 140: warning: exported method StrategyAPIAdapter.Verify should have comment or be unexported (golint)
    • Line 143: warning: exported method StrategyAPIAdapter.ContainWallet should have comment or be unexported (golint)
    • venus-wallet/build/option.go
    • Line 33: warning: exported function ApplyIf should have comment or be unexported (golint)
    • Line 42: warning: exported function If should have comment or be unexported (golint)
    • Line 68: warning: exported function Unset should have comment or be unexported (golint)
    • Line 86: warning: comment on exported function From should be of the form "From ..." (golint)
    • venus-wallet/cmd/rpc.go
    • Line 14: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 27: warning: comment on exported function CorsMiddleWare should be of the form "CorsMiddleWare ..." (golint)
    • Line 42: warning: comment on exported function ServeRPC should be of the form "ServeRPC ..." (golint)
    • Line 72: warning: comment on exported type Handler should be of the form "Handler ..." (with optional leading article) (golint)
    • venus-wallet/storage/strategy/strategy.go
    • Line 19: warning: exported var ErrGenToken should have comment or be unexported (golint)
    • Line 26: warning: exported type IStrategy should have comment or be unexported (golint)
    • Line 84: warning: exported type ILocalStrategy should have comment or be unexported (golint)
    • Line 88: warning: exported type VerifyFunc should have comment or be unexported (golint)
    • Line 90: warning: comment on exported type IStrategyVerify should be of the form "IStrategyVerify ..." (with optional leading article) (golint)
    • Line 109: warning: exported function NewStrategy should have comment or be unexported (golint)
    • Line 424: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • venus-wallet/core/cbor.go
    • Line 16: warning: exported method Message.MarshalCBOR should have comment or be unexported (golint)
    • Line 93: warning: exported method Message.UnmarshalCBOR should have comment or be unexported (golint)
    • Line 224: warning: exported method SignedMessage.MarshalCBOR should have comment or be unexported (golint)
    • Line 245: warning: exported method SignedMessage.UnmarshalCBOR should have comment or be unexported (golint)
    • Line 284: warning: exported method Block.UnmarshalCBOR should have comment or be unexported (golint)
    • Line 509: warning: exported method Ticket.UnmarshalCBOR should have comment or be unexported (golint)
    • Line 550: warning: exported method ElectionProof.UnmarshalCBOR should have comment or be unexported (golint)
    • Line 615: warning: exported method BeaconEntry.UnmarshalCBOR should have comment or be unexported (golint)
    • Line 667: warning: exported method TipSetKey.UnmarshalCBOR should have comment or be unexported (golint)
    • venus-wallet/core/msg_enum.go
    • Line 13: warning: exported var ErrCodeOverflow should have comment or be unexported (golint)
    • Line 17: warning: exported const MethodSend should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type MsgEnum should have comment or be unexported (golint)
    • Line 24: warning: exported const MEUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported var MsgEnumPool should have comment or be unexported (golint)
    • Line 53: warning: exported var MaxMsgEnumCode should have comment or be unexported (golint)
    • Line 55: warning: exported function CheckMsgEnum should have comment or be unexported (golint)
    • Line 62: warning: exported function FindCode should have comment or be unexported (golint)
    • Line 74: warning: exported function AggregateMsgEnumCode should have comment or be unexported (golint)
    • Line 90: warning: exported function MsgEnumFromInt should have comment or be unexported (golint)
    • Line 97: warning: exported function MsgEnumCode should have comment or be unexported (golint)
    • Line 101: warning: exported function ContainMsgType should have comment or be unexported (golint)
    • Line 135: warning: exported type MethodMeta should have comment or be unexported (golint)
    • venus-wallet/middleware/metrics.go
    • Line 12: warning: exported var Version should have comment or be unexported (golint)
    • Line 17: warning: exported var VenusInfo should have comment or be unexported (golint)
    • Line 22: warning: exported var InfoView should have comment or be unexported (golint)
    • venus-wallet/config/config.go
    • Line 3: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 13: warning: comment on exported type StrategyConfig should be of the form "StrategyConfig ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported type DBConfig should be of the form "DBConfig ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported type APIConfig should be of the form "APIConfig ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported type MetricsConfig should be of the form "MetricsConfig ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported type JWTConfig should be of the form "JWTConfig ..." (with optional leading article) (golint)
    • Line 43: warning: comment on exported type CryptoFactor should be of the form "CryptoFactor ..." (with optional leading article) (golint)
    • venus-wallet/storage/keymix.go
    • Line 17: warning: exported type IWalletLock should have comment or be unexported (golint)
    • Line 29: warning: exported var ErrLocked should have comment or be unexported (golint)
    • Line 37: warning: exported type DecryptFunc should have comment or be unexported (golint)
    • Line 54: warning: exported type KeyMixLayer should have comment or be unexported (golint)
    • Line 63: warning: exported function NewKeyMiddleware should have comment or be unexported (golint)
    • Line 72: warning: exported method KeyMixLayer.SetPassword should have comment or be unexported (golint)
    • Line 104: warning: exported method KeyMixLayer.EqualRootToken should have comment or be unexported (golint)
    • Line 113: warning: exported method KeyMixLayer.Unlock should have comment or be unexported (golint)
    • Line 116: warning: exported method KeyMixLayer.Lock should have comment or be unexported (golint)
    • Line 119: warning: exported method KeyMixLayer.LockState should have comment or be unexported (golint)
    • Line 131: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 143: warning: exported method KeyMixLayer.CheckToken should have comment or be unexported (golint)
    • Line 170: warning: exported method KeyMixLayer.Encrypt should have comment or be unexported (golint)
    • Line 190: warning: exported method KeyMixLayer.Decrypt should have comment or be unexported (golint)
    • venus-wallet/common/api_common.go
    • Line 13: warning: exported type ICommon should have comment or be unexported (golint)
    • Line 24: warning: exported type APIAlg should have comment or be unexported (golint)
    • Line 28: warning: exported type Common should have comment or be unexported (golint)
    • Line 37: warning: exported method Common.AuthVerify should have comment or be unexported (golint)
    • Line 45: warning: exported method Common.AuthNew should have comment or be unexported (golint)
    • Line 52: warning: exported method Common.Version should have comment or be unexported (golint)
    • Line 59: warning: exported method Common.LogList should have comment or be unexported (golint)
    • Line 63: warning: exported method Common.LogSetLevel should have comment or be unexported (golint)
    • venus-wallet/filemgr/fs.go
    • Line 22: warning: exported var ErrNoAPIEndpoint should have comment or be unexported (golint)
    • Line 34: warning: exported type OverrideParams should have comment or be unexported (golint)
    • Line 59: warning: exported method FsRepo.APISecret should have comment or be unexported (golint)
    • Line 89: warning: exported method FsRepo.Config should have comment or be unexported (golint)
    • Line 103: warning: exported method FsRepo.APIToken should have comment or be unexported (golint)
    • Line 107: warning: exported method FsRepo.APIStrategyToken should have comment or be unexported (golint)
    • venus-wallet/version/version.go
    • Line 5: warning: exported var CurrentCommit should have comment or be unexported (golint)
    • Line 10: warning: exported var UserVersion should have comment or be unexported (golint)
    • Line 12: warning: exported type Version should have comment or be unexported (golint)
    • Line 29: warning: exported method Version.EqMajorMinor should have comment or be unexported (golint)
    • venus-wallet/crypto/aes/aes128.go
    • Line 21: warning: exported var ErrDecrypt should have comment or be unexported (golint)
    • Line 26: warning: comment on exported const StandardScryptN should be of the form "StandardScryptN ..." (golint)
    • Line 41: warning: exported type CryptoJSON should have comment or be unexported (golint)
    • Line 50: warning: exported type EncryptedKey should have comment or be unexported (golint)
    • Line 101: warning: comment on exported function Keccak256 should be of the form "Keccak256 ..." (golint)
    • Line 117: warning: exported type KeccakState should have comment or be unexported (golint)
    • Line 122: warning: exported function EncryptData should have comment or be unexported (golint)
    • Line 164: warning: exported function Decrypt should have comment or be unexported (golint)
    • venus-wallet/core/context.go
    • Line 5: warning: exported type StrategyLevel should have comment or be unexported (golint)
    • Line 8: warning: comment on exported const SLDisable should be of the form "SLDisable ..." (golint)
    • Line 10: warning: comment on exported const SLMetaType should be of the form "SLMetaType ..." (golint)
    • Line 12: warning: comment on exported const SLMethod should be of the form "SLMethod ..." (golint)
    • Line 16: warning: comment on exported var WalletStrategyLevel should be of the form "WalletStrategyLevel ..." (golint)
    • Line 19: warning: exported type ContextKey should have comment or be unexported (golint)
    • Line 21: warning: comment on exported const CtxKeyStrategy should be of the form "CtxKeyStrategy ..." (golint)
    • Line 24: warning: exported function ContextStrategyToken should have comment or be unexported (golint)
    • venus-wallet/api/api_full.go
    • Line 7: warning: comment on exported type FullAPIAdapter should be of the form "FullAPIAdapter ..." (with optional leading article) (golint)
    • Line 15: warning: exported function PermissionedFullAPI should have comment or be unexported (golint)
    • venus-wallet/storage/sqlite/key_types.go
    • Line 12: warning: exported type SqlScannerValuer should have comment or be unexported (golint)
    • Line 17: warning: exported type Key should have comment or be unexported (golint)
    • Line 23: warning: exported type Wallet should have comment or be unexported (golint)
    • Line 30: warning: exported method Wallet.TableName should have comment or be unexported (golint)
    • Line 34: warning: exported type SqlKeyInfo should have comment or be unexported (golint)
    • Line 36: warning: exported method SqlKeyInfo.IsValid should have comment or be unexported (golint)
    • venus-wallet/core/block.go
    • Line 34: warning: exported type VRFPi should have comment or be unexported (golint)
    • Line 35: warning: exported type Ticket should have comment or be unexported (golint)
    • Line 39: warning: exported type ElectionProof should have comment or be unexported (golint)
    • Line 45: warning: exported type BeaconEntry should have comment or be unexported (golint)
    • Line 50: warning: exported type TipSetKey should have comment or be unexported (golint)
    • Line 109: warning: exported method Block.SignatureData should have comment or be unexported (golint)
    • Line 132: warning: exported const BLAKE2B_MIN should have comment or be unexported (golint)
    • Line 134: warning: comment on exported const DefaultHashFunction should be of the form "DefaultHashFunction ..." (golint)
    • Line 137: warning: comment on exported var DefaultCidBuilder should be of the form "DefaultCidBuilder ..." (golint)
    • Line 164: warning: exported method Ticket.MarshalCBOR should have comment or be unexported (golint)
    • Line 190: warning: exported method ElectionProof.MarshalCBOR should have comment or be unexported (golint)
    • Line 227: warning: exported method BeaconEntry.MarshalCBOR should have comment or be unexported (golint)
    • Line 323: warning: exported method TipSetKey.MarshalCBOR should have comment or be unexported (golint)
    • Line 341: warning: exported method Block.MarshalCBOR should have comment or be unexported (golint)
    • venus-wallet/core/types.go
    • Line 13: warning: exported const StringEmpty should have comment or be unexported (golint)
    • Line 15: warning: exported type SigType should have comment or be unexported (golint)
    • Line 18: warning: exported const SigTypeUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type AddressScope should have comment or be unexported (golint)
    • Line 29: warning: exported type Address should have comment or be unexported (golint)
    • Line 30: warning: exported type Signature should have comment or be unexported (golint)
    • Line 31: warning: exported type TokenAmount should have comment or be unexported (golint)
    • Line 32: warning: exported type MethodNum should have comment or be unexported (golint)
    • Line 33: warning: exported type Cid should have comment or be unexported (golint)
    • Line 35: warning: exported type KeyInfo should have comment or be unexported (golint)
    • Line 41: warning: exported var NilAddress should have comment or be unexported (golint)
    • Line 44: warning: exported type MsgType should have comment or be unexported (golint)
    • Line 45: warning: exported type MsgMeta should have comment or be unexported (golint)
    • Line 55: warning: exported method KeyType.UnmarshalJSON should have comment or be unexported (golint)
    • Line 87: warning: exported const KTUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 92: warning: exported function KeyType2Sign should have comment or be unexported (golint)
    • Line 103: warning: exported function SignType2Key should have comment or be unexported (golint)
    • venus-wallet/api/permission/permissioned.go
    • Line 21: warning: exported type Permission should have comment or be unexported (golint)
    • Line 26: warning: exported const PermRead should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported var AllPermissions should have comment or be unexported (golint)
    • Line 63: warning: exported function HasIPPerm should have comment or be unexported (golint)
    • Line 128: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • venus-wallet/example/main.go
    • Line 20: warning: exported type RemoteWallet should have comment or be unexported (golint)
    • Line 25: warning: exported function SetupRemoteWallet should have comment or be unexported (golint)
    • Line 44: warning: exported method RemoteWallet.Get should have comment or be unexported (golint)
    • venus-wallet/cli/helper/helper.go
    • Line 36: warning: exported type ErrCmdFailed should have comment or be unexported (golint)
    • Line 44: warning: exported function GetAPIInfo should have comment or be unexported (golint)
    • Line 80: warning: exported function GetRawAPI should have comment or be unexported (golint)
    • Line 94: warning: exported function GetAPI should have comment or be unexported (golint)
    • Line 102: warning: exported function GetFullAPI should have comment or be unexported (golint)
    • Line 110: warning: exported function GetFullAPIWithPWD should have comment or be unexported (golint)
    • Line 118: warning: exported function DaemonContext should have comment or be unexported (golint)
    • Line 151: warning: exported function ReqFromTo should have comment or be unexported (golint)
    • Line 170: warning: exported function ShowHelp should have comment or be unexported (golint)
    • Line 174: warning: exported type PrintHelpErr should have comment or be unexported (golint)
    • Line 187: warning: exported method PrintHelpErr.Is should have comment or be unexported (golint)
    • venus-wallet/config/provider.go
    • Line 13: warning: comment on exported function DecodeConfig should be of the form "DecodeConfig ..." (golint)
    • Line 61: warning: exported type Provider should have comment or be unexported (golint)
    • Line 95: 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)
    • venus-wallet/storage/keystore.go
    • Line 10: warning: exported var ErrKeyInfoNotFound should have comment or be unexported (golint)
    • Line 14: warning: comment on exported type KeyStore should be of the form "KeyStore ..." (with optional leading article) (golint)
    • venus-wallet/api/remotecli/httpparse/parse.go
    • Line 19: warning: exported const ServiceToken should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported function ParseApiInfo should have comment or be unexported (golint)
    • Line 45: warning: exported method APIInfo.DialArgs should have comment or be unexported (golint)
    • Line 53: warning: exported method APIInfo.AuthHeader should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!