Preparing report...

Report for github.com/mercuryoio/tonlib-go

A    Great!    Found 37 issues across 55 files

Tweet

gofmt69%

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!


gocyclo89%

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.


golint65%

Golint is a linter for Go source code.

    • tonlib-go/methods.go
    • Line 8: warning: comment on exported method Client.Init should be of the form "Init ..." (golint)
    • Line 35: warning: comment on exported method Client.Close should be of the form "Close ..." (golint)
    • Line 59: warning: comment on exported method Client.OptionsSetConfig should be of the form "OptionsSetConfig ..." (golint)
    • Line 86: warning: comment on exported method Client.OptionsValidateConfig should be of the form "OptionsValidateConfig ..." (golint)
    • Line 113: warning: comment on exported method Client.CreateNewKey should be of the form "CreateNewKey ..." (golint)
    • Line 146: warning: comment on exported method Client.DeleteKey should be of the form "DeleteKey ..." (golint)
    • Line 173: warning: comment on exported method Client.DeleteAllKeys should be of the form "DeleteAllKeys ..." (golint)
    • Line 197: warning: comment on exported method Client.ExportKey should be of the form "ExportKey ..." (golint)
    • Line 224: warning: comment on exported method Client.ExportPemKey should be of the form "ExportPemKey ..." (golint)
    • Line 254: warning: comment on exported method Client.ExportEncryptedKey should be of the form "ExportEncryptedKey ..." (golint)
    • Line 284: warning: comment on exported method Client.ImportKey should be of the form "ImportKey ..." (golint)
    • Line 317: warning: comment on exported method Client.ImportPemKey should be of the form "ImportPemKey ..." (golint)
    • Line 350: warning: comment on exported method Client.ImportEncryptedKey should be of the form "ImportEncryptedKey ..." (golint)
    • Line 383: warning: comment on exported method Client.ChangeLocalPassword should be of the form "ChangeLocalPassword ..." (golint)
    • Line 413: warning: comment on exported method Client.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 443: warning: comment on exported method Client.Decrypt should be of the form "Decrypt ..." (golint)
    • Line 473: warning: comment on exported method Client.Kdf should be of the form "Kdf ..." (golint)
    • Line 506: warning: comment on exported method Client.UnpackAccountAddress should be of the form "UnpackAccountAddress ..." (golint)
    • Line 533: warning: comment on exported method Client.PackAccountAddress should be of the form "PackAccountAddress ..." (golint)
    • Line 560: warning: comment on exported method Client.GetBip39Hints should be of the form "GetBip39Hints ..." (golint)
    • Line 587: warning: comment on exported method Client.RawGetAccountAddress should be of the form "RawGetAccountAddress ..." (golint)
    • Line 614: warning: comment on exported method Client.RawGetAccountState should be of the form "RawGetAccountState ..." (golint)
    • Line 641: warning: comment on exported method Client.RawGetTransactions should be of the form "RawGetTransactions ..." (golint)
    • Line 671: warning: comment on exported method Client.RawSendMessage should be of the form "RawSendMessage ..." (golint)
    • Line 698: warning: comment on exported method Client.RawCreateAndSendMessage should be of the form "RawCreateAndSendMessage ..." (golint)
    • Line 731: warning: comment on exported method Client.RawCreateQuery should be of the form "RawCreateQuery ..." (golint)
    • Line 767: warning: comment on exported method Client.TestWalletInit should be of the form "TestWalletInit ..." (golint)
    • Line 794: warning: comment on exported method Client.TestWalletGetAccountAddress should be of the form "TestWalletGetAccountAddress ..." (golint)
    • Line 821: warning: comment on exported method Client.TestWalletGetAccountState should be of the form "TestWalletGetAccountState ..." (golint)
    • Line 848: warning: comment on exported method Client.TestWalletSendGrams should be of the form "TestWalletSendGrams ..." (golint)
    • Line 887: warning: comment on exported method Client.WalletInit should be of the form "WalletInit ..." (golint)
    • Line 914: warning: comment on exported method Client.WalletGetAccountAddress should be of the form "WalletGetAccountAddress ..." (golint)
    • Line 941: warning: comment on exported method Client.WalletGetAccountState should be of the form "WalletGetAccountState ..." (golint)
    • Line 968: warning: comment on exported method Client.WalletSendGrams should be of the form "WalletSendGrams ..." (golint)
    • Line 1010: warning: comment on exported method Client.WalletV3GetAccountAddress should be of the form "WalletV3GetAccountAddress ..." (golint)
    • Line 1037: warning: comment on exported method Client.TestGiverGetAccountState should be of the form "TestGiverGetAccountState ..." (golint)
    • Line 1061: warning: comment on exported method Client.TestGiverGetAccountAddress should be of the form "TestGiverGetAccountAddress ..." (golint)
    • Line 1085: warning: comment on exported method Client.TestGiverSendGrams should be of the form "TestGiverSendGrams ..." (golint)
    • Line 1121: warning: comment on exported method Client.GenericGetAccountState should be of the form "GenericGetAccountState ..." (golint)
    • Line 1148: warning: comment on exported method Client.GenericSendGrams should be of the form "GenericSendGrams ..." (golint)
    • Line 1193: warning: comment on exported method Client.GenericCreateSendGramsQuery should be of the form "GenericCreateSendGramsQuery ..." (golint)
    • Line 1238: warning: comment on exported method Client.QuerySend should be of the form "QuerySend ..." (golint)
    • Line 1265: warning: comment on exported method Client.QueryForget should be of the form "QueryForget ..." (golint)
    • Line 1292: warning: comment on exported method Client.QueryGetInfo should be of the form "QueryGetInfo ..." (golint)
    • Line 1319: warning: comment on exported method Client.SmcLoad should be of the form "SmcLoad ..." (golint)
    • Line 1346: warning: comment on exported method Client.SmcGetCode should be of the form "SmcGetCode ..." (golint)
    • Line 1373: warning: comment on exported method Client.SmcGetData should be of the form "SmcGetData ..." (golint)
    • Line 1400: warning: comment on exported method Client.SmcGetState should be of the form "SmcGetState ..." (golint)
    • Line 1427: warning: comment on exported method Client.SmcRunGetMethod should be of the form "SmcRunGetMethod ..." (golint)
    • Line 1460: warning: comment on exported method Client.OnLiteServerQueryResult should be of the form "OnLiteServerQueryResult ..." (golint)
    • Line 1490: warning: comment on exported method Client.OnLiteServerQueryError should be of the form "OnLiteServerQueryError ..." (golint)
    • Line 1520: warning: comment on exported method Client.RunTests should be of the form "RunTests ..." (golint)
    • Line 1547: warning: comment on exported method Client.LiteServerGetInfo should be of the form "LiteServerGetInfo ..." (golint)
    • tonlib-go/v2/structs.go
    • Line 15: warning: exported type SecureBytes should have comment or be unexported (golint)
    • Line 16: warning: exported type SecureString should have comment or be unexported (golint)
    • Line 17: warning: exported type Bytes should have comment or be unexported (golint)
    • Line 18: warning: exported type TvmStackEntry should have comment or be unexported (golint)
    • Line 19: warning: exported type SmcMethodId should have comment or be unexported (golint)
    • Line 20: warning: exported type TvmNumber should have comment or be unexported (golint)
    • Line 21: warning: exported type GenericAccountState should have comment or be unexported (golint)
    • Line 58: warning: exported type LogStream should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type Double should be of the form "Double ..." (with optional leading article) (golint)
    • Line 82: warning: comment on exported type String should be of the form "String ..." (with optional leading article) (golint)
    • Line 102: warning: comment on exported type Int32 should be of the form "Int32 ..." (with optional leading article) (golint)
    • Line 122: warning: comment on exported type Int53 should be of the form "Int53 ..." (with optional leading article) (golint)
    • Line 142: warning: comment on exported type Int64 should be of the form "Int64 ..." (with optional leading article) (golint)
    • Line 162: warning: comment on exported type Object should be of the form "Object ..." (with optional leading article) (golint)
    • Line 182: warning: comment on exported type Function should be of the form "Function ..." (with optional leading article) (golint)
    • Line 202: warning: comment on exported type BoolFalse should be of the form "BoolFalse ..." (with optional leading article) (golint)
    • Line 222: warning: comment on exported type BoolTrue should be of the form "BoolTrue ..." (with optional leading article) (golint)
    • Line 242: warning: comment on exported type Error should be of the form "Error ..." (with optional leading article) (golint)
    • Line 268: warning: comment on exported type Ok should be of the form "Ok ..." (with optional leading article) (golint)
    • Line 288: warning: comment on exported type KeyStoreTypeDirectory should be of the form "KeyStoreTypeDirectory ..." (with optional leading article) (golint)
    • Line 311: warning: comment on exported type KeyStoreTypeInMemory should be of the form "KeyStoreTypeInMemory ..." (with optional leading article) (golint)
    • Line 331: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 363: warning: comment on exported type Options should be of the form "Options ..." (with optional leading article) (golint)
    • Line 389: warning: comment on exported type OptionsConfigInfo should be of the form "OptionsConfigInfo ..." (with optional leading article) (golint)
    • Line 415: warning: comment on exported type OptionsInfo should be of the form "OptionsInfo ..." (with optional leading article) (golint)
    • Line 438: warning: comment on exported type InputKeyRegular should be of the form "InputKeyRegular ..." (with optional leading article) (golint)
    • Line 464: warning: comment on exported type InputKeyFake should be of the form "InputKeyFake ..." (with optional leading article) (golint)
    • Line 484: warning: comment on exported type ExportedKey should be of the form "ExportedKey ..." (with optional leading article) (golint)
    • Line 507: warning: comment on exported type ExportedPemKey should be of the form "ExportedPemKey ..." (with optional leading article) (golint)
    • Line 530: warning: comment on exported type ExportedEncryptedKey should be of the form "ExportedEncryptedKey ..." (with optional leading article) (golint)
    • Line 553: warning: comment on exported type ExportedUnencryptedKey should be of the form "ExportedUnencryptedKey ..." (with optional leading article) (golint)
    • Line 576: warning: comment on exported type Bip39Hints should be of the form "Bip39Hints ..." (with optional leading article) (golint)
    • Line 599: warning: comment on exported type AdnlAddress should be of the form "AdnlAddress ..." (with optional leading article) (golint)
    • Line 622: warning: comment on exported type AccountAddress should be of the form "AccountAddress ..." (with optional leading article) (golint)
    • Line 645: warning: comment on exported type UnpackedAccountAddress should be of the form "UnpackedAccountAddress ..." (with optional leading article) (golint)
    • Line 677: warning: comment on exported type InternalTransactionId should be of the form "InternalTransactionId ..." (with optional leading article) (golint)
    • Line 703: warning: comment on exported type TonBlockId should be of the form "TonBlockId ..." (with optional leading article) (golint)
    • Line 732: warning: comment on exported type TonBlockIdExt should be of the form "TonBlockIdExt ..." (with optional leading article) (golint)
    • Line 767: warning: comment on exported type RawFullAccountState should be of the form "RawFullAccountState ..." (with optional leading article) (golint)
    • Line 808: warning: comment on exported type RawMessage should be of the form "RawMessage ..." (with optional leading article) (golint)
    • Line 852: warning: comment on exported type RawTransaction should be of the form "RawTransaction ..." (with optional leading article) (golint)
    • Line 896: warning: comment on exported type RawTransactions should be of the form "RawTransactions ..." (with optional leading article) (golint)
    • Line 922: warning: comment on exported type PchanConfig should be of the form "PchanConfig ..." (with optional leading article) (golint)
    • Line 963: warning: comment on exported type RawInitialAccountState should be of the form "RawInitialAccountState ..." (with optional leading article) (golint)
    • Line 989: warning: comment on exported type TestGiverInitialAccountState should be of the form "TestGiverInitialAccountState ..." (with optional leading article) (golint)
    • Line 1009: warning: comment on exported type TestWalletInitialAccountState should be of the form "TestWalletInitialAccountState ..." (with optional leading article) (golint)
    • Line 1032: warning: comment on exported type WalletInitialAccountState should be of the form "WalletInitialAccountState ..." (with optional leading article) (golint)
    • Line 1055: warning: comment on exported type WalletV3InitialAccountState should be of the form "WalletV3InitialAccountState ..." (with optional leading article) (golint)
    • Line 1081: warning: comment on exported type WalletHighloadV1InitialAccountState should be of the form "WalletHighloadV1InitialAccountState ..." (with optional leading article) (golint)
    • Line 1107: warning: comment on exported type WalletHighloadV2InitialAccountState should be of the form "WalletHighloadV2InitialAccountState ..." (with optional leading article) (golint)
    • Line 1133: warning: comment on exported type RwalletLimit should be of the form "RwalletLimit ..." (with optional leading article) (golint)
    • Line 1159: warning: comment on exported type RwalletConfig should be of the form "RwalletConfig ..." (with optional leading article) (golint)
    • Line 1185: warning: comment on exported type RwalletInitialAccountState should be of the form "RwalletInitialAccountState ..." (with optional leading article) (golint)
    • Line 1214: warning: comment on exported type DnsInitialAccountState should be of the form "DnsInitialAccountState ..." (with optional leading article) (golint)
    • Line 1240: warning: comment on exported type PchanInitialAccountState should be of the form "PchanInitialAccountState ..." (with optional leading article) (golint)
    • Line 1263: warning: comment on exported type RawAccountState should be of the form "RawAccountState ..." (with optional leading article) (golint)
    • Line 1292: warning: comment on exported type TestWalletAccountState should be of the form "TestWalletAccountState ..." (with optional leading article) (golint)
    • Line 1315: warning: comment on exported type WalletAccountState should be of the form "WalletAccountState ..." (with optional leading article) (golint)
    • Line 1338: warning: comment on exported type WalletV3AccountState should be of the form "WalletV3AccountState ..." (with optional leading article) (golint)
    • Line 1364: warning: comment on exported type WalletHighloadV1AccountState should be of the form "WalletHighloadV1AccountState ..." (with optional leading article) (golint)
    • Line 1390: warning: comment on exported type WalletHighloadV2AccountState should be of the form "WalletHighloadV2AccountState ..." (with optional leading article) (golint)
    • Line 1413: warning: comment on exported type TestGiverAccountState should be of the form "TestGiverAccountState ..." (with optional leading article) (golint)
    • Line 1436: warning: comment on exported type DnsAccountState should be of the form "DnsAccountState ..." (with optional leading article) (golint)
    • Line 1459: warning: comment on exported type RwalletAccountState should be of the form "RwalletAccountState ..." (with optional leading article) (golint)
    • Line 1491: warning: comment on exported type PchanStateInit should be of the form "PchanStateInit ..." (with optional leading article) (golint)
    • Line 1532: warning: comment on exported type PchanStateClose should be of the form "PchanStateClose ..." (with optional leading article) (golint)
    • Line 1573: warning: comment on exported type PchanStatePayout should be of the form "PchanStatePayout ..." (with optional leading article) (golint)
    • Line 1599: warning: comment on exported type PchanAccountState should be of the form "PchanAccountState ..." (with optional leading article) (golint)
    • Line 1628: warning: comment on exported type UninitedAccountState should be of the form "UninitedAccountState ..." (with optional leading article) (golint)
    • Line 1651: warning: comment on exported type FullAccountState should be of the form "FullAccountState ..." (with optional leading article) (golint)
    • Line 1692: warning: comment on exported type AccountRevisionList should be of the form "AccountRevisionList ..." (with optional leading article) (golint)
    • Line 1715: warning: comment on exported type AccountList should be of the form "AccountList ..." (with optional leading article) (golint)
    • Line 1738: warning: comment on exported type SyncStateDone should be of the form "SyncStateDone ..." (with optional leading article) (golint)
    • Line 1758: warning: comment on exported type SyncStateInProgress should be of the form "SyncStateInProgress ..." (with optional leading article) (golint)
    • Line 1787: warning: comment on exported type MsgDataRaw should be of the form "MsgDataRaw ..." (with optional leading article) (golint)
    • Line 1813: warning: comment on exported type MsgDataText should be of the form "MsgDataText ..." (with optional leading article) (golint)
    • Line 1836: warning: comment on exported type MsgDataDecryptedText should be of the form "MsgDataDecryptedText ..." (with optional leading article) (golint)
    • Line 1859: warning: comment on exported type MsgDataEncryptedText should be of the form "MsgDataEncryptedText ..." (with optional leading article) (golint)
    • Line 1882: warning: comment on exported type MsgDataEncrypted should be of the form "MsgDataEncrypted ..." (with optional leading article) (golint)
    • Line 1908: warning: comment on exported type MsgDataDecrypted should be of the form "MsgDataDecrypted ..." (with optional leading article) (golint)
    • Line 1934: warning: comment on exported type MsgDataEncryptedArray should be of the form "MsgDataEncryptedArray ..." (with optional leading article) (golint)
    • Line 1957: warning: comment on exported type MsgDataDecryptedArray should be of the form "MsgDataDecryptedArray ..." (with optional leading article) (golint)
    • Line 1980: warning: comment on exported type MsgMessage should be of the form "MsgMessage ..." (with optional leading article) (golint)
    • Line 2012: warning: comment on exported type DnsEntryDataUnknown should be of the form "DnsEntryDataUnknown ..." (with optional leading article) (golint)
    • Line 2035: warning: comment on exported type DnsEntryDataText should be of the form "DnsEntryDataText ..." (with optional leading article) (golint)
    • Line 2058: warning: comment on exported type DnsEntryDataNextResolver should be of the form "DnsEntryDataNextResolver ..." (with optional leading article) (golint)
    • Line 2081: warning: comment on exported type DnsEntryDataSmcAddress should be of the form "DnsEntryDataSmcAddress ..." (with optional leading article) (golint)
    • Line 2104: warning: comment on exported type DnsEntryDataAdnlAddress should be of the form "DnsEntryDataAdnlAddress ..." (with optional leading article) (golint)
    • Line 2127: warning: comment on exported type DnsEntry should be of the form "DnsEntry ..." (with optional leading article) (golint)
    • Line 2156: warning: comment on exported type DnsActionDeleteAll should be of the form "DnsActionDeleteAll ..." (with optional leading article) (golint)
    • Line 2176: warning: comment on exported type DnsActionDelete should be of the form "DnsActionDelete ..." (with optional leading article) (golint)
    • Line 2202: warning: comment on exported type DnsActionSet should be of the form "DnsActionSet ..." (with optional leading article) (golint)
    • Line 2225: warning: comment on exported type DnsResolved should be of the form "DnsResolved ..." (with optional leading article) (golint)
    • Line 2248: warning: comment on exported type PchanPromise should be of the form "PchanPromise ..." (with optional leading article) (golint)
    • Line 2280: warning: comment on exported type PchanActionInit should be of the form "PchanActionInit ..." (with optional leading article) (golint)
    • Line 2312: warning: comment on exported type PchanActionClose should be of the form "PchanActionClose ..." (with optional leading article) (golint)
    • Line 2341: warning: comment on exported type PchanActionTimeout should be of the form "PchanActionTimeout ..." (with optional leading article) (golint)
    • Line 2361: warning: comment on exported type RwalletActionInit should be of the form "RwalletActionInit ..." (with optional leading article) (golint)
    • Line 2384: warning: comment on exported type ActionNoop should be of the form "ActionNoop ..." (with optional leading article) (golint)
    • Line 2404: warning: comment on exported type ActionMsg should be of the form "ActionMsg ..." (with optional leading article) (golint)
    • Line 2430: warning: comment on exported type ActionDns should be of the form "ActionDns ..." (with optional leading article) (golint)
    • Line 2453: warning: comment on exported type ActionPchan should be of the form "ActionPchan ..." (with optional leading article) (golint)
    • Line 2476: warning: comment on exported type ActionRwallet should be of the form "ActionRwallet ..." (with optional leading article) (golint)
    • Line 2499: warning: comment on exported type Fees should be of the form "Fees ..." (with optional leading article) (golint)
    • Line 2531: warning: comment on exported type QueryFees should be of the form "QueryFees ..." (with optional leading article) (golint)
    • Line 2557: warning: comment on exported type QueryInfo should be of the form "QueryInfo ..." (with optional leading article) (golint)
    • Line 2592: warning: comment on exported type TvmSlice should be of the form "TvmSlice ..." (with optional leading article) (golint)
    • Line 2615: warning: comment on exported type TvmCell should be of the form "TvmCell ..." (with optional leading article) (golint)
    • Line 2638: warning: comment on exported type TvmNumberDecimal should be of the form "TvmNumberDecimal ..." (with optional leading article) (golint)
    • Line 2661: warning: comment on exported type TvmTuple should be of the form "TvmTuple ..." (with optional leading article) (golint)
    • Line 2684: warning: comment on exported type TvmList should be of the form "TvmList ..." (with optional leading article) (golint)
    • Line 2707: warning: comment on exported type TvmStackEntrySlice should be of the form "TvmStackEntrySlice ..." (with optional leading article) (golint)
    • Line 2730: warning: comment on exported type TvmStackEntryCell should be of the form "TvmStackEntryCell ..." (with optional leading article) (golint)
    • Line 2753: warning: comment on exported type TvmStackEntryNumber should be of the form "TvmStackEntryNumber ..." (with optional leading article) (golint)
    • Line 2776: warning: comment on exported type TvmStackEntryTuple should be of the form "TvmStackEntryTuple ..." (with optional leading article) (golint)
    • Line 2799: warning: comment on exported type TvmStackEntryList should be of the form "TvmStackEntryList ..." (with optional leading article) (golint)
    • Line 2822: warning: comment on exported type TvmStackEntryUnsupported should be of the form "TvmStackEntryUnsupported ..." (with optional leading article) (golint)
    • Line 2842: warning: comment on exported type SmcInfo should be of the form "SmcInfo ..." (with optional leading article) (golint)
    • Line 2865: warning: comment on exported type SmcMethodIdNumber should be of the form "SmcMethodIdNumber ..." (with optional leading article) (golint)
    • Line 2888: warning: comment on exported type SmcMethodIdName should be of the form "SmcMethodIdName ..." (with optional leading article) (golint)
    • Line 2911: warning: comment on exported type SmcRunResult should be of the form "SmcRunResult ..." (with optional leading article) (golint)
    • Line 2940: warning: comment on exported type UpdateSendLiteServerQuery should be of the form "UpdateSendLiteServerQuery ..." (with optional leading article) (golint)
    • Line 2966: warning: comment on exported type UpdateSyncState should be of the form "UpdateSyncState ..." (with optional leading article) (golint)
    • Line 3116: warning: comment on exported type Data should be of the form "Data ..." (with optional leading article) (golint)
    • Line 3139: warning: comment on exported type LiteServerInfo should be of the form "LiteServerInfo ..." (with optional leading article) (golint)
    • tonlib-go/lib/lib.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • tonlib-go/structs.go
    • Line 15: warning: exported type SecureBytes should have comment or be unexported (golint)
    • Line 16: warning: exported type SecureString should have comment or be unexported (golint)
    • Line 17: warning: exported type Bytes should have comment or be unexported (golint)
    • Line 18: warning: exported type TvmStackEntry should have comment or be unexported (golint)
    • Line 19: warning: exported type SmcMethodId should have comment or be unexported (golint)
    • Line 20: warning: exported type TvmNumber should have comment or be unexported (golint)
    • Line 21: warning: exported type GenericAccountState should have comment or be unexported (golint)
    • Line 58: warning: exported type LogStream should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type Double should be of the form "Double ..." (with optional leading article) (golint)
    • Line 82: warning: comment on exported type String should be of the form "String ..." (with optional leading article) (golint)
    • Line 102: warning: comment on exported type Int32 should be of the form "Int32 ..." (with optional leading article) (golint)
    • Line 122: warning: comment on exported type Int53 should be of the form "Int53 ..." (with optional leading article) (golint)
    • Line 142: warning: comment on exported type Int64 should be of the form "Int64 ..." (with optional leading article) (golint)
    • Line 162: warning: comment on exported type BoolFalse should be of the form "BoolFalse ..." (with optional leading article) (golint)
    • Line 182: warning: comment on exported type BoolTrue should be of the form "BoolTrue ..." (with optional leading article) (golint)
    • Line 202: warning: comment on exported type Error should be of the form "Error ..." (with optional leading article) (golint)
    • Line 228: warning: comment on exported type Ok should be of the form "Ok ..." (with optional leading article) (golint)
    • Line 248: warning: comment on exported type KeyStoreTypeDirectory should be of the form "KeyStoreTypeDirectory ..." (with optional leading article) (golint)
    • Line 271: warning: comment on exported type KeyStoreTypeInMemory should be of the form "KeyStoreTypeInMemory ..." (with optional leading article) (golint)
    • Line 291: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 323: warning: comment on exported type Options should be of the form "Options ..." (with optional leading article) (golint)
    • Line 349: warning: comment on exported type OptionsConfigInfo should be of the form "OptionsConfigInfo ..." (with optional leading article) (golint)
    • Line 372: warning: comment on exported type OptionsInfo should be of the form "OptionsInfo ..." (with optional leading article) (golint)
    • Line 395: warning: comment on exported type InputKeyRegular should be of the form "InputKeyRegular ..." (with optional leading article) (golint)
    • Line 421: warning: comment on exported type InputKeyFake should be of the form "InputKeyFake ..." (with optional leading article) (golint)
    • Line 441: warning: comment on exported type ExportedKey should be of the form "ExportedKey ..." (with optional leading article) (golint)
    • Line 464: warning: comment on exported type ExportedPemKey should be of the form "ExportedPemKey ..." (with optional leading article) (golint)
    • Line 487: warning: comment on exported type ExportedEncryptedKey should be of the form "ExportedEncryptedKey ..." (with optional leading article) (golint)
    • Line 510: warning: comment on exported type Bip39Hints should be of the form "Bip39Hints ..." (with optional leading article) (golint)
    • Line 533: warning: comment on exported type AccountAddress should be of the form "AccountAddress ..." (with optional leading article) (golint)
    • Line 556: warning: comment on exported type UnpackedAccountAddress should be of the form "UnpackedAccountAddress ..." (with optional leading article) (golint)
    • Line 588: warning: comment on exported type InternalTransactionId should be of the form "InternalTransactionId ..." (with optional leading article) (golint)
    • Line 614: warning: comment on exported type RawInitialAccountState should be of the form "RawInitialAccountState ..." (with optional leading article) (golint)
    • Line 640: warning: comment on exported type RawAccountState should be of the form "RawAccountState ..." (with optional leading article) (golint)
    • Line 678: warning: comment on exported type RawMessage should be of the form "RawMessage ..." (with optional leading article) (golint)
    • Line 722: warning: comment on exported type RawTransaction should be of the form "RawTransaction ..." (with optional leading article) (golint)
    • Line 766: warning: comment on exported type RawTransactions should be of the form "RawTransactions ..." (with optional leading article) (golint)
    • Line 792: warning: comment on exported type TestWalletInitialAccountState should be of the form "TestWalletInitialAccountState ..." (with optional leading article) (golint)
    • Line 815: warning: comment on exported type TestWalletAccountState should be of the form "TestWalletAccountState ..." (with optional leading article) (golint)
    • Line 847: warning: comment on exported type WalletInitialAccountState should be of the form "WalletInitialAccountState ..." (with optional leading article) (golint)
    • Line 870: warning: comment on exported type WalletAccountState should be of the form "WalletAccountState ..." (with optional leading article) (golint)
    • Line 902: warning: comment on exported type WalletV3InitialAccountState should be of the form "WalletV3InitialAccountState ..." (with optional leading article) (golint)
    • Line 928: warning: comment on exported type WalletV3AccountState should be of the form "WalletV3AccountState ..." (with optional leading article) (golint)
    • Line 963: warning: comment on exported type TestGiverAccountState should be of the form "TestGiverAccountState ..." (with optional leading article) (golint)
    • Line 995: warning: comment on exported type UninitedAccountState should be of the form "UninitedAccountState ..." (with optional leading article) (golint)
    • Line 1027: warning: comment on exported type GenericAccountStateRaw should be of the form "GenericAccountStateRaw ..." (with optional leading article) (golint)
    • Line 1050: warning: comment on exported type GenericAccountStateTestWallet should be of the form "GenericAccountStateTestWallet ..." (with optional leading article) (golint)
    • Line 1073: warning: comment on exported type GenericAccountStateWallet should be of the form "GenericAccountStateWallet ..." (with optional leading article) (golint)
    • Line 1096: warning: comment on exported type GenericAccountStateWalletV3 should be of the form "GenericAccountStateWalletV3 ..." (with optional leading article) (golint)
    • Line 1119: warning: comment on exported type GenericAccountStateTestGiver should be of the form "GenericAccountStateTestGiver ..." (with optional leading article) (golint)
    • Line 1142: warning: comment on exported type GenericAccountStateUninited should be of the form "GenericAccountStateUninited ..." (with optional leading article) (golint)
    • Line 1165: warning: comment on exported type SendGramsResult should be of the form "SendGramsResult ..." (with optional leading article) (golint)
    • Line 1191: warning: comment on exported type SyncStateDone should be of the form "SyncStateDone ..." (with optional leading article) (golint)
    • Line 1211: warning: comment on exported type SyncStateInProgress should be of the form "SyncStateInProgress ..." (with optional leading article) (golint)
    • Line 1240: warning: comment on exported type Fees should be of the form "Fees ..." (with optional leading article) (golint)
    • Line 1272: warning: comment on exported type QueryFees should be of the form "QueryFees ..." (with optional leading article) (golint)
    • Line 1298: warning: comment on exported type QueryInfo should be of the form "QueryInfo ..." (with optional leading article) (golint)
    • Line 1327: warning: comment on exported type TvmSlice should be of the form "TvmSlice ..." (with optional leading article) (golint)
    • Line 1350: warning: comment on exported type TvmCell should be of the form "TvmCell ..." (with optional leading article) (golint)
    • Line 1373: warning: comment on exported type TvmNumberDecimal should be of the form "TvmNumberDecimal ..." (with optional leading article) (golint)
    • Line 1396: warning: comment on exported type TvmTuple should be of the form "TvmTuple ..." (with optional leading article) (golint)
    • Line 1419: warning: comment on exported type TvmList should be of the form "TvmList ..." (with optional leading article) (golint)
    • Line 1442: warning: comment on exported type TvmStackEntrySlice should be of the form "TvmStackEntrySlice ..." (with optional leading article) (golint)
    • Line 1465: warning: comment on exported type TvmStackEntryCell should be of the form "TvmStackEntryCell ..." (with optional leading article) (golint)
    • Line 1488: warning: comment on exported type TvmStackEntryNumber should be of the form "TvmStackEntryNumber ..." (with optional leading article) (golint)
    • Line 1511: warning: comment on exported type TvmStackEntryTuple should be of the form "TvmStackEntryTuple ..." (with optional leading article) (golint)
    • Line 1534: warning: comment on exported type TvmStackEntryList should be of the form "TvmStackEntryList ..." (with optional leading article) (golint)
    • Line 1557: warning: comment on exported type TvmStackEntryUnsupported should be of the form "TvmStackEntryUnsupported ..." (with optional leading article) (golint)
    • Line 1577: warning: comment on exported type SmcInfo should be of the form "SmcInfo ..." (with optional leading article) (golint)
    • Line 1600: warning: comment on exported type SmcMethodIdNumber should be of the form "SmcMethodIdNumber ..." (with optional leading article) (golint)
    • Line 1623: warning: comment on exported type SmcMethodIdName should be of the form "SmcMethodIdName ..." (with optional leading article) (golint)
    • Line 1646: warning: comment on exported type SmcRunResult should be of the form "SmcRunResult ..." (with optional leading article) (golint)
    • Line 1675: warning: comment on exported type UpdateSendLiteServerQuery should be of the form "UpdateSendLiteServerQuery ..." (with optional leading article) (golint)
    • Line 1701: warning: comment on exported type UpdateSyncState should be of the form "UpdateSyncState ..." (with optional leading article) (golint)
    • Line 1851: warning: comment on exported type Data should be of the form "Data ..." (with optional leading article) (golint)
    • Line 1874: warning: comment on exported type LiteServerInfo should be of the form "LiteServerInfo ..." (with optional leading article) (golint)
    • tonlib-go/utils.go
    • Line 9: warning: exported type TonlibConfigServer should have comment or be unexported (golint)
    • Line 14: warning: exported type TonlibListenserverConfig should have comment or be unexported (golint)
    • Line 20: warning: exported type ValidatorConfig should have comment or be unexported (golint)
    • Line 25: warning: exported type ZeroState should have comment or be unexported (golint)
    • Line 33: warning: exported type TonlibConfigFileConfig should have comment or be unexported (golint)
    • Line 40: warning: exported type TonlibConfigFile should have comment or be unexported (golint)
    • tonlib-go/v2/client.go
    • Line 20: warning: exported const DEFAULT_TIMEOUT should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type InputKey should have comment or be unexported (golint)
    • Line 29: warning: exported type TONPrivateKey should have comment or be unexported (golint)
    • Line 34: warning: exported type SyncState should have comment or be unexported (golint)
    • Line 67: warning: exported type TonInitRequest should have comment or be unexported (golint)
    • Line 212: warning: exported method Client.Destroy should have comment or be unexported (golint)
    • Line 218: warning: comment on exported method Client.Sync should be of the form "Sync ..." (golint)
    • Line 292: warning: comment on exported method Client.QueryEstimateFees should be of the form "QueryEstimateFees ..." (golint)
    • Line 368: warning: comment on exported method Client.UpdateTonConnection should be of the form "UpdateTonConnection ..." (golint)
    • Line 399: warning: comment on exported type Key should be of the form "Key ..." (with optional leading article) (golint)
    • Line 426: warning: comment on exported type InitialAccountState should be of the form "InitialAccountState ..." (with optional leading article) (golint)
    • Line 430: warning: exported type AccountState should have comment or be unexported (golint)
    • Line 432: warning: exported type MsgData should have comment or be unexported (golint)
    • Line 433: warning: exported type DnsEntryData should have comment or be unexported (golint)
    • Line 435: warning: exported type Action should have comment or be unexported (golint)
    • Line 436: warning: exported type DnsAction should have comment or be unexported (golint)
    • Line 438: warning: exported type PchanState should have comment or be unexported (golint)
    • Line 439: warning: exported type PchanAction should have comment or be unexported (golint)
    • tonlib-go/v2/methods.go
    • Line 8: warning: comment on exported method Client.Init should be of the form "Init ..." (golint)
    • Line 35: warning: comment on exported method Client.Close should be of the form "Close ..." (golint)
    • Line 59: warning: comment on exported method Client.OptionsSetConfig should be of the form "OptionsSetConfig ..." (golint)
    • Line 86: warning: comment on exported method Client.OptionsValidateConfig should be of the form "OptionsValidateConfig ..." (golint)
    • Line 113: warning: comment on exported method Client.CreateNewKey should be of the form "CreateNewKey ..." (golint)
    • Line 146: warning: comment on exported method Client.DeleteKey should be of the form "DeleteKey ..." (golint)
    • Line 173: warning: comment on exported method Client.DeleteAllKeys should be of the form "DeleteAllKeys ..." (golint)
    • Line 197: warning: comment on exported method Client.ExportKey should be of the form "ExportKey ..." (golint)
    • Line 224: warning: comment on exported method Client.ExportPemKey should be of the form "ExportPemKey ..." (golint)
    • Line 254: warning: comment on exported method Client.ExportEncryptedKey should be of the form "ExportEncryptedKey ..." (golint)
    • Line 284: warning: comment on exported method Client.ExportUnencryptedKey should be of the form "ExportUnencryptedKey ..." (golint)
    • Line 311: warning: comment on exported method Client.ImportKey should be of the form "ImportKey ..." (golint)
    • Line 344: warning: comment on exported method Client.ImportPemKey should be of the form "ImportPemKey ..." (golint)
    • Line 377: warning: comment on exported method Client.ImportEncryptedKey should be of the form "ImportEncryptedKey ..." (golint)
    • Line 410: warning: comment on exported method Client.ImportUnencryptedKey should be of the form "ImportUnencryptedKey ..." (golint)
    • Line 440: warning: comment on exported method Client.ChangeLocalPassword should be of the form "ChangeLocalPassword ..." (golint)
    • Line 470: warning: comment on exported method Client.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 500: warning: comment on exported method Client.Decrypt should be of the form "Decrypt ..." (golint)
    • Line 530: warning: comment on exported method Client.Kdf should be of the form "Kdf ..." (golint)
    • Line 563: warning: comment on exported method Client.UnpackAccountAddress should be of the form "UnpackAccountAddress ..." (golint)
    • Line 590: warning: comment on exported method Client.PackAccountAddress should be of the form "PackAccountAddress ..." (golint)
    • Line 617: warning: comment on exported method Client.GetBip39Hints should be of the form "GetBip39Hints ..." (golint)
    • Line 644: warning: comment on exported method Client.RawGetAccountState should be of the form "RawGetAccountState ..." (golint)
    • Line 671: warning: comment on exported method Client.RawGetTransactions should be of the form "RawGetTransactions ..." (golint)
    • Line 704: warning: comment on exported method Client.RawSendMessage should be of the form "RawSendMessage ..." (golint)
    • Line 731: warning: comment on exported method Client.RawCreateAndSendMessage should be of the form "RawCreateAndSendMessage ..." (golint)
    • Line 764: warning: comment on exported method Client.RawCreateQuery should be of the form "RawCreateQuery ..." (golint)
    • Line 800: warning: comment on exported method Client.GetAccountAddress should be of the form "GetAccountAddress ..." (golint)
    • Line 833: warning: comment on exported method Client.GuessAccountRevision should be of the form "GuessAccountRevision ..." (golint)
    • Line 863: warning: comment on exported method Client.GuessAccount should be of the form "GuessAccount ..." (golint)
    • Line 893: warning: comment on exported method Client.GetAccountState should be of the form "GetAccountState ..." (golint)
    • Line 920: warning: comment on exported method Client.CreateQuery should be of the form "CreateQuery ..." (golint)
    • Line 959: warning: comment on exported method Client.MsgDecrypt should be of the form "MsgDecrypt ..." (golint)
    • Line 989: warning: comment on exported method Client.MsgDecryptWithProof should be of the form "MsgDecryptWithProof ..." (golint)
    • Line 1019: warning: comment on exported method Client.QuerySend should be of the form "QuerySend ..." (golint)
    • Line 1046: warning: comment on exported method Client.QueryForget should be of the form "QueryForget ..." (golint)
    • Line 1073: warning: comment on exported method Client.QueryGetInfo should be of the form "QueryGetInfo ..." (golint)
    • Line 1100: warning: comment on exported method Client.SmcLoad should be of the form "SmcLoad ..." (golint)
    • Line 1127: warning: comment on exported method Client.SmcGetCode should be of the form "SmcGetCode ..." (golint)
    • Line 1154: warning: comment on exported method Client.SmcGetData should be of the form "SmcGetData ..." (golint)
    • Line 1181: warning: comment on exported method Client.SmcGetState should be of the form "SmcGetState ..." (golint)
    • Line 1208: warning: comment on exported method Client.SmcRunGetMethod should be of the form "SmcRunGetMethod ..." (golint)
    • Line 1241: warning: comment on exported method Client.DnsResolve should be of the form "DnsResolve ..." (golint)
    • Line 1277: warning: comment on exported method Client.PchanSignPromise should be of the form "PchanSignPromise ..." (golint)
    • Line 1307: warning: comment on exported method Client.PchanValidatePromise should be of the form "PchanValidatePromise ..." (golint)
    • Line 1337: warning: comment on exported method Client.PchanPackPromise should be of the form "PchanPackPromise ..." (golint)
    • Line 1364: warning: comment on exported method Client.PchanUnpackPromise should be of the form "PchanUnpackPromise ..." (golint)
    • Line 1391: warning: comment on exported method Client.OnLiteServerQueryResult should be of the form "OnLiteServerQueryResult ..." (golint)
    • Line 1421: warning: comment on exported method Client.OnLiteServerQueryError should be of the form "OnLiteServerQueryError ..." (golint)
    • Line 1451: warning: comment on exported method Client.WithBlock should be of the form "WithBlock ..." (golint)
    • Line 1481: warning: comment on exported method Client.RunTests should be of the form "RunTests ..." (golint)
    • Line 1508: warning: comment on exported method Client.LiteServerGetInfo should be of the form "LiteServerGetInfo ..." (golint)
    • tonlib-go/v2/simple.go
    • Line 9: warning: exported const SmcRunResultType should have comment or be unexported (golint)
    • Line 10: warning: exported const SmcElectionIdMethod should have comment or be unexported (golint)
    • Line 11: warning: exported const SmcWalletSeqnoMethod should have comment or be unexported (golint)
    • Line 12: warning: exported const SmcParicipiantListMethod should have comment or be unexported (golint)
    • Line 13: warning: exported const SmcParicipiantListExtendedMethod should have comment or be unexported (golint)
    • Line 14: warning: exported const SmcParticipatesInMethod should have comment or be unexported (golint)
    • Line 15: warning: exported const SmcComputeReturnedStakeMethod should have comment or be unexported (golint)
    • Line 16: warning: exported const NoErrorCode should have comment or be unexported (golint)
    • Line 18: warning: exported type ElectionParticipant should have comment or be unexported (golint)
    • Line 27: warning: exported method Client.GetActiveElectionID should have comment or be unexported (golint)
    • Line 69: warning: exported method Client.LoadContract should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.GetWalletSeqno should have comment or be unexported (golint)
    • Line 118: warning: exported method Client.GetParticipantList should have comment or be unexported (golint)
    • Line 135: warning: exported method Client.GetParticipantListExtended should have comment or be unexported (golint)
    • Line 283: warning: exported method Client.CheckParticipatesIn should have comment or be unexported (golint)
    • Line 328: warning: exported method Client.CheckReward should have comment or be unexported (golint)
    • Line 372: warning: exported method Client.GetAccountStateSimple should have comment or be unexported (golint)
    • Line 377: warning: exported method Client.GetLastBlock should have comment or be unexported (golint)
    • Line 381: warning: exported method Client.TonlibSendFile should have comment or be unexported (golint)
    • tonlib-go/client.go
    • Line 20: warning: exported const DEFAULT_TIMEOUT should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type InputKey should have comment or be unexported (golint)
    • Line 29: warning: exported type TONPrivateKey should have comment or be unexported (golint)
    • Line 34: warning: exported type SyncState should have comment or be unexported (golint)
    • Line 64: warning: exported type TonInitRequest should have comment or be unexported (golint)
    • Line 167: warning: exported method Client.Destroy should have comment or be unexported (golint)
    • Line 171: warning: comment on exported method Client.Sync should be of the form "Sync ..." (golint)
    • Line 234: warning: comment on exported method Client.QueryEstimateFees should be of the form "QueryEstimateFees ..." (golint)
    • Line 310: warning: comment on exported type Key should be of the form "Key ..." (with optional leading article) (golint)
    • tonlib-go/v2/utils.go
    • Line 10: warning: exported type TonlibConfigServer should have comment or be unexported (golint)
    • Line 15: warning: exported type TonlibListenserverConfig should have comment or be unexported (golint)
    • Line 21: warning: exported type ValidatorConfig should have comment or be unexported (golint)
    • Line 26: warning: exported type ZeroState should have comment or be unexported (golint)
    • Line 34: warning: exported type TonlibConfigFileConfig should have comment or be unexported (golint)
    • Line 41: warning: exported type TonlibConfigFile should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.

    • tonlib-go/v2/example/send_gram.go
    • Line 35: warning: cannot use &loc (value of type *v2.SecureBytes) as v2.SecureBytes value in argument to cln.CreateNewKey (ineffassign)
    • Line 35: warning: cannot use &mem (value of type *v2.SecureBytes) as v2.SecureBytes value in argument to cln.CreateNewKey (ineffassign)
    • Line 35: warning: cannot use &seed (value of type *v2.SecureBytes) as v2.SecureBytes value in argument to cln.CreateNewKey (ineffassign)
    • Line 46: warning: invalid operation: cannot indirect pKey.Secret (variable of type string) (ineffassign)
    • Line 50: warning: cln.WalletInit undefined (type *v2.Client has no field or method WalletInit) (ineffassign)
    • Line 54: warning: cln.WalletGetAccountAddress undefined (type *v2.Client has no field or method WalletGetAccountAddress) (ineffassign)
    • Line 60: warning: cln.GenericSendGrams undefined (type *v2.Client has no field or method GenericSendGrams) (ineffassign)
    • tonlib-go/client.go
    • Line 9: warning: could not import C (no metadata for C) (ineffassign)
    • Line 9: warning: could not import C (no metadata for C) (ineffassign)

misspell83%

Misspell Finds commonly misspelled English words

    • tonlib-go/client_test.go
    • Line 335: warning: "adress" is a misspelling of "address" (misspell)
    • Line 341: warning: "adress" is a misspelling of "address" (misspell)
    • Line 393: warning: "adress" is a misspelling of "address" (misspell)
    • Line 565: warning: "adress" is a misspelling of "address" (misspell)
    • Line 570: warning: "adress" is a misspelling of "address" (misspell)
    • Line 644: warning: "adress" is a misspelling of "address" (misspell)
    • tonlib-go/v2/client_test.go
    • Line 270: warning: "adress" is a misspelling of "address" (misspell)
    • Line 276: warning: "adress" is a misspelling of "address" (misspell)
    • Line 311: warning: "adress" is a misspelling of "address" (misspell)
    • Line 407: warning: "adress" is a misspelling of "address" (misspell)