Preparing report...

Report for github.com/NodeFactoryIo/go-substrate-rpc-client

A+    Excellent!    Found 62 issues across 248 files

Tweet

gofmt97%

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!


gocyclo97%

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.


golint78%

Golint is a linter for Go source code.

    • go-substrate-rpc-client/types/storage_change_set.go
    • Line 30: warning: exported type KeyValueOption should have comment or be unexported (golint)
    • Line 36: warning: exported method KeyValueOption.UnmarshalJSON should have comment or be unexported (golint)
    • Line 64: warning: exported method KeyValueOption.MarshalJSON should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/metadataV4.go
    • Line 30: warning: comment on exported type MetadataV4 should be of the form "MetadataV4 ..." (with optional leading article) (golint)
    • Line 35: warning: exported method MetadataV4.Decode should have comment or be unexported (golint)
    • Line 43: warning: exported method MetadataV4.Encode should have comment or be unexported (golint)
    • Line 51: warning: exported method MetadataV4.FindCallIndex should have comment or be unexported (golint)
    • Line 72: warning: exported method MetadataV4.FindEventNamesForEventID should have comment or be unexported (golint)
    • Line 90: warning: exported method MetadataV4.FindStorageEntryMetadata should have comment or be unexported (golint)
    • Line 109: warning: exported method MetadataV4.ExistsModuleMetadata should have comment or be unexported (golint)
    • Line 118: warning: exported type StorageEntryMetadata should have comment or be unexported (golint)
    • Line 126: warning: exported type ModuleMetadataV4 should have comment or be unexported (golint)
    • Line 137: warning: exported method ModuleMetadataV4.Decode should have comment or be unexported (golint)
    • Line 186: warning: exported method ModuleMetadataV4.Encode should have comment or be unexported (golint)
    • Line 235: warning: exported type StorageFunctionMetadataV4 should have comment or be unexported (golint)
    • Line 243: warning: exported method StorageFunctionMetadataV4.IsPlain should have comment or be unexported (golint)
    • Line 247: warning: exported method StorageFunctionMetadataV4.IsMap should have comment or be unexported (golint)
    • Line 251: warning: exported method StorageFunctionMetadataV4.IsDoubleMap should have comment or be unexported (golint)
    • Line 255: warning: exported method StorageFunctionMetadataV4.Hasher should have comment or be unexported (golint)
    • Line 265: warning: exported method StorageFunctionMetadataV4.Hasher2 should have comment or be unexported (golint)
    • Line 269: warning: exported type StorageFunctionTypeV4 should have comment or be unexported (golint)
    • Line 278: warning: exported method StorageFunctionTypeV4.Decode should have comment or be unexported (golint)
    • Line 310: warning: exported method StorageFunctionTypeV4.Encode should have comment or be unexported (golint)
    • Line 345: warning: exported type DoubleMapTypeV4 should have comment or be unexported (golint)
    • Line 353: warning: exported type MapTypeV4 should have comment or be unexported (golint)
    • Line 360: warning: exported type StorageHasher should have comment or be unexported (golint)
    • Line 368: warning: exported method StorageHasher.Decode should have comment or be unexported (golint)
    • Line 392: warning: exported method StorageHasher.Encode should have comment or be unexported (golint)
    • Line 411: warning: exported type FunctionMetadataV4 should have comment or be unexported (golint)
    • Line 417: warning: exported type EventMetadataV4 should have comment or be unexported (golint)
    • Line 423: warning: exported method StorageHasher.HashFunc should have comment or be unexported (golint)
    • Line 452: warning: exported type FunctionArgumentMetadata should have comment or be unexported (golint)
    • Line 457: warning: exported type StorageFunctionModifierV0 should have comment or be unexported (golint)
    • Line 463: warning: exported method StorageFunctionModifierV0.Decode should have comment or be unexported (golint)
    • Line 483: warning: exported method StorageFunctionModifierV0.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/multi_signature.go
    • Line 21: warning: comment on exported type MultiSignature should be of the form "MultiSignature ..." (with optional leading article) (golint)
    • Line 31: warning: exported method MultiSignature.Decode should have comment or be unexported (golint)
    • Line 56: warning: exported method MultiSignature.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/option_int.go
    • Line 37: warning: exported method OptionI8.Encode should have comment or be unexported (golint)
    • Line 41: warning: exported method OptionI8.Decode should have comment or be unexported (golint)
    • Line 78: warning: exported method OptionI16.Encode should have comment or be unexported (golint)
    • Line 82: warning: exported method OptionI16.Decode should have comment or be unexported (golint)
    • Line 119: warning: exported method OptionI32.Encode should have comment or be unexported (golint)
    • Line 123: warning: exported method OptionI32.Decode should have comment or be unexported (golint)
    • Line 160: warning: exported method OptionI64.Encode should have comment or be unexported (golint)
    • Line 164: warning: exported method OptionI64.Decode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/balance_status.go
    • Line 9: warning: exported type BalanceStatus should have comment or be unexported (golint)
    • Line 12: warning: comment on exported const Free should be of the form "Free ..." (golint)
    • Line 14: warning: comment on exported const Reserved should be of the form "Reserved ..." (golint)
    • Line 18: warning: exported method BalanceStatus.Decode should have comment or be unexported (golint)
    • Line 30: warning: exported method BalanceStatus.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/digest_item.go
    • Line 39: warning: exported method DigestItem.Decode should have comment or be unexported (golint)
    • Line 77: warning: exported method DigestItem.Encode should have comment or be unexported (golint)
    • Line 121: warning: exported type SealV0 should have comment or be unexported (golint)
    • Line 126: warning: exported type Seal should have comment or be unexported (golint)
    • Line 135: warning: exported type Consensus should have comment or be unexported (golint)
    • Line 140: warning: exported type PreRuntime should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/election_compute.go
    • Line 9: warning: exported type ElectionCompute should have comment or be unexported (golint)
    • Line 12: warning: comment on exported const OnChain should be of the form "OnChain ..." (golint)
    • Line 14: warning: comment on exported const Signed should be of the form "Signed ..." (golint)
    • Line 16: warning: comment on exported const Unsigned should be of the form "Unsigned ..." (golint)
    • Line 20: warning: exported method ElectionCompute.Decode should have comment or be unexported (golint)
    • Line 32: warning: exported method ElectionCompute.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/metadataV10.go
    • Line 30: warning: comment on exported type MetadataV10 should be of the form "MetadataV10 ..." (with optional leading article) (golint)
    • Line 35: warning: exported method MetadataV10.Decode should have comment or be unexported (golint)
    • Line 43: warning: exported method MetadataV10.Encode should have comment or be unexported (golint)
    • Line 51: warning: exported method MetadataV10.FindCallIndex should have comment or be unexported (golint)
    • Line 72: warning: exported method MetadataV10.FindEventNamesForEventID should have comment or be unexported (golint)
    • Line 90: warning: exported method MetadataV10.FindStorageEntryMetadata should have comment or be unexported (golint)
    • Line 109: warning: exported method MetadataV10.ExistsModuleMetadata should have comment or be unexported (golint)
    • Line 118: warning: exported type ModuleMetadataV10 should have comment or be unexported (golint)
    • Line 130: warning: exported method ModuleMetadataV10.Decode should have comment or be unexported (golint)
    • Line 180: warning: exported method ModuleMetadataV10.Encode should have comment or be unexported (golint)
    • Line 230: warning: exported type StorageMetadataV10 should have comment or be unexported (golint)
    • Line 235: warning: exported type StorageFunctionMetadataV10 should have comment or be unexported (golint)
    • Line 243: warning: exported method StorageFunctionMetadataV10.IsPlain should have comment or be unexported (golint)
    • Line 247: warning: exported method StorageFunctionMetadataV10.IsMap should have comment or be unexported (golint)
    • Line 251: warning: exported method StorageFunctionMetadataV10.IsDoubleMap should have comment or be unexported (golint)
    • Line 255: warning: exported method StorageFunctionMetadataV10.Hasher should have comment or be unexported (golint)
    • Line 265: warning: exported method StorageFunctionMetadataV10.Hasher2 should have comment or be unexported (golint)
    • Line 272: warning: exported type StorageFunctionTypeV10 should have comment or be unexported (golint)
    • Line 281: warning: exported method StorageFunctionTypeV10.Decode should have comment or be unexported (golint)
    • Line 313: warning: exported method StorageFunctionTypeV10.Encode should have comment or be unexported (golint)
    • Line 348: warning: exported type MapTypeV10 should have comment or be unexported (golint)
    • Line 355: warning: exported type DoubleMapTypeV10 should have comment or be unexported (golint)
    • Line 363: warning: exported type StorageHasherV10 should have comment or be unexported (golint)
    • Line 373: warning: exported method StorageHasherV10.Decode should have comment or be unexported (golint)
    • Line 401: warning: exported method StorageHasherV10.Encode should have comment or be unexported (golint)
    • Line 424: warning: exported method StorageHasherV10.HashFunc should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/metadataV11.go
    • Line 5: warning: comment on exported type MetadataV11 should be of the form "MetadataV11 ..." (with optional leading article) (golint)
    • Line 11: warning: comment on exported type ExtrinsicV11 should be of the form "ExtrinsicV11 ..." (with optional leading article) (golint)
    • Line 17: warning: exported method MetadataV11.Decode should have comment or be unexported (golint)
    • Line 25: warning: exported method MetadataV11.Encode should have comment or be unexported (golint)
    • Line 33: warning: exported method ExtrinsicV11.Decode should have comment or be unexported (golint)
    • Line 42: warning: exported method ExtrinsicV11.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/runtime_version.go
    • Line 26: warning: exported type RuntimeVersion should have comment or be unexported (golint)
    • Line 36: warning: exported function NewRuntimeVersion should have comment or be unexported (golint)
    • Line 40: warning: exported method RuntimeVersion.Decode should have comment or be unexported (golint)
    • Line 74: warning: exported method RuntimeVersion.Encode should have comment or be unexported (golint)
    • Line 108: warning: exported type RuntimeVersionAPI should have comment or be unexported (golint)
    • Line 113: warning: exported method RuntimeVersionAPI.UnmarshalJSON should have comment or be unexported (golint)
    • Line 125: warning: exported method RuntimeVersionAPI.MarshalJSON should have comment or be unexported (golint)
    • Line 130: warning: exported method RuntimeVersionAPI.Decode should have comment or be unexported (golint)
    • Line 144: warning: exported method RuntimeVersionAPI.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/account_info.go
    • Line 19: warning: comment on exported type AccountInfoV4 should be of the form "AccountInfoV4 ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported function NewAccountInfoV4 should be of the form "NewAccountInfoV4 ..." (golint)
    • go-substrate-rpc-client/types/metadataV8.go
    • Line 26: warning: comment on exported type MetadataV8 should be of the form "MetadataV8 ..." (with optional leading article) (golint)
    • Line 31: warning: exported method MetadataV8.Decode should have comment or be unexported (golint)
    • Line 39: warning: exported method MetadataV8.Encode should have comment or be unexported (golint)
    • Line 47: warning: exported method MetadataV8.FindCallIndex should have comment or be unexported (golint)
    • Line 68: warning: exported method MetadataV8.FindEventNamesForEventID should have comment or be unexported (golint)
    • Line 86: warning: exported method MetadataV8.FindStorageEntryMetadata should have comment or be unexported (golint)
    • Line 105: warning: exported method MetadataV8.ExistsModuleMetadata should have comment or be unexported (golint)
    • Line 114: warning: exported type ModuleMetadataV8 should have comment or be unexported (golint)
    • Line 126: warning: exported method ModuleMetadataV8.Decode should have comment or be unexported (golint)
    • Line 176: warning: exported method ModuleMetadataV8.Encode should have comment or be unexported (golint)
    • Line 226: warning: exported type ErrorMetadataV8 should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/metadataV12.go
    • Line 10: warning: comment on exported type MetadataV12 should be of the form "MetadataV12 ..." (with optional leading article) (golint)
    • Line 16: warning: exported method MetadataV12.Decode should have comment or be unexported (golint)
    • Line 24: warning: exported method MetadataV12.Encode should have comment or be unexported (golint)
    • Line 32: warning: exported method MetadataV12.FindCallIndex should have comment or be unexported (golint)
    • Line 51: warning: exported method MetadataV12.FindEventNamesForEventID should have comment or be unexported (golint)
    • Line 67: warning: exported method MetadataV12.FindStorageEntryMetadata should have comment or be unexported (golint)
    • Line 86: warning: exported method MetadataV12.ExistsModuleMetadata should have comment or be unexported (golint)
    • Line 95: warning: exported type ModuleMetadataV12 should have comment or be unexported (golint)
    • Line 108: warning: exported method ModuleMetadataV12.Decode should have comment or be unexported (golint)
    • Line 163: warning: exported method ModuleMetadataV12.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/metadataV7.go
    • Line 28: warning: comment on exported type MetadataV7 should be of the form "MetadataV7 ..." (with optional leading article) (golint)
    • Line 33: warning: exported method MetadataV7.Decode should have comment or be unexported (golint)
    • Line 41: warning: exported method MetadataV7.Encode should have comment or be unexported (golint)
    • Line 49: warning: exported method MetadataV7.FindCallIndex should have comment or be unexported (golint)
    • Line 70: warning: exported method MetadataV7.FindEventNamesForEventID should have comment or be unexported (golint)
    • Line 88: warning: exported method MetadataV7.FindStorageEntryMetadata should have comment or be unexported (golint)
    • Line 107: warning: exported method MetadataV7.ExistsModuleMetadata should have comment or be unexported (golint)
    • Line 116: warning: exported type ModuleMetadataV7 should have comment or be unexported (golint)
    • Line 127: warning: exported method ModuleMetadataV7.Decode should have comment or be unexported (golint)
    • Line 172: warning: exported method ModuleMetadataV7.Encode should have comment or be unexported (golint)
    • Line 217: warning: exported type StorageMetadata should have comment or be unexported (golint)
    • Line 222: warning: exported type StorageFunctionMetadataV5 should have comment or be unexported (golint)
    • Line 230: warning: exported method StorageFunctionMetadataV5.IsPlain should have comment or be unexported (golint)
    • Line 234: warning: exported method StorageFunctionMetadataV5.IsMap should have comment or be unexported (golint)
    • Line 238: warning: exported method StorageFunctionMetadataV5.IsDoubleMap should have comment or be unexported (golint)
    • Line 242: warning: exported method StorageFunctionMetadataV5.Hasher should have comment or be unexported (golint)
    • Line 252: warning: exported method StorageFunctionMetadataV5.Hasher2 should have comment or be unexported (golint)
    • Line 259: warning: exported type StorageFunctionTypeV5 should have comment or be unexported (golint)
    • Line 268: warning: exported method StorageFunctionTypeV5.Decode should have comment or be unexported (golint)
    • Line 300: warning: exported method StorageFunctionTypeV5.Encode should have comment or be unexported (golint)
    • Line 335: warning: exported type DoubleMapTypeV5 should have comment or be unexported (golint)
    • Line 343: warning: exported type ModuleConstantMetadataV6 should have comment or be unexported (golint)
    • go-substrate-rpc-client/scale/codec.go
    • Line 44: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 179: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 288: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 602: warning: comment on exported method OptionBool.Encode should be of the form "Encode ..." (golint)
    • Line 620: warning: comment on exported method OptionBool.Decode should be of the form "Decode ..." (golint)
    • go-substrate-rpc-client/types/events.go
    • Line 33: warning: comment on exported type EventBalancesDustLost should be of the form "EventBalancesDustLost ..." (with optional leading article) (golint)
    • Line 51: warning: comment on exported type EventBalancesBalanceSet should be of the form "EventBalancesBalanceSet ..." (with optional leading article) (golint)
    • Line 60: warning: comment on exported type EventBalancesDeposit should be of the form "EventBalancesDeposit ..." (with optional leading article) (golint)
    • Line 300: warning: exported method DispatchClass.Decode should have comment or be unexported (golint)
    • Line 310: warning: exported method DispatchClass.Encode should have comment or be unexported (golint)
    • Line 421: warning: exported method VoteThreshold.Decode should have comment or be unexported (golint)
    • Line 433: warning: exported method VoteThreshold.Encode should have comment or be unexported (golint)
    • Line 561: warning: comment on exported type EventCollectiveVoted should be of the form "EventCollectiveVoted ..." (with optional leading article) (golint)
    • Line 690: warning: comment on exported type EventElectionsEmptyTerm should be of the form "EventElectionsEmptyTerm ..." (with optional leading article) (golint)
    • Line 720: warning: comment on exported type EventIdentitySet should be of the form "EventIdentitySet ..." (with optional leading article) (golint)
    • Line 727: warning: comment on exported type EventIdentityCleared should be of the form "EventIdentityCleared ..." (with optional leading article) (golint)
    • Line 735: warning: comment on exported type EventIdentityKilled should be of the form "EventIdentityKilled ..." (with optional leading article) (golint)
    • Line 743: warning: comment on exported type EventIdentityJudgementRequested should be of the form "EventIdentityJudgementRequested ..." (with optional leading article) (golint)
    • Line 751: warning: comment on exported type EventIdentityJudgementUnrequested should be of the form "EventIdentityJudgementUnrequested ..." (with optional leading article) (golint)
    • Line 759: warning: comment on exported type EventIdentityJudgementGiven should be of the form "EventIdentityJudgementGiven ..." (with optional leading article) (golint)
    • Line 767: warning: comment on exported type EventIdentityRegistrarAdded should be of the form "EventIdentityRegistrarAdded ..." (with optional leading article) (golint)
    • Line 1014: warning: exported type ProxyType should have comment or be unexported (golint)
    • Line 1017: warning: exported const Any should have comment (or a comment on this block) or be unexported (golint)
    • Line 1023: warning: exported method ProxyType.Decode should have comment or be unexported (golint)
    • Line 1035: warning: exported method ProxyType.Encode should have comment or be unexported (golint)
    • Line 1071: warning: comment on exported type EventSudoAsDone should be of the form "EventSudoAsDone ..." (with optional leading article) (golint)
    • Line 1223: warning: comment on exported type EventMultisigNewMultisig should be of the form "EventMultisigNewMultisig ..." (with optional leading article) (golint)
    • Line 1245: warning: comment on exported type EventMultisigApproval should be of the form "EventMultisigApproval ..." (with optional leading article) (golint)
    • Line 1262: warning: exported method DispatchResult.Decode should have comment or be unexported (golint)
    • Line 1283: warning: exported method DispatchResult.Encode should have comment or be unexported (golint)
    • Line 1290: warning: comment on exported type EventMultisigExecuted should be of the form "EventMultisigExecuted ..." (with optional leading article) (golint)
    • Line 1302: warning: comment on exported type EventMultisigCancelled should be of the form "EventMultisigCancelled ..." (with optional leading article) (golint)
    • go-substrate-rpc-client/types/metadata.go
    • Line 25: warning: exported const MagicNumber should have comment or be unexported (golint)
    • Line 29: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 48: warning: exported function NewMetadataV4 should have comment or be unexported (golint)
    • Line 52: warning: exported function NewMetadataV7 should have comment or be unexported (golint)
    • Line 56: warning: exported function NewMetadataV8 should have comment or be unexported (golint)
    • Line 60: warning: exported function NewMetadataV9 should have comment or be unexported (golint)
    • Line 64: warning: exported function NewMetadataV10 should have comment or be unexported (golint)
    • Line 68: warning: exported function NewMetadataV11 should have comment or be unexported (golint)
    • Line 76: warning: exported function NewMetadataV12 should have comment or be unexported (golint)
    • Line 84: warning: exported method Metadata.Decode should have comment or be unexported (golint)
    • Line 127: warning: exported method Metadata.Encode should have comment or be unexported (golint)
    • Line 160: warning: exported method Metadata.FindCallIndex should have comment or be unexported (golint)
    • Line 181: warning: exported method Metadata.FindEventNamesForEventID should have comment or be unexported (golint)
    • Line 202: warning: exported method Metadata.FindStorageEntryMetadata should have comment or be unexported (golint)
    • Line 223: warning: exported method Metadata.ExistsModuleMetadata should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/metadataV9.go
    • Line 26: warning: comment on exported type MetadataV9 should be of the form "MetadataV9 ..." (with optional leading article) (golint)
    • Line 31: warning: exported method MetadataV9.Decode should have comment or be unexported (golint)
    • Line 39: warning: exported method MetadataV9.Encode should have comment or be unexported (golint)
    • Line 47: warning: exported method MetadataV9.FindCallIndex should have comment or be unexported (golint)
    • Line 68: warning: exported method MetadataV9.FindEventNamesForEventID should have comment or be unexported (golint)
    • Line 86: warning: exported method MetadataV9.FindStorageEntryMetadata should have comment or be unexported (golint)
    • Line 105: warning: exported method MetadataV9.ExistsModuleMetadata should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/extrinsic_status.go
    • Line 47: warning: exported method ExtrinsicStatus.Decode should have comment or be unexported (golint)
    • Line 90: warning: exported method ExtrinsicStatus.Encode should have comment or be unexported (golint)
    • Line 131: warning: exported method ExtrinsicStatus.UnmarshalJSON should have comment or be unexported (golint)
    • Line 195: warning: exported method ExtrinsicStatus.MarshalJSON should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/option_bytes.go
    • Line 37: warning: exported method OptionBytes.Encode should have comment or be unexported (golint)
    • Line 41: warning: exported method OptionBytes.Decode should have comment or be unexported (golint)
    • Line 78: warning: exported method OptionBytes8.Encode should have comment or be unexported (golint)
    • Line 82: warning: exported method OptionBytes8.Decode should have comment or be unexported (golint)
    • Line 119: warning: exported method OptionBytes16.Encode should have comment or be unexported (golint)
    • Line 123: warning: exported method OptionBytes16.Decode should have comment or be unexported (golint)
    • Line 160: warning: exported method OptionBytes32.Encode should have comment or be unexported (golint)
    • Line 164: warning: exported method OptionBytes32.Decode should have comment or be unexported (golint)
    • Line 201: warning: exported method OptionBytes64.Encode should have comment or be unexported (golint)
    • Line 205: warning: exported method OptionBytes64.Decode should have comment or be unexported (golint)
    • Line 242: warning: exported method OptionBytes128.Encode should have comment or be unexported (golint)
    • Line 246: warning: exported method OptionBytes128.Decode should have comment or be unexported (golint)
    • Line 283: warning: exported method OptionBytes256.Encode should have comment or be unexported (golint)
    • Line 287: warning: exported method OptionBytes256.Decode should have comment or be unexported (golint)
    • Line 324: warning: exported method OptionBytes512.Encode should have comment or be unexported (golint)
    • Line 328: warning: exported method OptionBytes512.Decode should have comment or be unexported (golint)
    • Line 365: warning: exported method OptionBytes1024.Encode should have comment or be unexported (golint)
    • Line 369: warning: exported method OptionBytes1024.Decode should have comment or be unexported (golint)
    • Line 406: warning: exported method OptionBytes2048.Encode should have comment or be unexported (golint)
    • Line 410: warning: exported method OptionBytes2048.Decode should have comment or be unexported (golint)
    • go-substrate-rpc-client/gethrpc/types.go
    • Line 63: warning: exported type BlockNumber should have comment or be unexported (golint)
    • Line 66: warning: exported const PendingBlockNumber should have comment (or a comment on this block) or be unexported (golint)
    • Line 107: warning: exported method BlockNumber.Int64 should have comment or be unexported (golint)
    • Line 111: warning: exported type BlockNumberOrHash should have comment or be unexported (golint)
    • Line 117: warning: exported method BlockNumberOrHash.UnmarshalJSON should have comment or be unexported (golint)
    • Line 157: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 172: warning: exported method BlockNumberOrHash.Number should have comment or be unexported (golint)
    • Line 179: warning: exported method BlockNumberOrHash.Hash should have comment or be unexported (golint)
    • Line 186: warning: exported function BlockNumberOrHashWithNumber should have comment or be unexported (golint)
    • Line 194: warning: exported function BlockNumberOrHashWithHash should have comment or be unexported (golint)
    • go-substrate-rpc-client/gethrpc/http.go
    • Line 257: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 258: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 259: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 261: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 264: warning: should not use basic type string as key in context.WithValue (golint)
    • go-substrate-rpc-client/types/event_record.go
    • Line 61: warning: don't use underscores in Go names; struct field Balances_Endowed should be BalancesEndowed (golint)
    • Line 62: warning: don't use underscores in Go names; struct field Balances_DustLost should be BalancesDustLost (golint)
    • Line 63: warning: don't use underscores in Go names; struct field Balances_Transfer should be BalancesTransfer (golint)
    • Line 64: warning: don't use underscores in Go names; struct field Balances_BalanceSet should be BalancesBalanceSet (golint)
    • Line 65: warning: don't use underscores in Go names; struct field Balances_Deposit should be BalancesDeposit (golint)
    • Line 66: warning: don't use underscores in Go names; struct field Balances_Reserved should be BalancesReserved (golint)
    • Line 67: warning: don't use underscores in Go names; struct field Balances_Unreserved should be BalancesUnreserved (golint)
    • Line 68: warning: don't use underscores in Go names; struct field Balances_ReservedRepatriated should be BalancesReservedRepatriated (golint)
    • Line 69: warning: don't use underscores in Go names; struct field Grandpa_NewAuthorities should be GrandpaNewAuthorities (golint)
    • Line 70: warning: don't use underscores in Go names; struct field Grandpa_Paused should be GrandpaPaused (golint)
    • Line 71: warning: don't use underscores in Go names; struct field Grandpa_Resumed should be GrandpaResumed (golint)
    • Line 72: warning: don't use underscores in Go names; struct field ImOnline_HeartbeatReceived should be ImOnlineHeartbeatReceived (golint)
    • Line 73: warning: don't use underscores in Go names; struct field ImOnline_AllGood should be ImOnlineAllGood (golint)
    • Line 74: warning: don't use underscores in Go names; struct field ImOnline_SomeOffline should be ImOnlineSomeOffline (golint)
    • Line 75: warning: don't use underscores in Go names; struct field Indices_IndexAssigned should be IndicesIndexAssigned (golint)
    • Line 76: warning: don't use underscores in Go names; struct field Indices_IndexFreed should be IndicesIndexFreed (golint)
    • Line 77: warning: don't use underscores in Go names; struct field Indices_IndexFrozen should be IndicesIndexFrozen (golint)
    • Line 78: warning: don't use underscores in Go names; struct field Offences_Offence should be OffencesOffence (golint)
    • Line 79: warning: don't use underscores in Go names; struct field Session_NewSession should be SessionNewSession (golint)
    • Line 80: warning: don't use underscores in Go names; struct field Staking_EraPayout should be StakingEraPayout (golint)
    • Line 81: warning: don't use underscores in Go names; struct field Staking_Reward should be StakingReward (golint)
    • Line 82: warning: don't use underscores in Go names; struct field Staking_Slash should be StakingSlash (golint)
    • Line 83: warning: don't use underscores in Go names; struct field Staking_OldSlashingReportDiscarded should be StakingOldSlashingReportDiscarded (golint)
    • Line 84: warning: don't use underscores in Go names; struct field Staking_StakingElection should be StakingStakingElection (golint)
    • Line 85: warning: don't use underscores in Go names; struct field Staking_SolutionStored should be StakingSolutionStored (golint)
    • Line 86: warning: don't use underscores in Go names; struct field Staking_Bonded should be StakingBonded (golint)
    • Line 87: warning: don't use underscores in Go names; struct field Staking_Unbonded should be StakingUnbonded (golint)
    • Line 88: warning: don't use underscores in Go names; struct field Staking_Withdrawn should be StakingWithdrawn (golint)
    • Line 89: warning: don't use underscores in Go names; struct field System_ExtrinsicSuccess should be SystemExtrinsicSuccess (golint)
    • Line 90: warning: don't use underscores in Go names; struct field System_ExtrinsicFailed should be SystemExtrinsicFailed (golint)
    • Line 91: warning: don't use underscores in Go names; struct field System_CodeUpdated should be SystemCodeUpdated (golint)
    • Line 92: warning: don't use underscores in Go names; struct field System_NewAccount should be SystemNewAccount (golint)
    • Line 93: warning: don't use underscores in Go names; struct field System_KilledAccount should be SystemKilledAccount (golint)
    • Line 94: warning: don't use underscores in Go names; struct field Assets_Issued should be AssetsIssued (golint)
    • Line 95: warning: don't use underscores in Go names; struct field Assets_Transferred should be AssetsTransferred (golint)
    • Line 96: warning: don't use underscores in Go names; struct field Assets_Destroyed should be AssetsDestroyed (golint)
    • Line 97: warning: don't use underscores in Go names; struct field Democracy_Proposed should be DemocracyProposed (golint)
    • Line 98: warning: don't use underscores in Go names; struct field Democracy_Tabled should be DemocracyTabled (golint)
    • Line 99: warning: don't use underscores in Go names; struct field Democracy_ExternalTabled should be DemocracyExternalTabled (golint)
    • Line 100: warning: don't use underscores in Go names; struct field Democracy_Started should be DemocracyStarted (golint)
    • Line 101: warning: don't use underscores in Go names; struct field Democracy_Passed should be DemocracyPassed (golint)
    • Line 102: warning: don't use underscores in Go names; struct field Democracy_NotPassed should be DemocracyNotPassed (golint)
    • Line 103: warning: don't use underscores in Go names; struct field Democracy_Cancelled should be DemocracyCancelled (golint)
    • Line 104: warning: don't use underscores in Go names; struct field Democracy_Executed should be DemocracyExecuted (golint)
    • Line 105: warning: don't use underscores in Go names; struct field Democracy_Delegated should be DemocracyDelegated (golint)
    • Line 106: warning: don't use underscores in Go names; struct field Democracy_Undelegated should be DemocracyUndelegated (golint)
    • Line 107: warning: don't use underscores in Go names; struct field Democracy_Vetoed should be DemocracyVetoed (golint)
    • Line 108: warning: don't use underscores in Go names; struct field Democracy_PreimageNoted should be DemocracyPreimageNoted (golint)
    • Line 109: warning: don't use underscores in Go names; struct field Democracy_PreimageUsed should be DemocracyPreimageUsed (golint)
    • Line 110: warning: don't use underscores in Go names; struct field Democracy_PreimageInvalid should be DemocracyPreimageInvalid (golint)
    • Line 111: warning: don't use underscores in Go names; struct field Democracy_PreimageMissing should be DemocracyPreimageMissing (golint)
    • Line 112: warning: don't use underscores in Go names; struct field Democracy_PreimageReaped should be DemocracyPreimageReaped (golint)
    • Line 113: warning: don't use underscores in Go names; struct field Democracy_Unlocked should be DemocracyUnlocked (golint)
    • Line 114: warning: don't use underscores in Go names; struct field Council_Proposed should be CouncilProposed (golint)
    • Line 115: warning: don't use underscores in Go names; struct field Council_Voted should be CouncilVoted (golint)
    • Line 116: warning: don't use underscores in Go names; struct field Council_Approved should be CouncilApproved (golint)
    • Line 117: warning: don't use underscores in Go names; struct field Council_Disapproved should be CouncilDisapproved (golint)
    • Line 118: warning: don't use underscores in Go names; struct field Council_Executed should be CouncilExecuted (golint)
    • Line 119: warning: don't use underscores in Go names; struct field Council_MemberExecuted should be CouncilMemberExecuted (golint)
    • Line 120: warning: don't use underscores in Go names; struct field Council_Closed should be CouncilClosed (golint)
    • Line 121: warning: don't use underscores in Go names; struct field TechnicalCommittee_Proposed should be TechnicalCommitteeProposed (golint)
    • Line 122: warning: don't use underscores in Go names; struct field TechnicalCommittee_Voted should be TechnicalCommitteeVoted (golint)
    • Line 123: warning: don't use underscores in Go names; struct field TechnicalCommittee_Approved should be TechnicalCommitteeApproved (golint)
    • Line 124: warning: don't use underscores in Go names; struct field TechnicalCommittee_Disapproved should be TechnicalCommitteeDisapproved (golint)
    • Line 125: warning: don't use underscores in Go names; struct field TechnicalCommittee_Executed should be TechnicalCommitteeExecuted (golint)
    • Line 126: warning: don't use underscores in Go names; struct field TechnicalCommittee_MemberExecuted should be TechnicalCommitteeMemberExecuted (golint)
    • Line 127: warning: don't use underscores in Go names; struct field TechnicalCommittee_Closed should be TechnicalCommitteeClosed (golint)
    • Line 128: warning: don't use underscores in Go names; struct field Elections_NewTerm should be ElectionsNewTerm (golint)
    • Line 129: warning: don't use underscores in Go names; struct field Elections_EmptyTerm should be ElectionsEmptyTerm (golint)
    • Line 130: warning: don't use underscores in Go names; struct field Elections_MemberKicked should be ElectionsMemberKicked (golint)
    • Line 131: warning: don't use underscores in Go names; struct field Elections_MemberRenounced should be ElectionsMemberRenounced (golint)
    • Line 132: warning: don't use underscores in Go names; struct field Elections_VoterReported should be ElectionsVoterReported (golint)
    • Line 133: warning: don't use underscores in Go names; struct field Identity_IdentitySet should be IdentityIdentitySet (golint)
    • Line 134: warning: don't use underscores in Go names; struct field Identity_IdentityCleared should be IdentityIdentityCleared (golint)
    • Line 135: warning: don't use underscores in Go names; struct field Identity_IdentityKilled should be IdentityIdentityKilled (golint)
    • Line 136: warning: don't use underscores in Go names; struct field Identity_JudgementRequested should be IdentityJudgementRequested (golint)
    • Line 137: warning: don't use underscores in Go names; struct field Identity_JudgementUnrequested should be IdentityJudgementUnrequested (golint)
    • Line 138: warning: don't use underscores in Go names; struct field Identity_JudgementGiven should be IdentityJudgementGiven (golint)
    • Line 139: warning: don't use underscores in Go names; struct field Identity_RegistrarAdded should be IdentityRegistrarAdded (golint)
    • Line 140: warning: don't use underscores in Go names; struct field Identity_SubIdentityAdded should be IdentitySubIdentityAdded (golint)
    • Line 141: warning: don't use underscores in Go names; struct field Identity_SubIdentityRemoved should be IdentitySubIdentityRemoved (golint)
    • Line 142: warning: don't use underscores in Go names; struct field Identity_SubIdentityRevoked should be IdentitySubIdentityRevoked (golint)
    • Line 143: warning: don't use underscores in Go names; struct field Society_Founded should be SocietyFounded (golint)
    • Line 144: warning: don't use underscores in Go names; struct field Society_Bid should be SocietyBid (golint)
    • Line 145: warning: don't use underscores in Go names; struct field Society_Vouch should be SocietyVouch (golint)
    • Line 146: warning: don't use underscores in Go names; struct field Society_AutoUnbid should be SocietyAutoUnbid (golint)
    • Line 147: warning: don't use underscores in Go names; struct field Society_Unbid should be SocietyUnbid (golint)
    • Line 148: warning: don't use underscores in Go names; struct field Society_Unvouch should be SocietyUnvouch (golint)
    • Line 149: warning: don't use underscores in Go names; struct field Society_Inducted should be SocietyInducted (golint)
    • Line 150: warning: don't use underscores in Go names; struct field Society_SuspendedMemberJudgement should be SocietySuspendedMemberJudgement (golint)
    • Line 151: warning: don't use underscores in Go names; struct field Society_CandidateSuspended should be SocietyCandidateSuspended (golint)
    • Line 152: warning: don't use underscores in Go names; struct field Society_MemberSuspended should be SocietyMemberSuspended (golint)
    • Line 153: warning: don't use underscores in Go names; struct field Society_Challenged should be SocietyChallenged (golint)
    • Line 154: warning: don't use underscores in Go names; struct field Society_Vote should be SocietyVote (golint)
    • Line 155: warning: don't use underscores in Go names; struct field Society_DefenderVote should be SocietyDefenderVote (golint)
    • Line 156: warning: don't use underscores in Go names; struct field Society_NewMaxMembers should be SocietyNewMaxMembers (golint)
    • Line 157: warning: don't use underscores in Go names; struct field Society_Unfounded should be SocietyUnfounded (golint)
    • Line 158: warning: don't use underscores in Go names; struct field Society_Deposit should be SocietyDeposit (golint)
    • Line 159: warning: don't use underscores in Go names; struct field Recovery_RecoveryCreated should be RecoveryRecoveryCreated (golint)
    • Line 160: warning: don't use underscores in Go names; struct field Recovery_RecoveryInitiated should be RecoveryRecoveryInitiated (golint)
    • Line 161: warning: don't use underscores in Go names; struct field Recovery_RecoveryVouched should be RecoveryRecoveryVouched (golint)
    • Line 162: warning: don't use underscores in Go names; struct field Recovery_RecoveryClosed should be RecoveryRecoveryClosed (golint)
    • Line 163: warning: don't use underscores in Go names; struct field Recovery_AccountRecovered should be RecoveryAccountRecovered (golint)
    • Line 164: warning: don't use underscores in Go names; struct field Recovery_RecoveryRemoved should be RecoveryRecoveryRemoved (golint)
    • Line 165: warning: don't use underscores in Go names; struct field Vesting_VestingUpdated should be VestingVestingUpdated (golint)
    • Line 166: warning: don't use underscores in Go names; struct field Vesting_VestingCompleted should be VestingVestingCompleted (golint)
    • Line 167: warning: don't use underscores in Go names; struct field Scheduler_Scheduled should be SchedulerScheduled (golint)
    • Line 168: warning: don't use underscores in Go names; struct field Scheduler_Canceled should be SchedulerCanceled (golint)
    • Line 169: warning: don't use underscores in Go names; struct field Scheduler_Dispatched should be SchedulerDispatched (golint)
    • Line 170: warning: don't use underscores in Go names; struct field Proxy_ProxyExecuted should be ProxyProxyExecuted (golint)
    • Line 171: warning: don't use underscores in Go names; struct field Proxy_AnonymousCreated should be ProxyAnonymousCreated (golint)
    • Line 172: warning: don't use underscores in Go names; struct field Sudo_Sudid should be SudoSudid (golint)
    • Line 173: warning: don't use underscores in Go names; struct field Sudo_KeyChanged should be SudoKeyChanged (golint)
    • Line 174: warning: don't use underscores in Go names; struct field Sudo_SudoAsDone should be SudoSudoAsDone (golint)
    • Line 175: warning: don't use underscores in Go names; struct field Treasury_Proposed should be TreasuryProposed (golint)
    • Line 176: warning: don't use underscores in Go names; struct field Treasury_Spending should be TreasurySpending (golint)
    • Line 177: warning: don't use underscores in Go names; struct field Treasury_Awarded should be TreasuryAwarded (golint)
    • Line 178: warning: don't use underscores in Go names; struct field Treasury_Rejected should be TreasuryRejected (golint)
    • Line 179: warning: don't use underscores in Go names; struct field Treasury_Burnt should be TreasuryBurnt (golint)
    • Line 180: warning: don't use underscores in Go names; struct field Treasury_Rollover should be TreasuryRollover (golint)
    • Line 181: warning: don't use underscores in Go names; struct field Treasury_Deposit should be TreasuryDeposit (golint)
    • Line 182: warning: don't use underscores in Go names; struct field Treasury_NewTip should be TreasuryNewTip (golint)
    • Line 183: warning: don't use underscores in Go names; struct field Treasury_TipClosing should be TreasuryTipClosing (golint)
    • Line 184: warning: don't use underscores in Go names; struct field Treasury_TipClosed should be TreasuryTipClosed (golint)
    • Line 185: warning: don't use underscores in Go names; struct field Treasury_TipRetracted should be TreasuryTipRetracted (golint)
    • Line 186: warning: don't use underscores in Go names; struct field Contracts_Instantiated should be ContractsInstantiated (golint)
    • Line 187: warning: don't use underscores in Go names; struct field Contracts_Evicted should be ContractsEvicted (golint)
    • Line 188: warning: don't use underscores in Go names; struct field Contracts_Restored should be ContractsRestored (golint)
    • Line 189: warning: don't use underscores in Go names; struct field Contracts_CodeStored should be ContractsCodeStored (golint)
    • Line 190: warning: don't use underscores in Go names; struct field Contracts_ScheduleUpdated should be ContractsScheduleUpdated (golint)
    • Line 191: warning: don't use underscores in Go names; struct field Contracts_ContractExecution should be ContractsContractExecution (golint)
    • Line 192: warning: don't use underscores in Go names; struct field Utility_BatchInterrupted should be UtilityBatchInterrupted (golint)
    • Line 193: warning: don't use underscores in Go names; struct field Utility_BatchCompleted should be UtilityBatchCompleted (golint)
    • Line 194: warning: don't use underscores in Go names; struct field Multisig_New should be MultisigNew (golint)
    • Line 195: warning: don't use underscores in Go names; struct field Multisig_Approval should be MultisigApproval (golint)
    • Line 196: warning: don't use underscores in Go names; struct field Multisig_Executed should be MultisigExecuted (golint)
    • Line 197: warning: don't use underscores in Go names; struct field Multisig_Cancelled should be MultisigCancelled (golint)
    • Line 321: warning: exported method Phase.Decode should have comment or be unexported (golint)
    • Line 344: warning: exported method Phase.Encode should have comment or be unexported (golint)
    • Line 374: warning: exported method DispatchError.Decode should have comment or be unexported (golint)
    • Line 394: warning: exported method DispatchError.Encode should have comment or be unexported (golint)
    • Line 413: warning: exported type EventID should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/ucompact.go
    • Line 25: warning: exported type UCompact should have comment or be unexported (golint)
    • Line 27: warning: exported function NewUCompact should have comment or be unexported (golint)
    • Line 31: warning: exported function NewUCompactFromUInt should have comment or be unexported (golint)
    • Line 35: warning: exported method UCompact.Decode should have comment or be unexported (golint)
    • Line 45: warning: exported method UCompact.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/extrinsic.go
    • Line 32: warning: exported const ExtrinsicBitSigned should have comment (or a comment on this block) or be unexported (golint)
    • Line 174: warning: exported method Extrinsic.Decode should have comment or be unexported (golint)
    • Line 209: warning: exported method Extrinsic.Encode should have comment or be unexported (golint)
    • Line 262: warning: exported function NewCall should have comment or be unexported (golint)
    • Line 280: warning: comment on exported type CallIndex should be of the form "CallIndex ..." (with optional leading article) (golint)
    • Line 286: warning: exported method CallIndex.Decode should have comment or be unexported (golint)
    • Line 300: warning: exported method CallIndex.Encode should have comment or be unexported (golint)
    • Line 337: warning: exported type Justification should have comment or be unexported (golint)
    • Line 339: warning: exported type SignaturePayload should have comment or be unexported (golint)
    • go-substrate-rpc-client/gethrpc/client.go
    • Line 35: warning: exported var ErrClientQuit should have comment or be unexported (golint)
    • Line 188: warning: comment on exported function ClientFromContext should be of the form "ClientFromContext ..." (golint)
    • Line 319: warning: comment on exported method Client.BatchCallContext should be of the form "BatchCallContext ..." (golint)
    • Line 391: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-substrate-rpc-client/types/moment.go
    • Line 28: warning: exported const NanosInSecond should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported method Moment.Decode should have comment or be unexported (golint)
    • Line 62: warning: exported method Moment.Encode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/option_hash.go
    • Line 37: warning: exported method OptionH160.Encode should have comment or be unexported (golint)
    • Line 41: warning: exported method OptionH160.Decode should have comment or be unexported (golint)
    • Line 78: warning: exported method OptionH256.Encode should have comment or be unexported (golint)
    • Line 82: warning: exported method OptionH256.Decode should have comment or be unexported (golint)
    • Line 119: warning: exported method OptionH512.Encode should have comment or be unexported (golint)
    • Line 123: warning: exported method OptionH512.Decode should have comment or be unexported (golint)
    • Line 160: warning: exported method OptionHash.Encode should have comment or be unexported (golint)
    • Line 164: warning: exported method OptionHash.Decode should have comment or be unexported (golint)
    • go-substrate-rpc-client/types/option_uint.go
    • Line 37: warning: exported method OptionU8.Encode should have comment or be unexported (golint)
    • Line 41: warning: exported method OptionU8.Decode should have comment or be unexported (golint)
    • Line 78: warning: exported method OptionU16.Encode should have comment or be unexported (golint)
    • Line 82: warning: exported method OptionU16.Decode should have comment or be unexported (golint)
    • Line 119: warning: exported method OptionU32.Encode should have comment or be unexported (golint)
    • Line 123: warning: exported method OptionU32.Decode should have comment or be unexported (golint)
    • Line 160: warning: exported method OptionU64.Encode should have comment or be unexported (golint)
    • Line 164: warning: exported method OptionU64.Decode 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!


misspell99%

Misspell Finds commonly misspelled English words