Preparing report...

Report for github.com/arxanchain/sdk-go-common

A    Great!    Found 39 issues across 71 files

Tweet

gofmt90%

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


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo95%

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.


golint50%

Golint is a linter for Go source code.

    • sdk-go-common/crypto/ecc/eciesv2/ecies.go
    • Line 32: warning: exported var ErrImport should have comment or be unexported (golint)
    • Line 48: warning: comment on exported method PublicKey.ExportECDSA should be of the form "ExportECDSA ..." (golint)
    • Line 53: warning: comment on exported function ImportECDSAPublic should be of the form "ImportECDSAPublic ..." (golint)
    • Line 69: warning: comment on exported method PrivateKey.ExportECDSA should be of the form "ExportECDSA ..." (golint)
    • Line 76: warning: comment on exported function ImportECDSA should be of the form "ImportECDSA ..." (golint)
    • Line 82: warning: comment on exported function GenerateKey should be of the form "GenerateKey ..." (golint)
    • Line 107: warning: comment on exported method PrivateKey.GenerateShared should be of the form "GenerateShared ..." (golint)
    • Line 127: warning: exported var ErrKeyDataTooLong should have comment or be unexported (golint)
    • sdk-go-common/crypto/certs_store.go
    • Line 36: warning: don't use underscores in Go names; var g_CertsStore should be gCertsStore (golint)
    • Line 39: warning: exported type ICryptoLib should have comment or be unexported (golint)
    • Line 46: warning: exported type CertGroup should have comment or be unexported (golint)
    • Line 53: warning: exported type CertsStore should have comment or be unexported (golint)
    • Line 96: warning: exported method CertsStore.Reload should have comment or be unexported (golint)
    • Line 96: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • sdk-go-common/crypto/crypto.go
    • Line 28: warning: exported type ServerClientMode should have comment or be unexported (golint)
    • Line 31: warning: exported const SERVER_MODE should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type EncryptType should have comment or be unexported (golint)
    • Line 38: warning: exported const ECC_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: don't use underscores in Go names; var g_SecurityLevel should be gSecurityLevel (golint)
    • Line 44: warning: don't use underscores in Go names; var g_HashAlgorithm should be gHashAlgorithm (golint)
    • Line 45: warning: don't use underscores in Go names; var g_ServerClientMode should be gServerClientMode (golint)
    • Line 46: warning: don't use underscores in Go names; var g_IsEncrypt should be gIsEncrypt (golint)
    • Line 47: warning: don't use underscores in Go names; var g_IsSign should be gIsSign (golint)
    • Line 48: warning: don't use underscores in Go names; var g_EncryptType should be gEncryptType (golint)
    • Line 51: warning: exported type SignedData should have comment or be unexported (golint)
    • sdk-go-common/crypto/sign/ed25519/ed25519.go
    • Line 29: warning: don't use underscores in Go names; const KeyType_PubRSA should be KeyTypePubRSA (golint)
    • Line 31: warning: don't use underscores in Go names; const KeyType_PriRSA should be KeyTypePriRSA (golint)
    • Line 33: warning: don't use underscores in Go names; const KeyType_PubED25119 should be KeyTypePubED25119 (golint)
    • Line 35: warning: don't use underscores in Go names; const KeyType_PriED25119 should be KeyTypePriED25119 (golint)
    • Line 40: warning: don't use underscores in Go names; const Usage_EncDec should be UsageEncDec (golint)
    • Line 42: warning: don't use underscores in Go names; const Usage_SignVerify should be UsageSignVerify (golint)
    • Line 44: warning: don't use underscores in Go names; const Usage_Other should be UsageOther (golint)
    • Line 74: warning: comment on exported function Keypair should be of the form "Keypair ..." (golint)
    • sdk-go-common/structs/fred.go
    • Line 26: warning: don't use underscores in Go names; const FredAPIParam_APIKey should be FredAPIParamAPIKey (golint)
    • Line 26: warning: exported const FredAPIParam_APIKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: don't use underscores in Go names; const FredAPIParam_Type should be FredAPIParamType (golint)
    • Line 28: warning: don't use underscores in Go names; const FredAPIParam_Identifier should be FredAPIParamIdentifier (golint)
    • Line 29: warning: don't use underscores in Go names; const FredAPIParam_ACLGroupID should be FredAPIParamACLGroupID (golint)
    • Line 31: warning: don't use underscores in Go names; const FredAPIParam_Page should be FredAPIParamPage (golint)
    • Line 32: warning: don't use underscores in Go names; const FredAPIParam_Num should be FredAPIParamNum (golint)
    • Line 58: warning: don't use underscores in Go names; const FredUserType_Service should be FredUserTypeService (golint)
    • Line 58: warning: exported const FredUserType_Service should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: don't use underscores in Go names; const FredUserType_Enterprise should be FredUserTypeEnterprise (golint)
    • Line 60: warning: don't use underscores in Go names; const FredUserType_AppChain should be FredUserTypeAppChain (golint)
    • Line 61: warning: don't use underscores in Go names; const FredUserType_Normal should be FredUserTypeNormal (golint)
    • Line 62: warning: don't use underscores in Go names; const FredUserType_DApp should be FredUserTypeDApp (golint)
    • Line 68: warning: don't use underscores in Go names; const FredGroupType_Service should be FredGroupTypeService (golint)
    • Line 69: warning: don't use underscores in Go names; const FredGroupType_ServicePart should be FredGroupTypeServicePart (golint)
    • Line 70: warning: don't use underscores in Go names; const FredGroupType_Normal should be FredGroupTypeNormal (golint)
    • Line 71: warning: don't use underscores in Go names; const FredGroupType_Superadmin should be FredGroupTypeSuperadmin (golint)
    • Line 72: warning: don't use underscores in Go names; const FredGroupType_Civil should be FredGroupTypeCivil (golint)
    • Line 75: warning: exported type IFredClient should have comment or be unexported (golint)
    • Line 83: warning: exported type IUserClient should have comment or be unexported (golint)
    • Line 151: warning: exported type IEdkeyClient should have comment or be unexported (golint)
    • Line 158: warning: exported type ICertsClient should have comment or be unexported (golint)
    • Line 187: warning: exported type RegisterRequest should have comment or be unexported (golint)
    • Line 191: warning: exported type RegisterBody should have comment or be unexported (golint)
    • Line 198: warning: exported type User should have comment or be unexported (golint)
    • Line 208: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 221: warning: don't use underscores in Go names; struct field Issued_at should be IssuedAt (golint)
    • Line 222: warning: don't use underscores in Go names; struct field Channel_id should be ChannelID (golint)
    • Line 227: warning: exported type EnterpriseInfo should have comment or be unexported (golint)
    • Line 243: warning: exported type LoginAccessSecret should have comment or be unexported (golint)
    • Line 250: warning: exported type LoginAccess should have comment or be unexported (golint)
    • Line 254: warning: exported type UpdatePasswordRequest should have comment or be unexported (golint)
    • Line 258: warning: exported type UpdatePasswordBody should have comment or be unexported (golint)
    • Line 272: warning: exported type RevokeRequest should have comment or be unexported (golint)
    • Line 276: warning: exported type ChannelIDAccess should have comment or be unexported (golint)
    • Line 282: warning: exported type UpdateChannelIDRequest should have comment or be unexported (golint)
    • Line 286: warning: exported type CertCreateReq should have comment or be unexported (golint)
    • Line 292: warning: exported type CertCreateReqBody should have comment or be unexported (golint)
    • Line 296: warning: exported type Cert should have comment or be unexported (golint)
    • Line 302: warning: comment on exported type CertCreateResp should be of the form "CertCreateResp ..." (with optional leading article) (golint)
    • Line 319: warning: comment on exported type CertInfo should be of the form "CertInfo ..." (with optional leading article) (golint)
    • Line 335: warning: comment on exported type GetCertStatusResp should be of the form "GetCertStatusResp ..." (with optional leading article) (golint)
    • Line 340: warning: comment on exported type GetCertStatusRespInner should be of the form "GetCertStatusRespInner ..." (with optional leading article) (golint)
    • Line 342: warning: don't use underscores in Go names; struct field Isued_at should be IsuedAt (golint)
    • Line 345: warning: exported type Oauth2AccessToken should have comment or be unexported (golint)
    • Line 349: warning: comment on exported type TokenDetail should be of the form "TokenDetail ..." (with optional leading article) (golint)
    • Line 361: warning: comment on exported type GetTokenResponse should be of the form "GetTokenResponse ..." (with optional leading article) (golint)
    • Line 366: warning: comment on exported type TokenInfo should be of the form "TokenInfo ..." (with optional leading article) (golint)
    • Line 378: warning: exported type ResponseStruct should have comment or be unexported (golint)
    • Line 381: warning: exported type CredentialsStruct should have comment or be unexported (golint)
    • Line 385: warning: don't use underscores in Go names; struct field Channel_id should be ChannelID (golint)
    • Line 386: warning: don't use underscores in Go names; struct field Issued_at should be IssuedAt (golint)
    • Line 390: warning: exported type CredentialsListResponse should have comment or be unexported (golint)
    • Line 394: warning: exported type ValueStruct should have comment or be unexported (golint)
    • Line 400: warning: exported type AccesskeyRequest should have comment or be unexported (golint)
    • Line 404: warning: exported type AccesskeyRequestInner should have comment or be unexported (golint)
    • Line 409: warning: exported type AccesskeyResponse should have comment or be unexported (golint)
    • Line 413: warning: exported type AccesskeyResponseInner should have comment or be unexported (golint)
    • Line 416: warning: don't use underscores in Go names; struct field Issued_at should be IssuedAt (golint)
    • Line 420: warning: exported type AccessKeyValue should have comment or be unexported (golint)
    • Line 425: warning: exported type ACLResponse should have comment or be unexported (golint)
    • sdk-go-common/structs/tomago/tomago.go
    • Line 21: warning: comment on exported type ITomagoClient should be of the form "ITomagoClient ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported type IBlockchainClient should be of the form "IBlockchainClient ..." (with optional leading article) (golint)
    • sdk-go-common/structs/token.go
    • Line 1: warning: package comment should be of the form "Package structs ..." (golint)
    • Line 18: warning: exported type TokenCreateRequest should have comment or be unexported (golint)
    • sdk-go-common/structs/wallet/wallet_query.go
    • Line 19: warning: comment on exported type DAppIssuedTokens should be of the form "DAppIssuedTokens ..." (with optional leading article) (golint)
    • Line 47: warning: exported type DAppUsersLists should have comment or be unexported (golint)
    • Line 57: warning: exported type DAppAxtConsumes should have comment or be unexported (golint)
    • Line 65: warning: exported type TopAssetUsers should have comment or be unexported (golint)
    • Line 73: warning: exported type TopTokenUsers should have comment or be unexported (golint)
    • Line 81: warning: exported type HotAssets should have comment or be unexported (golint)
    • Line 89: warning: exported type HotTokens should have comment or be unexported (golint)
    • Line 116: warning: exported type DAppLists should have comment or be unexported (golint)
    • Line 125: warning: exported type Growths should have comment or be unexported (golint)
    • Line 133: warning: comment on exported type ChainDappList should be of the form "ChainDappList ..." (with optional leading article) (golint)
    • sdk-go-common/errors/errors.go
    • Line 92: warning: exported function NoRecvHandlerEnabled should have comment or be unexported (golint)
    • Line 98: warning: exported function RedisSaveError should have comment or be unexported (golint)
    • Line 105: warning: exported function BlockchainSaveError should have comment or be unexported (golint)
    • Line 112: warning: exported function BlockchainResponseError should have comment or be unexported (golint)
    • Line 119: warning: exported function DataValidationError should have comment or be unexported (golint)
    • Line 126: warning: exported function BCSrvStartError should have comment or be unexported (golint)
    • Line 133: warning: exported function MQNotInitialzedError should have comment or be unexported (golint)
    • Line 139: warning: exported function MQInvalidModeError should have comment or be unexported (golint)
    • sdk-go-common/structs/pki/sign.go
    • Line 1: warning: package comment should be of the form "Package pki ..." (golint)
    • Line 78: warning: comment on exported method SignedData.DoSign should be of the form "DoSign ..." (golint)
    • Line 111: warning: comment on exported type ISigner should be of the form "ISigner ..." (with optional leading article) (golint)
    • Line 120: warning: exported type ISignClient should have comment or be unexported (golint)
    • sdk-go-common/utils/helper.go
    • Line 70: warning: comment on exported function BoolToPtr should be of the form "BoolToPtr ..." (golint)
    • Line 80: warning: comment on exported function Uint64ToPtr should be of the form "Uint64ToPtr ..." (golint)
    • Line 111: warning: exported function SliceStringToSet should have comment or be unexported (golint)
    • Line 140: warning: exported function SliceSetDisjoint should have comment or be unexported (golint)
    • Line 164: warning: comment on exported function CopyMapStringString should be of the form "CopyMapStringString ..." (golint)
    • Line 178: warning: exported function CopyMapStringInt should have comment or be unexported (golint)
    • Line 191: warning: exported function CopyMapStringFloat64 should have comment or be unexported (golint)
    • Line 204: warning: exported function CopySliceString should have comment or be unexported (golint)
    • Line 217: warning: exported function CopySliceInt should have comment or be unexported (golint)
    • Line 248: warning: comment on exported function StringSliceHas should be of the form "StringSliceHas ..." (golint)
    • Line 258: warning: comment on exported function StringSliceHasI should be of the form "StringSliceHasI ..." (golint)
    • Line 268: warning: comment on exported function RemoveStringSliceDuplicate should be of the form "RemoveStringSliceDuplicate ..." (golint)
    • sdk-go-common/utils/test_util.go
    • Line 31: warning: exported type TestRandomNumberGenerator should have comment or be unexported (golint)
    • Line 36: warning: exported function NewTestRandomNumberGenerator should have comment or be unexported (golint)
    • Line 43: warning: exported method TestRandomNumberGenerator.Next should have comment or be unexported (golint)
    • Line 47: warning: exported function ParseTestParams should have comment or be unexported (golint)
    • Line 58: warning: exported function AssertNil should have comment or be unexported (golint)
    • Line 64: warning: exported function AssertNotNil should have comment or be unexported (golint)
    • Line 70: warning: exported function AssertSame should have comment or be unexported (golint)
    • Line 77: warning: exported function AssertEquals should have comment or be unexported (golint)
    • Line 87: warning: exported function AssertNotEquals should have comment or be unexported (golint)
    • Line 93: warning: exported function AssertError should have comment or be unexported (golint)
    • Line 99: warning: exported function AssertNoError should have comment or be unexported (golint)
    • Line 105: warning: exported function AssertContains should have comment or be unexported (golint)
    • Line 115: warning: exported function AssertContainsAll should have comment or be unexported (golint)
    • Line 133: warning: exported function AssertPanic should have comment or be unexported (golint)
    • Line 142: warning: exported function AppendAll should have comment or be unexported (golint)
    • Line 150: warning: exported function ConstructRandomBytes should have comment or be unexported (golint)
    • sdk-go-common/structs/did/did.go
    • Line 20: warning: comment on exported type Identifier should be of the form "Identifier ..." (with optional leading article) (golint)
    • Line 23: warning: exported type DidEndpoint should have comment or be unexported (golint)
    • Line 24: warning: exported type DidContext should have comment or be unexported (golint)
    • Line 27: warning: comment on exported type DidType should be of the form "DidType ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported const DTAsset should be of the form "DTAsset ..." (golint)
    • Line 33: warning: exported const DTEntity should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported const DTCash should be of the form "DTCash ..." (golint)
    • Line 47: warning: comment on exported type DidStatus should be of the form "DidStatus ..." (with optional leading article) (golint)
    • Line 51: warning: exported const DSValid should have comment (or a comment on this block) or be unexported (golint)
    • sdk-go-common/crypto/ecc/ecc.go
    • Line 61: warning: exported method ECCCryptoLib.Sign should have comment or be unexported (golint)
    • Line 70: warning: exported method ECCCryptoLib.Verify should have comment or be unexported (golint)
    • Line 85: warning: comment on exported method ECCCryptoLib.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 116: warning: comment on exported method ECCCryptoLib.Decrypt should be of the form "Decrypt ..." (golint)
    • sdk-go-common/rest/structs/meta.go
    • Line 47: warning: exported const ProtocolVersionFieldName should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported method QueryOptions.RequestRegion should have comment or be unexported (golint)
    • Line 89: warning: comment on exported method QueryOptions.IsRead should be of the form "IsRead ..." (golint)
    • Line 94: warning: exported method QueryOptions.AllowStaleRead should have comment or be unexported (golint)
    • Line 98: warning: exported type WriteRequest should have comment or be unexported (golint)
    • Line 103: warning: exported method WriteRequest.RequestRegion should have comment or be unexported (golint)
    • Line 108: warning: comment on exported method WriteRequest.IsRead should be of the form "IsRead ..." (golint)
    • Line 113: warning: exported method WriteRequest.AllowStaleRead should have comment or be unexported (golint)
    • sdk-go-common/rest/api/api.go
    • Line 50: warning: exported type ICacheClient should have comment or be unexported (golint)
    • Line 196: warning: comment on exported function SetupTLSConfig should be of the form "SetupTLSConfig ..." (golint)
    • Line 351: warning: comment on exported method Client.GetEnterpriseSignParam should be of the form "GetEnterpriseSignParam ..." (golint)
    • Line 460: warning: comment on exported method Request.SetHeaders should be of the form "SetHeaders ..." (golint)
    • Line 528: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • sdk-go-common/crypto/ecc/eciesv2/asn1.go
    • Line 40: warning: exported var ErrInvalidPrivateKey should have comment or be unexported (golint)
    • Line 100: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 148: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 254: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 276: warning: don't use underscores in Go names; var dhSinglePass_stdDH_sha1kdf should be dhSinglePassStdDHSha1kdf (golint)
    • Line 279: warning: don't use underscores in Go names; var dhSinglePass_stdDH_sha256kdf should be dhSinglePassStdDHSha256kdf (golint)
    • Line 282: warning: don't use underscores in Go names; var dhSinglePass_stdDH_sha384kdf should be dhSinglePassStdDHSha384kdf (golint)
    • Line 285: warning: don't use underscores in Go names; var dhSinglePass_stdDH_sha224kdf should be dhSinglePassStdDHSha224kdf (golint)
    • Line 288: warning: don't use underscores in Go names; var dhSinglePass_stdDH_sha512kdf should be dhSinglePassStdDHSha512kdf (golint)
    • Line 297: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 316: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 351: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 371: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 409: warning: comment on exported function MarshalPublic should be of the form "MarshalPublic ..." (golint)
    • Line 418: warning: comment on exported function UnmarshalPublic should be of the form "UnmarshalPublic ..." (golint)
    • Line 463: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 472: warning: comment on exported function MarshalPrivate should be of the form "MarshalPrivate ..." (golint)
    • Line 481: warning: comment on exported function UnmarshalPrivate should be of the form "UnmarshalPrivate ..." (golint)
    • Line 503: 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 510: warning: comment on exported function ExportPublicPEM should be of the form "ExportPublicPEM ..." (golint)
    • Line 525: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 531: warning: comment on exported function ExportPrivatePEM should be of the form "ExportPrivatePEM ..." (golint)
    • Line 546: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 552: warning: comment on exported function ImportPublicPEM should be of the form "ImportPublicPEM ..." (golint)
    • Line 563: warning: comment on exported function ImportPrivatePEM should be of the form "ImportPrivatePEM ..." (golint)
    • sdk-go-common/rest/error.go
    • Line 33: warning: exported const ErrPermissionDenied should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported function CodedError should have comment or be unexported (golint)
    • sdk-go-common/utils/utils_test.go
    • Line 175: warning: don't use underscores in Go names; var invalid_uuid should be invalidUUID (golint)
    • Line 178: warning: don't use underscores in Go names; var valid_uuid should be validUUID (golint)
    • Line 184: warning: don't use underscores in Go names; var invalid_txid should be invalidTxid (golint)
    • Line 187: warning: don't use underscores in Go names; var valid_txid should be validTxid (golint)
    • Line 193: warning: don't use underscores in Go names; var invalid_string should be invalidString (golint)
    • Line 196: warning: don't use underscores in Go names; var valid_string should be validString (golint)
    • sdk-go-common/crypto/ecc/eciesv2/params.go
    • Line 33: warning: comment on exported var DefaultCurve should be of the form "DefaultCurve ..." (golint)
    • Line 38: warning: exported var ErrUnsupportedECDHAlgorithm should have comment or be unexported (golint)
    • Line 42: warning: exported type ECIESParams should have comment or be unexported (golint)
    • Line 57: warning: exported var ECIES_AES128_SHA256 should have comment or be unexported (golint)
    • Line 96: warning: exported function AddParamsForCurve should have comment or be unexported (golint)
    • sdk-go-common/utils/utils.go
    • Line 67: warning: comment on exported function Int2Str should be of the form "Int2Str ..." (golint)
    • Line 84: warning: exported function ArraytoString should have comment or be unexported (golint)
    • Line 109: warning: exported function ComputeSha256 should have comment or be unexported (golint)
    • Line 110: warning: don't use underscores in Go names; var sha_256 should be sha256 (golint)
    • Line 133: warning: comment on exported function IsHexdigest should be of the form "IsHexdigest ..." (golint)
    • Line 154: warning: exported function StringInSlice should have comment or be unexported (golint)
    • Line 204: warning: comment on exported function ValidateUUID should be of the form "ValidateUUID ..." (golint)
    • Line 210: warning: comment on exported function ValidateBase64EncodingString should be of the form "ValidateBase64EncodingString ..." (golint)
    • Line 216: warning: comment on exported function ValidateTXID should be of the form "ValidateTXID ..." (golint)
    • Line 383: warning: comment on exported function RawEncrypt should be of the form "RawEncrypt ..." (golint)
    • Line 407: warning: comment on exported function RawDecrypt should be of the form "RawDecrypt ..." (golint)
    • Line 454: warning: exported function RandNewStr should have comment or be unexported (golint)
    • sdk-go-common/crypto/rsa/rsa.go
    • Line 58: warning: exported method RSACryptoLib.Sign should have comment or be unexported (golint)
    • Line 64: warning: exported method RSACryptoLib.Verify should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method RSACryptoLib.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 74: warning: comment on exported method RSACryptoLib.Decrypt should be of the form "Decrypt ..." (golint)
    • sdk-go-common/structs/wallet/transaction.go
    • Line 26: warning: exported type AXTUnit should have comment or be unexported (golint)
    • Line 29: warning: exported const ATOM should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported type TokenAmount should be of the form "TokenAmount ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type Fee should be of the form "Fee ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported type IssueAssetBody should be of the form "IssueAssetBody ..." (with optional leading article) (golint)
    • Line 53: warning: comment on exported type IssueBody should be of the form "IssueBody ..." (with optional leading article) (golint)
    • Line 63: warning: comment on exported type TransferCTokenBody should be of the form "TransferCTokenBody ..." (with optional leading article) (golint)
    • Line 72: warning: comment on exported type ProcessTxBody should be of the form "ProcessTxBody ..." (with optional leading article) (golint)
    • Line 77: warning: comment on exported type TransferAssetBody should be of the form "TransferAssetBody ..." (with optional leading article) (golint)
    • Line 85: warning: exported type IssueCTokenPrepareResponse should have comment or be unexported (golint)
    • sdk-go-common/structs/wallet/wallet.go
    • Line 29: warning: comment on exported type RegisterWalletBody should be of the form "RegisterWalletBody ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type RegisterSubWalletBody should be of the form "RegisterSubWalletBody ..." (with optional leading article) (golint)
    • Line 74: warning: exported type KeyPair should have comment or be unexported (golint)
    • Line 85: warning: exported type WalletBalance should have comment or be unexported (golint)
    • Line 90: warning: exported type WalletInfo should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words

    • sdk-go-common/rest/api/api.go
    • Line 104: warning: "transation" is a misspelling of "transition" (misspell)
    • Line 143: warning: "transation" is a misspelling of "transition" (misspell)
    • Line 145: warning: "transation" is a misspelling of "transition" (misspell)
    • Line 146: warning: "transation" is a misspelling of "transition" (misspell)
    • Line 146: warning: "transation" is a misspelling of "transition" (misspell)
    • Line 399: warning: "libary" is a misspelling of "library" (misspell)
    • Line 567: warning: "libary" is a misspelling of "library" (misspell)