Preparing report...

Report for github.com/scorum/scorum-go

A+    Excellent!    Found 42 issues across 56 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!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint28%

Golint is a linter for Go source code.

    • scorum-go/types/time.go
    • Line 9: warning: exported const Layout should have comment or be unexported (golint)
    • Line 11: warning: exported type Time should have comment or be unexported (golint)
    • Line 15: warning: exported method Time.MarshalJSON should have comment or be unexported (golint)
    • Line 19: warning: exported method Time.UnmarshalJSON should have comment or be unexported (golint)
    • Line 28: warning: exported method Time.MarshalTransaction should have comment or be unexported (golint)
    • scorum-go/apis/database/data.go
    • Line 9: warning: exported type DynamicGlobalProperties should have comment or be unexported (golint)
    • Line 35: warning: exported type Config should have comment or be unexported (golint)
    • Line 148: warning: exported type Account should have comment or be unexported (golint)
    • scorum-go/apis/account_history/data.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type AccountHistory should have comment or be unexported (golint)
    • Line 12: warning: exported method AccountHistory.UnmarshalJSON should have comment or be unexported (golint)
    • scorum-go/transport/websocket/transport.go
    • Line 16: warning: exported type Transport should have comment or be unexported (golint)
    • Line 40: warning: exported function NewTransport should have comment or be unexported (golint)
    • Line 56: warning: exported method Transport.Call should have comment or be unexported (golint)
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 195: warning: exported method Transport.SetCallback should have comment or be unexported (golint)
    • scorum-go/sign/chain.go
    • Line 3: warning: exported type Chain should have comment or be unexported (golint)
    • Line 7: warning: exported var ScorumChain should have comment or be unexported (golint)
    • Line 11: warning: exported var TestChain should have comment or be unexported (golint)
    • scorum-go/transport/http/transport.go
    • Line 18: warning: exported type Transport should have comment or be unexported (golint)
    • Line 26: warning: exported function NewTransport should have comment or be unexported (golint)
    • Line 37: warning: exported method Transport.Call should have comment or be unexported (golint)
    • Line 91: warning: exported method Transport.SetCallback should have comment or be unexported (golint)
    • Line 95: warning: exported method Transport.Close should have comment or be unexported (golint)
    • scorum-go/types/optype.go
    • Line 3: warning: exported type OpType should have comment or be unexported (golint)
    • Line 98: warning: exported const VoteOpType should have comment (or a comment on this block) or be unexported (golint)
    • Line 143: warning: comment on exported const AuthorReward should be of the form "AuthorReward ..." (golint)
    • scorum-go/apis/network_broadcast/api.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported const APIID should have comment or be unexported (golint)
    • Line 10: warning: exported type API should have comment or be unexported (golint)
    • Line 14: warning: exported function NewAPI should have comment or be unexported (golint)
    • Line 22: warning: exported method API.BroadcastTransaction should have comment or be unexported (golint)
    • Line 26: warning: exported method API.BroadcastTransactionSynchronous should have comment or be unexported (golint)
    • scorum-go/client.go
    • Line 62: warning: comment on exported method Client.Broadcast should be of the form "Broadcast ..." (golint)
    • scorum-go/apis/database/api.go
    • Line 10: warning: exported const APIID should have comment or be unexported (golint)
    • Line 12: warning: exported type API should have comment or be unexported (golint)
    • Line 16: warning: exported function NewAPI should have comment or be unexported (golint)
    • Line 28: warning: exported method API.GetConfig should have comment or be unexported (golint)
    • Line 34: warning: exported method API.GetDynamicGlobalProperties should have comment or be unexported (golint)
    • Line 40: warning: comment on exported method API.GetAccounts should be of the form "GetAccounts ..." (golint)
    • Line 63: warning: comment on exported method API.SetBlockAppliedCallback should be of the form "SetBlockAppliedCallback ..." (golint)
    • scorum-go/sign/sign.go
    • Line 16: warning: exported function SignBufferSha256 should have comment or be unexported (golint)
    • Line 17: warning: don't use underscores in Go names; var buf_sha256_clone should be bufSha256Clone (golint)
    • Line 42: warning: don't use underscores in Go names; var max_counter should be maxCounter (golint)
    • scorum-go/sign/signed_transaction.go
    • Line 15: warning: exported type SignedTransaction should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSignedTransaction should have comment or be unexported (golint)
    • Line 23: warning: exported method SignedTransaction.Serialize should have comment or be unexported (golint)
    • Line 33: warning: exported method SignedTransaction.Digest should have comment or be unexported (golint)
    • Line 61: warning: exported method SignedTransaction.Sign should have comment or be unexported (golint)
    • scorum-go/types/market.go
    • Line 12: warning: exported const MarketResultHome should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported var MarketNames should have comment or be unexported (golint)
    • Line 51: warning: exported type Market should have comment or be unexported (golint)
    • Line 55: warning: exported type MarketInterface should have comment or be unexported (golint)
    • Line 63: warning: exported method Market.MarshalJSON should have comment or be unexported (golint)
    • Line 67: warning: exported method Market.UnmarshalJSON should have comment or be unexported (golint)
    • Line 122: warning: exported type MarketID should have comment or be unexported (golint)
    • Line 124: warning: exported type OverUnderMarket should have comment or be unexported (golint)
    • Line 130: warning: exported method OverUnderMarket.MarshalJSON should have comment or be unexported (golint)
    • Line 147: warning: exported method OverUnderMarket.MarshalTransaction should have comment or be unexported (golint)
    • Line 147: warning: receiver name op should be consistent with previous receiver name m for OverUnderMarket (golint)
    • Line 154: warning: exported method OverUnderMarket.GetName should have comment or be unexported (golint)
    • Line 154: warning: receiver name op should be consistent with previous receiver name m for OverUnderMarket (golint)
    • Line 158: warning: exported method OverUnderMarket.GetID should have comment or be unexported (golint)
    • Line 158: warning: receiver name op should be consistent with previous receiver name m for OverUnderMarket (golint)
    • Line 162: warning: exported method OverUnderMarket.GetMeta should have comment or be unexported (golint)
    • Line 162: warning: receiver name op should be consistent with previous receiver name m for OverUnderMarket (golint)
    • Line 172: warning: exported type ScoreYesNoMarket should have comment or be unexported (golint)
    • Line 179: warning: exported method ScoreYesNoMarket.MarshalJSON should have comment or be unexported (golint)
    • Line 196: warning: exported method ScoreYesNoMarket.MarshalTransaction should have comment or be unexported (golint)
    • Line 196: warning: receiver name op should be consistent with previous receiver name m for ScoreYesNoMarket (golint)
    • Line 204: warning: exported method ScoreYesNoMarket.GetName should have comment or be unexported (golint)
    • Line 204: warning: receiver name op should be consistent with previous receiver name m for ScoreYesNoMarket (golint)
    • Line 208: warning: exported method ScoreYesNoMarket.GetID should have comment or be unexported (golint)
    • Line 208: warning: receiver name op should be consistent with previous receiver name m for ScoreYesNoMarket (golint)
    • Line 212: warning: exported method ScoreYesNoMarket.GetMeta should have comment or be unexported (golint)
    • Line 212: warning: receiver name op should be consistent with previous receiver name m for ScoreYesNoMarket (golint)
    • Line 224: warning: exported type YesNoMarket should have comment or be unexported (golint)
    • Line 228: warning: exported method YesNoMarket.MarshalJSON should have comment or be unexported (golint)
    • Line 244: warning: exported method YesNoMarket.MarshalTransaction should have comment or be unexported (golint)
    • Line 244: warning: receiver name op should be consistent with previous receiver name m for YesNoMarket (golint)
    • Line 250: warning: exported method YesNoMarket.GetName should have comment or be unexported (golint)
    • Line 250: warning: receiver name op should be consistent with previous receiver name m for YesNoMarket (golint)
    • Line 254: warning: exported method YesNoMarket.GetID should have comment or be unexported (golint)
    • Line 254: warning: receiver name op should be consistent with previous receiver name m for YesNoMarket (golint)
    • Line 258: warning: exported method YesNoMarket.GetMeta should have comment or be unexported (golint)
    • Line 258: warning: receiver name op should be consistent with previous receiver name m for YesNoMarket (golint)
    • scorum-go/apis/betting/api.go
    • Line 8: warning: exported const APIID should have comment or be unexported (golint)
    • Line 10: warning: exported type API should have comment or be unexported (golint)
    • Line 14: warning: exported function NewAPI should have comment or be unexported (golint)
    • Line 22: warning: exported method API.GetGameWinners should have comment or be unexported (golint)
    • scorum-go/apis/chain/data.go
    • Line 5: warning: exported type ChainProperties should have comment or be unexported (golint)
    • Line 21: warning: exported type MediaChainProperties should have comment or be unexported (golint)
    • scorum-go/sign/transactions.go
    • Line 11: warning: exported function RefBlockNum should have comment or be unexported (golint)
    • Line 15: warning: exported function RefBlockPrefix should have comment or be unexported (golint)
    • scorum-go/types/wincase.go
    • Line 11: warning: exported const WincaseResultHomeYes should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported var WincaseNames should have comment or be unexported (golint)
    • Line 72: warning: exported type Wincase should have comment or be unexported (golint)
    • Line 76: warning: exported type WincaseInterface should have comment or be unexported (golint)
    • Line 84: warning: exported method Wincase.MarshalJSON should have comment or be unexported (golint)
    • Line 88: warning: exported method Wincase.UnmarshalJSON should have comment or be unexported (golint)
    • Line 143: warning: exported type WincaseID should have comment or be unexported (golint)
    • Line 145: warning: exported type OverUnderWincase should have comment or be unexported (golint)
    • Line 151: warning: exported method OverUnderWincase.MarshalJSON should have comment or be unexported (golint)
    • Line 168: warning: exported method OverUnderWincase.MarshalTransaction should have comment or be unexported (golint)
    • Line 168: warning: receiver name op should be consistent with previous receiver name w for OverUnderWincase (golint)
    • Line 175: warning: exported method OverUnderWincase.GetName should have comment or be unexported (golint)
    • Line 175: warning: receiver name op should be consistent with previous receiver name w for OverUnderWincase (golint)
    • Line 179: warning: exported method OverUnderWincase.GetID should have comment or be unexported (golint)
    • Line 179: warning: receiver name op should be consistent with previous receiver name w for OverUnderWincase (golint)
    • Line 183: warning: exported method OverUnderWincase.GetMeta should have comment or be unexported (golint)
    • Line 183: warning: receiver name op should be consistent with previous receiver name w for OverUnderWincase (golint)
    • Line 193: warning: exported type ScoreYesNoWincase should have comment or be unexported (golint)
    • Line 200: warning: exported method ScoreYesNoWincase.MarshalJSON should have comment or be unexported (golint)
    • Line 217: warning: exported method ScoreYesNoWincase.MarshalTransaction should have comment or be unexported (golint)
    • Line 217: warning: receiver name op should be consistent with previous receiver name w for ScoreYesNoWincase (golint)
    • Line 225: warning: exported method ScoreYesNoWincase.GetName should have comment or be unexported (golint)
    • Line 225: warning: receiver name op should be consistent with previous receiver name w for ScoreYesNoWincase (golint)
    • Line 229: warning: exported method ScoreYesNoWincase.GetID should have comment or be unexported (golint)
    • Line 229: warning: receiver name op should be consistent with previous receiver name w for ScoreYesNoWincase (golint)
    • Line 233: warning: exported method ScoreYesNoWincase.GetMeta should have comment or be unexported (golint)
    • Line 233: warning: receiver name op should be consistent with previous receiver name w for ScoreYesNoWincase (golint)
    • Line 245: warning: exported type YesNoWincase should have comment or be unexported (golint)
    • Line 249: warning: exported method YesNoWincase.MarshalJSON should have comment or be unexported (golint)
    • Line 265: warning: exported method YesNoWincase.MarshalTransaction should have comment or be unexported (golint)
    • Line 265: warning: receiver name op should be consistent with previous receiver name w for YesNoWincase (golint)
    • Line 271: warning: exported method YesNoWincase.GetName should have comment or be unexported (golint)
    • Line 271: warning: receiver name op should be consistent with previous receiver name w for YesNoWincase (golint)
    • Line 275: warning: exported method YesNoWincase.GetID should have comment or be unexported (golint)
    • Line 275: warning: receiver name op should be consistent with previous receiver name w for YesNoWincase (golint)
    • Line 279: warning: exported method YesNoWincase.GetMeta should have comment or be unexported (golint)
    • Line 279: warning: receiver name op should be consistent with previous receiver name w for YesNoWincase (golint)
    • scorum-go/sign/rfc6979/rfc6979.go
    • Line 79: warning: exported function RandStringBytes should have comment or be unexported (golint)
    • Line 92: warning: don't use underscores in Go names; var hash_clone should be hashClone (golint)
    • Line 98: warning: don't use underscores in Go names; var nonce_a should be nonceA (golint)
    • Line 236: warning: exported function HmacSHA256 should have comment or be unexported (golint)
    • scorum-go/transport/protocol.go
    • Line 9: warning: exported var ErrShutdown should have comment or be unexported (golint)
    • Line 12: warning: exported type RPCRequest should have comment or be unexported (golint)
    • Line 18: warning: exported type RPCResponse should have comment or be unexported (golint)
    • Line 24: warning: exported type RPCError should have comment or be unexported (golint)
    • Line 47: warning: exported type RPCIncoming should have comment or be unexported (golint)
    • scorum-go/sign/rfc6979/ecdsa.go
    • Line 26: warning: don't use underscores in Go names; var hash_clone should be hashClone (golint)
    • Line 66: warning: don't use underscores in Go names; var hash_clone should be hashClone (golint)
    • scorum-go/types/block.go
    • Line 10: warning: exported type BlockHeader should have comment or be unexported (golint)
    • Line 18: warning: exported type Block should have comment or be unexported (golint)
    • Line 32: warning: exported type OperationsBlock should have comment or be unexported (golint)
    • Line 43: warning: exported type OperationInfo should have comment or be unexported (golint)
    • Line 49: warning: exported method OperationInfo.UnmarshalJSON should have comment or be unexported (golint)
    • scorum-go/encoding/transaction/encoder.go
    • Line 16: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 20: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 24: warning: exported method Encoder.EncodeVarint should have comment or be unexported (golint)
    • Line 34: warning: exported method Encoder.EncodeUVarint should have comment or be unexported (golint)
    • Line 40: warning: exported method Encoder.EncodeNumber should have comment or be unexported (golint)
    • Line 47: warning: exported method Encoder.EncodeBool should have comment or be unexported (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 55: warning: exported method Encoder.Encode should have comment or be unexported (golint)
    • Line 91: warning: exported method Encoder.EncodeMoney should have comment or be unexported (golint)
    • Line 125: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 130: warning: exported method Encoder.EncodeUUID should have comment or be unexported (golint)
    • scorum-go/types/game.go
    • Line 10: warning: exported const SoccerGameType should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type GameType should have comment or be unexported (golint)
    • Line 20: warning: exported var GameTypeNames should have comment or be unexported (golint)
    • Line 25: warning: exported method GameType.MarshalJSON should have comment or be unexported (golint)
    • Line 38: warning: exported method GameType.UnmarshalJSON should have comment or be unexported (golint)
    • scorum-go/types/operations.go
    • Line 12: warning: exported type Operation should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type OperationsArray should be of the form "OperationsArray ..." (with optional leading article) (golint)
    • Line 19: warning: exported method OperationsArray.MarshalJSON should have comment or be unexported (golint)
    • Line 42: warning: exported type OperationObject should have comment or be unexported (golint)
    • Line 52: warning: exported method OperationsArray.UnmarshalJSON should have comment or be unexported (golint)
    • Line 86: warning: comment on exported type OperationsFlat should be of the form "OperationsFlat ..." (with optional leading article) (golint)
    • Line 89: warning: exported method OperationsFlat.UnmarshalJSON should have comment or be unexported (golint)
    • Line 121: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 158: warning: comment on exported type UnknownOperation should be of the form "UnknownOperation ..." (with optional leading article) (golint)
    • Line 164: warning: exported method UnknownOperation.Type should have comment or be unexported (golint)
    • Line 166: warning: comment on exported type AccountCreateWithDelegationOperation should be of the form "AccountCreateWithDelegationOperation ..." (with optional leading article) (golint)
    • Line 179: warning: exported method AccountCreateWithDelegationOperation.Type should have comment or be unexported (golint)
    • Line 183: warning: comment on exported type AccountCreateByCommitteeOperation should be of the form "AccountCreateByCommitteeOperation ..." (with optional leading article) (golint)
    • Line 194: warning: exported method AccountCreateByCommitteeOperation.Type should have comment or be unexported (golint)
    • Line 196: warning: comment on exported type TransferToScorumpowerOperation should be of the form "TransferToScorumpowerOperation ..." (with optional leading article) (golint)
    • Line 203: warning: exported method TransferToScorumpowerOperation.Type should have comment or be unexported (golint)
    • Line 205: warning: comment on exported type AccountCreateOperation should be of the form "AccountCreateOperation ..." (with optional leading article) (golint)
    • Line 217: warning: exported method AccountCreateOperation.Type should have comment or be unexported (golint)
    • Line 219: warning: comment on exported type AccountWitnessVoteOperation should be of the form "AccountWitnessVoteOperation ..." (with optional leading article) (golint)
    • Line 226: warning: exported method AccountWitnessVoteOperation.Type should have comment or be unexported (golint)
    • Line 228: warning: exported method AccountWitnessVoteOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 237: warning: comment on exported type WitnessUpdateOperation should be of the form "WitnessUpdateOperation ..." (with optional leading article) (golint)
    • Line 246: warning: exported method WitnessUpdateOperation.Type should have comment or be unexported (golint)
    • Line 248: warning: exported type WitnessUpdateOperationProps should have comment or be unexported (golint)
    • Line 253: warning: comment on exported type TransferOperation should be of the form "TransferOperation ..." (with optional leading article) (golint)
    • Line 261: warning: exported method TransferOperation.Type should have comment or be unexported (golint)
    • Line 263: warning: exported method TransferOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 273: warning: comment on exported method TransferOperation.Equals should be of the form "Equals ..." (golint)
    • Line 281: warning: comment on exported type VoteOperation should be of the form "VoteOperation ..." (with optional leading article) (golint)
    • Line 289: warning: exported method VoteOperation.Type should have comment or be unexported (golint)
    • Line 291: warning: exported method VoteOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 314: warning: exported method CommentOperation.Type should have comment or be unexported (golint)
    • Line 318: warning: exported type DeleteCommentOperation should have comment or be unexported (golint)
    • Line 323: warning: exported method DeleteCommentOperation.Type should have comment or be unexported (golint)
    • Line 327: warning: comment on exported type CommentOptionsOperation should be of the form "CommentOptionsOperation ..." (with optional leading article) (golint)
    • Line 342: warning: exported method CommentOptionsOperation.Type should have comment or be unexported (golint)
    • Line 346: warning: exported type ProducerRewardOperation should have comment or be unexported (golint)
    • Line 351: warning: exported method ProducerRewardOperation.Type should have comment or be unexported (golint)
    • Line 355: warning: exported type AccountUpdateOperation should have comment or be unexported (golint)
    • Line 364: warning: exported method AccountUpdateOperation.Type should have comment or be unexported (golint)
    • Line 368: warning: exported type WithdrawScorumpowerOperation should have comment or be unexported (golint)
    • Line 373: warning: exported method WithdrawScorumpowerOperation.Type should have comment or be unexported (golint)
    • Line 377: warning: exported type DelegateScorumpowerOperation should have comment or be unexported (golint)
    • Line 383: warning: exported method DelegateScorumpowerOperation.Type should have comment or be unexported (golint)
    • Line 387: warning: exported type CreateGameOperation should have comment or be unexported (golint)
    • Line 397: warning: exported method CreateGameOperation.Type should have comment or be unexported (golint)
    • Line 401: warning: exported method CreateGameOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 417: warning: exported type CancelGameOperation should have comment or be unexported (golint)
    • Line 422: warning: exported method CancelGameOperation.Type should have comment or be unexported (golint)
    • Line 426: warning: exported method CancelGameOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 434: warning: exported type UpdateGameStartTimeOperation should have comment or be unexported (golint)
    • Line 440: warning: exported method UpdateGameStartTimeOperation.Type should have comment or be unexported (golint)
    • Line 443: warning: exported method UpdateGameStartTimeOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 452: warning: exported type PostGameResultsOperation should have comment or be unexported (golint)
    • Line 458: warning: exported method PostGameResultsOperation.Type should have comment or be unexported (golint)
    • Line 462: warning: exported method PostGameResultsOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 474: warning: exported type Odds should have comment or be unexported (golint)
    • Line 479: warning: exported method Odds.MarshalTransaction should have comment or be unexported (golint)
    • Line 486: warning: exported type PostBetOperation should have comment or be unexported (golint)
    • Line 496: warning: exported method PostBetOperation.Type should have comment or be unexported (golint)
    • Line 500: warning: exported method PostBetOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 513: warning: exported type CancelPendingBetsOperation should have comment or be unexported (golint)
    • Line 518: warning: exported method CancelPendingBetsOperation.Type should have comment or be unexported (golint)
    • Line 522: warning: exported method CancelPendingBetsOperation.MarshalTransaction should have comment or be unexported (golint)
    • Line 533: warning: exported type BetsMatchedVirtualOperation should have comment or be unexported (golint)
    • Line 543: warning: exported method BetsMatchedVirtualOperation.Type should have comment or be unexported (golint)
    • Line 547: warning: exported type GameStatus should have comment or be unexported (golint)
    • Line 550: warning: exported const GameStatusCreated should have comment (or a comment on this block) or be unexported (golint)
    • Line 557: warning: exported type GameStatusChangedVirtualOperation should have comment or be unexported (golint)
    • Line 563: warning: exported method GameStatusChangedVirtualOperation.Type should have comment or be unexported (golint)
    • Line 567: warning: exported type BetResolveKind should have comment or be unexported (golint)
    • Line 570: warning: exported const WinBetResolveKind should have comment (or a comment on this block) or be unexported (golint)
    • Line 574: warning: exported type BetResolvedOperation should have comment or be unexported (golint)
    • Line 582: warning: exported method BetResolvedOperation.Type should have comment or be unexported (golint)
    • Line 586: warning: exported type BetCancelKind should have comment or be unexported (golint)
    • Line 589: warning: exported const PendingBetKind should have comment (or a comment on this block) or be unexported (golint)
    • Line 593: warning: exported type BetCancelledOperation should have comment or be unexported (golint)
    • Line 601: warning: exported method BetCancelledOperation.Type should have comment or be unexported (golint)
    • scorum-go/types/asset.go
    • Line 12: warning: exported const Symbol should have comment or be unexported (golint)
    • Line 14: warning: exported type Asset should have comment or be unexported (golint)
    • Line 18: warning: exported function AssetFromFloat should have comment or be unexported (golint)
    • Line 22: warning: exported function AssetFromString should have comment or be unexported (golint)
    • Line 42: warning: exported method Asset.Decimal should have comment or be unexported (golint)
    • Line 46: warning: exported method Asset.MarshalJSON should have comment or be unexported (golint)
    • Line 50: warning: exported method Asset.UnmarshalJSON should have comment or be unexported (golint)
    • Line 62: warning: exported method Asset.MarshalTransaction should have comment or be unexported (golint)
    • scorum-go/caller/caller.go
    • Line 8: warning: exported var EmptyParams should have comment or be unexported (golint)
    • Line 10: warning: exported type Caller should have comment or be unexported (golint)
    • Line 15: warning: exported type CallCloser should have comment or be unexported (golint)
    • scorum-go/apis/account_history/api.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 7: warning: exported const APIID should have comment or be unexported (golint)
    • Line 9: warning: exported type API should have comment or be unexported (golint)
    • Line 13: warning: exported function NewAPI should have comment or be unexported (golint)
    • scorum-go/encoding/transaction/encoder_rolling.go
    • Line 5: warning: exported type RollingEncoder should have comment or be unexported (golint)
    • Line 10: warning: exported function NewRollingEncoder should have comment or be unexported (golint)
    • Line 14: warning: exported method RollingEncoder.EncodeVarint should have comment or be unexported (golint)
    • Line 20: warning: exported method RollingEncoder.EncodeUVarint should have comment or be unexported (golint)
    • Line 26: warning: exported method RollingEncoder.EncodeNumber should have comment or be unexported (golint)
    • Line 32: warning: exported method RollingEncoder.EncodeBool should have comment or be unexported (golint)
    • Line 38: warning: exported method RollingEncoder.Encode should have comment or be unexported (golint)
    • Line 44: warning: exported method RollingEncoder.EncodeMoney should have comment or be unexported (golint)
    • Line 50: warning: exported method RollingEncoder.EncodeUUID should have comment or be unexported (golint)
    • Line 56: warning: exported method RollingEncoder.Err should have comment or be unexported (golint)
    • scorum-go/apis/blockchain_history/api.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported const APIID should have comment or be unexported (golint)
    • Line 10: warning: exported type API should have comment or be unexported (golint)
    • Line 14: warning: exported function NewAPI should have comment or be unexported (golint)
    • Line 22: warning: exported type AppliedOperationType should have comment or be unexported (golint)
    • Line 25: warning: exported const AllOp should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: comment on exported method API.GetBlock should be of the form "GetBlock ..." (golint)
    • Line 38: warning: comment on exported method API.GetBlockHeader should be of the form "GetBlockHeader ..." (golint)
    • Line 45: warning: comment on exported method API.GetOperationsInBlock should be of the form "GetOperationsInBlock ..." (golint)
    • Line 52: warning: comment on exported method API.GetBlocksHistory should be of the form "GetBlocksHistory ..." (golint)
    • Line 59: warning: comment on exported method API.GetBlocks should be of the form "GetBlocks ..." (golint)
    • scorum-go/types/map.go
    • Line 8: warning: exported type StringInt64Map should have comment or be unexported (golint)
    • Line 10: warning: exported method StringInt64Map.MarshalJSON should have comment or be unexported (golint)
    • Line 18: warning: exported method StringInt64Map.UnmarshalJSON should have comment or be unexported (golint)
    • scorum-go/apis/chain/api.go
    • Line 7: warning: exported const APIID should have comment or be unexported (golint)
    • Line 9: warning: exported type API should have comment or be unexported (golint)
    • Line 13: warning: exported function NewAPI should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method API.GetChainProperties should be of the form "GetChainProperties ..." (golint)
    • scorum-go/apis/blockchain_history/data.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 11: warning: comment on exported type History should be of the form "History ..." (with optional leading article) (golint)
    • Line 14: warning: exported method History.UnmarshalJSON should have comment or be unexported (golint)
    • Line 51: warning: exported type BlockHistory should have comment or be unexported (golint)
    • Line 53: warning: exported method BlockHistory.UnmarshalJSON should have comment or be unexported (golint)
    • Line 91: warning: exported type Blocks should have comment or be unexported (golint)
    • Line 93: warning: exported method Blocks.UnmarshalJSON 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!


misspell98%

Misspell Finds commonly misspelled English words