Preparing report...

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

(v1.1.0)

A+    Excellent!    Found 58 issues across 232 files

Tweet

gofmt96%

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.

    • scale/codec.go
    • Line 319: warning: cyclomatic complexity 48 of function (Decoder).DecodeIntoReflectValue() is high (> 15) (gocyclo)
    • Line 120: warning: cyclomatic complexity 42 of function (Encoder).Encode() is high (> 15) (gocyclo)
    • main_test.go
    • Line 262: warning: cyclomatic complexity 25 of function Example_displaySystemEvents() is high (> 15) (gocyclo)

golint80%

Golint is a linter for Go source code.

    • 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 type StorageEntryMetadata should have comment or be unexported (golint)
    • Line 117: warning: exported type ModuleMetadataV4 should have comment or be unexported (golint)
    • Line 128: warning: exported method ModuleMetadataV4.Decode should have comment or be unexported (golint)
    • Line 177: warning: exported method ModuleMetadataV4.Encode should have comment or be unexported (golint)
    • Line 226: warning: exported type StorageFunctionMetadataV4 should have comment or be unexported (golint)
    • Line 234: warning: exported method StorageFunctionMetadataV4.IsPlain should have comment or be unexported (golint)
    • Line 238: warning: exported method StorageFunctionMetadataV4.IsMap should have comment or be unexported (golint)
    • Line 242: warning: exported method StorageFunctionMetadataV4.IsDoubleMap should have comment or be unexported (golint)
    • Line 246: warning: exported method StorageFunctionMetadataV4.Hasher should have comment or be unexported (golint)
    • Line 256: warning: exported method StorageFunctionMetadataV4.Hasher2 should have comment or be unexported (golint)
    • Line 260: warning: exported type StorageFunctionTypeV4 should have comment or be unexported (golint)
    • Line 269: warning: exported method StorageFunctionTypeV4.Decode should have comment or be unexported (golint)
    • Line 301: warning: exported method StorageFunctionTypeV4.Encode should have comment or be unexported (golint)
    • Line 336: warning: exported type DoubleMapTypeV4 should have comment or be unexported (golint)
    • Line 344: warning: exported type MapTypeV4 should have comment or be unexported (golint)
    • Line 351: warning: exported type StorageHasher should have comment or be unexported (golint)
    • Line 359: warning: exported method StorageHasher.Decode should have comment or be unexported (golint)
    • Line 383: warning: exported method StorageHasher.Encode should have comment or be unexported (golint)
    • Line 402: warning: exported type FunctionMetadataV4 should have comment or be unexported (golint)
    • Line 408: warning: exported type EventMetadataV4 should have comment or be unexported (golint)
    • Line 414: warning: exported method StorageHasher.HashFunc should have comment or be unexported (golint)
    • Line 443: warning: exported type FunctionArgumentMetadata should have comment or be unexported (golint)
    • Line 448: warning: exported type StorageFunctionModifierV0 should have comment or be unexported (golint)
    • Line 454: warning: exported method StorageFunctionModifierV0.Decode should have comment or be unexported (golint)
    • Line 474: warning: exported method StorageFunctionModifierV0.Encode should have comment or be unexported (golint)
    • 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 type ModuleMetadataV8 should have comment or be unexported (golint)
    • Line 117: warning: exported method ModuleMetadataV8.Decode should have comment or be unexported (golint)
    • Line 167: warning: exported method ModuleMetadataV8.Encode should have comment or be unexported (golint)
    • Line 217: warning: exported type ErrorMetadataV8 should have comment or be unexported (golint)
    • 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)
    • client/client.go
    • Line 28: warning: exported type Client should have comment or be unexported (golint)
    • Line 90: warning: exported function CallWithBlockHash should have comment or be unexported (golint)
    • 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)
    • types/extrinsic.go
    • Line 31: warning: exported const ExtrinsicBitSigned should have comment (or a comment on this block) or be unexported (golint)
    • Line 169: warning: exported method Extrinsic.Decode should have comment or be unexported (golint)
    • Line 204: warning: exported method Extrinsic.Encode should have comment or be unexported (golint)
    • Line 257: warning: exported function NewCall should have comment or be unexported (golint)
    • Line 275: warning: comment on exported type CallIndex should be of the form "CallIndex ..." (with optional leading article) (golint)
    • Line 281: warning: exported method CallIndex.Decode should have comment or be unexported (golint)
    • Line 295: warning: exported method CallIndex.Encode should have comment or be unexported (golint)
    • Line 332: warning: exported type Justification should have comment or be unexported (golint)
    • Line 334: warning: exported type SignaturePayload should have comment or be unexported (golint)
    • 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 type ModuleMetadataV10 should have comment or be unexported (golint)
    • Line 121: warning: exported method ModuleMetadataV10.Decode should have comment or be unexported (golint)
    • Line 171: warning: exported method ModuleMetadataV10.Encode should have comment or be unexported (golint)
    • Line 221: warning: exported type StorageMetadataV10 should have comment or be unexported (golint)
    • Line 226: warning: exported type StorageFunctionMetadataV10 should have comment or be unexported (golint)
    • Line 234: warning: exported method StorageFunctionMetadataV10.IsPlain should have comment or be unexported (golint)
    • Line 238: warning: exported method StorageFunctionMetadataV10.IsMap should have comment or be unexported (golint)
    • Line 242: warning: exported method StorageFunctionMetadataV10.IsDoubleMap should have comment or be unexported (golint)
    • Line 246: warning: exported method StorageFunctionMetadataV10.Hasher should have comment or be unexported (golint)
    • Line 256: warning: exported method StorageFunctionMetadataV10.Hasher2 should have comment or be unexported (golint)
    • Line 263: warning: exported type StorageFunctionTypeV10 should have comment or be unexported (golint)
    • Line 272: warning: exported method StorageFunctionTypeV10.Decode should have comment or be unexported (golint)
    • Line 304: warning: exported method StorageFunctionTypeV10.Encode should have comment or be unexported (golint)
    • Line 339: warning: exported type MapTypeV10 should have comment or be unexported (golint)
    • Line 346: warning: exported type DoubleMapTypeV10 should have comment or be unexported (golint)
    • Line 354: warning: exported type StorageHasherV10 should have comment or be unexported (golint)
    • Line 363: warning: exported method StorageHasherV10.Decode should have comment or be unexported (golint)
    • Line 389: warning: exported method StorageHasherV10.Encode should have comment or be unexported (golint)
    • Line 410: warning: exported method StorageHasherV10.HashFunc should have comment or be unexported (golint)
    • 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 type ModuleMetadataV7 should have comment or be unexported (golint)
    • Line 118: warning: exported method ModuleMetadataV7.Decode should have comment or be unexported (golint)
    • Line 163: warning: exported method ModuleMetadataV7.Encode should have comment or be unexported (golint)
    • Line 208: warning: exported type StorageMetadata should have comment or be unexported (golint)
    • Line 213: warning: exported type StorageFunctionMetadataV5 should have comment or be unexported (golint)
    • Line 221: warning: exported method StorageFunctionMetadataV5.IsPlain should have comment or be unexported (golint)
    • Line 225: warning: exported method StorageFunctionMetadataV5.IsMap should have comment or be unexported (golint)
    • Line 229: warning: exported method StorageFunctionMetadataV5.IsDoubleMap should have comment or be unexported (golint)
    • Line 233: warning: exported method StorageFunctionMetadataV5.Hasher should have comment or be unexported (golint)
    • Line 243: warning: exported method StorageFunctionMetadataV5.Hasher2 should have comment or be unexported (golint)
    • Line 250: warning: exported type StorageFunctionTypeV5 should have comment or be unexported (golint)
    • Line 259: warning: exported method StorageFunctionTypeV5.Decode should have comment or be unexported (golint)
    • Line 291: warning: exported method StorageFunctionTypeV5.Encode should have comment or be unexported (golint)
    • Line 326: warning: exported type DoubleMapTypeV5 should have comment or be unexported (golint)
    • Line 334: warning: exported type ModuleConstantMetadataV6 should have comment or be unexported (golint)
    • rpc/main.go
    • Line 27: warning: exported type RPC should have comment or be unexported (golint)
    • Line 35: warning: exported function NewRPC should have comment or be unexported (golint)
    • config/config.go
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 32: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • scale/codec.go
    • Line 42: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 174: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 278: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 575: warning: comment on exported method OptionBool.Encode should be of the form "Encode ..." (golint)
    • Line 593: warning: comment on exported method OptionBool.Decode should be of the form "Decode ..." (golint)
    • 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)
    • 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)
    • types/runtime_version.go
    • Line 26: warning: exported type RuntimeVersion should have comment or be unexported (golint)
    • Line 35: warning: exported function NewRuntimeVersion should have comment or be unexported (golint)
    • Line 39: warning: exported method RuntimeVersion.Decode should have comment or be unexported (golint)
    • Line 73: warning: exported method RuntimeVersion.Encode should have comment or be unexported (golint)
    • Line 107: warning: exported type RuntimeVersionAPI should have comment or be unexported (golint)
    • Line 112: warning: exported method RuntimeVersionAPI.UnmarshalJSON should have comment or be unexported (golint)
    • Line 124: warning: exported method RuntimeVersionAPI.MarshalJSON should have comment or be unexported (golint)
    • Line 129: warning: exported method RuntimeVersionAPI.Decode should have comment or be unexported (golint)
    • Line 143: warning: exported method RuntimeVersionAPI.Encode should have comment or be unexported (golint)
    • gethrpc/subscription.go
    • Line 36: warning: comment on exported var ErrSubscriptionNotFound should be of the form "ErrSubscriptionNotFound ..." (golint)
    • Line 287: warning: error should be the last type when returning multiple items (golint)
    • types/account_info.go
    • Line 19: warning: comment on exported type AccountInfo should be of the form "AccountInfo ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported function NewAccountInfo should be of the form "NewAccountInfo ..." (golint)
    • types/extrinsic_era.go
    • Line 29: warning: exported method ExtrinsicEra.Decode should have comment or be unexported (golint)
    • Line 52: warning: exported method ExtrinsicEra.Encode should have comment or be unexported (golint)
    • types/codec.go
    • Line 119: warning: comment on exported function HexEncodeToString should be of the form "HexEncodeToString ..." (golint)
    • types/extrinsic_signature.go
    • Line 19: warning: exported type ExtrinsicSignatureV3 should have comment or be unexported (golint)
    • Line 27: warning: exported type ExtrinsicSignatureV4 should have comment or be unexported (golint)
    • Line 35: warning: exported type SignatureOptions should have comment or be unexported (golint)
    • types/header.go
    • Line 27: warning: exported type Header should have comment or be unexported (golint)
    • Line 35: warning: exported type BlockNumber should have comment or be unexported (golint)
    • 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)
    • main.go
    • Line 24: warning: exported type SubstrateAPI should have comment or be unexported (golint)
    • Line 29: warning: exported function NewSubstrateAPI should have comment or be unexported (golint)
    • xxhash/xxhash.go
    • Line 26: warning: exported const Typ64 should have comment (or a comment on this block) or be unexported (golint)
    • types/event_record.go
    • Line 227: warning: exported method DispatchClass.Decode should have comment or be unexported (golint)
    • Line 237: warning: exported method DispatchClass.Encode should have comment or be unexported (golint)
    • Line 275: warning: don't use underscores in Go names; struct field Balances_NewAccount should be BalancesNewAccount (golint)
    • Line 276: warning: don't use underscores in Go names; struct field Balances_ReapedAccount should be BalancesReapedAccount (golint)
    • Line 277: warning: don't use underscores in Go names; struct field Balances_Transfer should be BalancesTransfer (golint)
    • Line 278: warning: don't use underscores in Go names; struct field Grandpa_NewAuthorities should be GrandpaNewAuthorities (golint)
    • Line 279: warning: don't use underscores in Go names; struct field Grandpa_Paused should be GrandpaPaused (golint)
    • Line 280: warning: don't use underscores in Go names; struct field Grandpa_Resumed should be GrandpaResumed (golint)
    • Line 281: warning: don't use underscores in Go names; struct field ImOnline_AllGood should be ImOnlineAllGood (golint)
    • Line 282: warning: don't use underscores in Go names; struct field ImOnline_HeartbeatReceived should be ImOnlineHeartbeatReceived (golint)
    • Line 283: warning: don't use underscores in Go names; struct field ImOnline_SomeOffline should be ImOnlineSomeOffline (golint)
    • Line 284: warning: don't use underscores in Go names; struct field Indices_NewAccountIndex should be IndicesNewAccountIndex (golint)
    • Line 285: warning: don't use underscores in Go names; struct field Offences_Offence should be OffencesOffence (golint)
    • Line 286: warning: don't use underscores in Go names; struct field Session_NewSession should be SessionNewSession (golint)
    • Line 287: warning: don't use underscores in Go names; struct field Staking_OldSlashingReportDiscarded should be StakingOldSlashingReportDiscarded (golint)
    • Line 288: warning: don't use underscores in Go names; struct field Staking_Reward should be StakingReward (golint)
    • Line 289: warning: don't use underscores in Go names; struct field Staking_Slash should be StakingSlash (golint)
    • Line 290: warning: don't use underscores in Go names; struct field System_ExtrinsicSuccess should be SystemExtrinsicSuccess (golint)
    • Line 291: warning: don't use underscores in Go names; struct field System_ExtrinsicFailed should be SystemExtrinsicFailed (golint)
    • Line 292: warning: don't use underscores in Go names; struct field Treasury_Deposit should be TreasuryDeposit (golint)
    • Line 412: warning: exported method Phase.Decode should have comment or be unexported (golint)
    • Line 432: warning: exported method Phase.Encode should have comment or be unexported (golint)
    • Line 458: warning: exported method DispatchError.Decode should have comment or be unexported (golint)
    • Line 475: warning: exported method DispatchError.Encode should have comment or be unexported (golint)
    • Line 494: warning: exported type EventID should have comment or be unexported (golint)
    • types/extrinsic_status.go
    • Line 41: warning: exported method ExtrinsicStatus.Decode should have comment or be unexported (golint)
    • Line 75: warning: exported method ExtrinsicStatus.Encode should have comment or be unexported (golint)
    • Line 107: warning: exported method ExtrinsicStatus.UnmarshalJSON should have comment or be unexported (golint)
    • Line 156: warning: exported method ExtrinsicStatus.MarshalJSON should have comment or be unexported (golint)
    • 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)
    • 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)
    • 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)
    • 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)
    • types/address.go
    • Line 59: warning: exported method Address.Decode should have comment or be unexported (golint)
    • Line 94: warning: exported method Address.Encode should have comment or be unexported (golint)
    • 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)
    • types/ucompact.go
    • Line 23: warning: comment on exported type UCompact should be of the form "UCompact ..." (with optional leading article) (golint)
    • Line 26: warning: exported method UCompact.Decode should have comment or be unexported (golint)
    • Line 36: warning: exported method UCompact.Encode should have comment or be unexported (golint)
    • types/usize.go
    • Line 23: warning: comment on exported type USize should be of the form "USize ..." (with optional leading article) (golint)
    • signature/signature.go
    • Line 32: warning: exported type KeyringPair should have comment or be unexported (golint)
    • Line 45: warning: exported function KeyringPairFromSecret should have comment or be unexported (golint)
    • Line 86: warning: exported var TestKeyringPairAlice should have comment or be unexported (golint)
    • 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 44: warning: exported function NewMetadataV4 should have comment or be unexported (golint)
    • Line 48: warning: exported function NewMetadataV7 should have comment or be unexported (golint)
    • Line 52: warning: exported function NewMetadataV8 should have comment or be unexported (golint)
    • Line 56: warning: exported function NewMetadataV9 should have comment or be unexported (golint)
    • Line 60: warning: exported function NewMetadataV10 should have comment or be unexported (golint)
    • Line 64: warning: exported method Metadata.Decode should have comment or be unexported (golint)
    • Line 101: warning: exported method Metadata.Encode should have comment or be unexported (golint)
    • Line 130: warning: exported method Metadata.FindCallIndex should have comment or be unexported (golint)
    • Line 147: warning: exported method Metadata.FindEventNamesForEventID should have comment or be unexported (golint)
    • Line 164: warning: exported method Metadata.FindStorageEntryMetadata should have comment or be unexported (golint)
    • 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)
    • 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)
    • types/chain_properties.go
    • Line 33: warning: exported method ChainProperties.Decode should have comment or be unexported (golint)
    • Line 47: warning: exported method ChainProperties.Encode 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