Preparing report...

Report for github.com/hydroprotocol/hydro-sdk-backend

A+    Excellent!    Found 39 issues across 55 files

Tweet

gofmt98%

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!


gocyclo98%

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.


golint29%

Golint is a linter for Go source code.

    • hydro-sdk-backend/websocket/channel.go
    • Line 20: warning: exported method Channel.GetID should have comment or be unexported (golint)
    • Line 24: warning: exported method Channel.AddSubscriber should have comment or be unexported (golint)
    • Line 28: warning: exported method Channel.RemoveSubscriber should have comment or be unexported (golint)
    • Line 32: warning: exported method Channel.AddMessage should have comment or be unexported (golint)
    • Line 36: warning: exported method Channel.UnsubscribeChan should have comment or be unexported (golint)
    • Line 40: warning: exported method Channel.SubScribeChan should have comment or be unexported (golint)
    • Line 44: warning: exported method Channel.MessagesChan should have comment or be unexported (golint)
    • hydro-sdk-backend/sdk/types/types_util.go
    • Line 9: warning: exported function HexToAddress should have comment or be unexported (golint)
    • Line 10: warning: exported function HexToHash should have comment or be unexported (golint)
    • Line 12: warning: exported function BytesToAddress should have comment or be unexported (golint)
    • Line 18: warning: exported function BytesToHash should have comment or be unexported (golint)
    • Line 24: warning: exported function BigToHash should have comment or be unexported (golint)
    • hydro-sdk-backend/common/queue.go
    • Line 11: warning: comment on exported type IQueue should be of the form "IQueue ..." (with optional leading article) (golint)
    • Line 20: warning: exported function InitQueue should have comment or be unexported (golint)
    • Line 39: warning: error var EXIT should have name of the form ErrFoo (golint)
    • Line 39: warning: exported var EXIT should have comment or be unexported (golint)
    • Line 42: warning: exported type RedisQueue should have comment or be unexported (golint)
    • Line 48: warning: exported type RedisQueueConfig should have comment or be unexported (golint)
    • Line 55: warning: exported method RedisQueue.Push should have comment or be unexported (golint)
    • Line 60: warning: exported method RedisQueue.Pop should have comment or be unexported (golint)
    • Line 79: warning: exported method RedisQueue.Init should have comment or be unexported (golint)
    • hydro-sdk-backend/sdk/ethereum/erc20.go
    • Line 17: warning: exported type IErc20 should have comment or be unexported (golint)
    • Line 26: warning: exported type Erc20Service should have comment or be unexported (golint)
    • Line 30: warning: exported function NewErc20Service should have comment or be unexported (golint)
    • Line 44: warning: error should be the last type when returning multiple items (golint)
    • Line 44: warning: exported method Erc20Service.BalanceOf should have comment or be unexported (golint)
    • Line 59: warning: error should be the last type when returning multiple items (golint)
    • Line 59: warning: exported method Erc20Service.AllowanceOf should have comment or be unexported (golint)
    • Line 74: warning: error should be the last type when returning multiple items (golint)
    • Line 74: warning: exported method Erc20Service.TotalSupply should have comment or be unexported (golint)
    • Line 85: warning: error should be the last type when returning multiple items (golint)
    • Line 85: warning: exported method Erc20Service.Symbol should have comment or be unexported (golint)
    • Line 95: warning: error should be the last type when returning multiple items (golint)
    • Line 95: warning: exported method Erc20Service.Decimals should have comment or be unexported (golint)
    • Line 106: warning: error should be the last type when returning multiple items (golint)
    • Line 106: warning: exported method Erc20Service.Name should have comment or be unexported (golint)
    • Line 147: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • hydro-sdk-backend/sdk/rlp/rlp.go
    • Line 1: warning: package comment should be of the form "Package rlp ..." (golint)
    • Line 10: warning: exported function Encode should have comment or be unexported (golint)
    • Line 15: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 48: warning: exported function EncodeUint64ToBytes should have comment or be unexported (golint)
    • hydro-sdk-backend/sdk/test_helper.go
    • Line 10: warning: exported type MockBlockchain should have comment or be unexported (golint)
    • Line 15: warning: exported type MockHydroProtocol should have comment or be unexported (golint)
    • Line 20: warning: exported type MockHydro should have comment or be unexported (golint)
    • Line 25: warning: exported function NewMockHydro should have comment or be unexported (golint)
    • Line 32: warning: exported method MockBlockchain.GetBlockNumber should have comment or be unexported (golint)
    • Line 37: warning: exported method MockBlockchain.GetBlockByNumber should have comment or be unexported (golint)
    • Line 42: warning: exported method MockBlockchain.GetTransaction should have comment or be unexported (golint)
    • Line 47: warning: exported method MockBlockchain.GetTransactionReceipt should have comment or be unexported (golint)
    • Line 52: warning: exported method MockBlockchain.GetTransactionAndReceipt should have comment or be unexported (golint)
    • Line 57: warning: exported method MockBlockchain.GetTokenBalance should have comment or be unexported (golint)
    • Line 62: warning: exported method MockBlockchain.GetTokenAllowance should have comment or be unexported (golint)
    • Line 67: warning: exported method MockBlockchain.GetHotFeeDiscount should have comment or be unexported (golint)
    • Line 77: warning: exported method MockBlockchain.IsValidSignature should have comment or be unexported (golint)
    • Line 82: warning: exported method MockBlockchain.SendTransaction should have comment or be unexported (golint)
    • Line 87: warning: exported method MockBlockchain.SendRawTransaction should have comment or be unexported (golint)
    • Line 92: warning: exported method MockHydroProtocol.GenerateOrderData should have comment or be unexported (golint)
    • Line 97: warning: exported method MockHydroProtocol.GetOrderHash should have comment or be unexported (golint)
    • Line 102: warning: exported method MockHydroProtocol.GetMatchOrderCallData should have comment or be unexported (golint)
    • hydro-sdk-backend/common/message.go
    • Line 12: warning: exported const WsTypeOrderChange should have comment or be unexported (golint)
    • Line 13: warning: exported const WsTypeTradeChange should have comment or be unexported (golint)
    • Line 14: warning: exported const WsTypeLockedBalanceChange should have comment or be unexported (golint)
    • Line 16: warning: exported const WsTypeNewMarketTrade should have comment or be unexported (golint)
    • Line 21: warning: exported type WebSocketMessage should have comment or be unexported (golint)
    • Line 27: warning: exported type WebsocketMarketOrderChangePayload should have comment or be unexported (golint)
    • Line 34: warning: exported type WebsocketLockedBalanceChangePayload should have comment or be unexported (golint)
    • Line 40: warning: exported type WebsocketOrderChangePayload should have comment or be unexported (golint)
    • Line 45: warning: exported type WebsocketTradeChangePayload should have comment or be unexported (golint)
    • Line 50: warning: exported type WebsocketMarketNewMarketTradePayload should have comment or be unexported (golint)
    • Line 65: warning: exported type Event should have comment or be unexported (golint)
    • Line 70: warning: exported type NewOrderEvent should have comment or be unexported (golint)
    • Line 75: warning: exported type CancelOrderEvent should have comment or be unexported (golint)
    • Line 82: warning: exported type ConfirmTransactionEvent should have comment or be unexported (golint)
    • Line 91: warning: exported const MarketChannelPrefix should have comment or be unexported (golint)
    • Line 92: warning: exported const AccountChannelPrefix should have comment or be unexported (golint)
    • Line 94: warning: exported function GetAccountChannelID should have comment or be unexported (golint)
    • Line 98: warning: exported function GetMarketChannelID should have comment or be unexported (golint)
    • Line 102: warning: exported function OrderBookChangeMessage should have comment or be unexported (golint)
    • Line 121: warning: exported function MessagesForUpdateOrder should have comment or be unexported (golint)
    • hydro-sdk-backend/websocket/websocket.go
    • Line 10: warning: exported type WSServer should have comment or be unexported (golint)
    • Line 15: warning: exported function NewWSServer should have comment or be unexported (golint)
    • Line 28: warning: exported function RegisterChannelCreator should have comment or be unexported (golint)
    • Line 32: warning: exported method WSServer.Start should have comment or be unexported (golint)
    • hydro-sdk-backend/utils/hex.go
    • Line 11: warning: exported function Int2Hex should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function Hex2Int should be of the form "Hex2Int ..." (golint)
    • Line 29: warning: exported function Bytes2Hex should have comment or be unexported (golint)
    • Line 33: warning: exported function Hex2Bytes should have comment or be unexported (golint)
    • Line 46: warning: comment on exported function Bytes2HexP should be of the form "Bytes2HexP ..." (golint)
    • Line 51: warning: exported function Hex2BigInt should have comment or be unexported (golint)
    • Line 58: warning: exported function Bytes2BigInt should have comment or be unexported (golint)
    • Line 88: warning: exported function Int2Bytes should have comment or be unexported (golint)
    • hydro-sdk-backend/common/const.go
    • Line 5: warning: exported const STATUS_SUCCESSFUL should have comment or be unexported (golint)
    • Line 6: warning: exported const STATUS_PENDING should have comment or be unexported (golint)
    • Line 7: warning: exported const STATUS_FAILED should have comment or be unexported (golint)
    • Line 9: warning: exported function GetMarketOrderbookSnapshotV2Key should have comment or be unexported (golint)
    • Line 13: warning: comment on exported const HYDRO_WEBSOCKET_MESSAGES_QUEUE_KEY should be of the form "HYDRO_WEBSOCKET_MESSAGES_QUEUE_KEY ..." (golint)
    • Line 15: warning: exported const HYDRO_ENGINE_EVENTS_QUEUE_KEY should have comment or be unexported (golint)
    • Line 17: warning: comment on exported const HYDRO_WATCHER_BLOCK_NUMBER_CACHE_KEY should be of the form "HYDRO_WATCHER_BLOCK_NUMBER_CACHE_KEY ..." (golint)
    • Line 20: warning: comment on exported const ORDER_CANCELED should be of the form "ORDER_CANCELED ..." (golint)
    • Line 22: warning: exported const ORDER_PENDING should have comment or be unexported (golint)
    • Line 23: warning: exported const ORDER_PARTIAL_FILLED should have comment or be unexported (golint)
    • Line 24: warning: exported const ORDER_FULL_FILLED should have comment or be unexported (golint)
    • hydro-sdk-backend/utils/http_client.go
    • Line 14: warning: exported type IHttpClient should have comment or be unexported (golint)
    • Line 22: warning: exported type KeyValue should have comment or be unexported (golint)
    • Line 27: warning: exported function NewHttpClient should have comment or be unexported (golint)
    • Line 35: warning: exported type HttpClient should have comment or be unexported (golint)
    • Line 39: warning: exported const ErrorCode should have comment or be unexported (golint)
    • Line 41: warning: error should be the last type when returning multiple items (golint)
    • Line 41: warning: exported method HttpClient.Request should have comment or be unexported (golint)
    • Line 102: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 107: warning: error should be the last type when returning multiple items (golint)
    • Line 107: warning: exported method HttpClient.Get should have comment or be unexported (golint)
    • Line 111: warning: error should be the last type when returning multiple items (golint)
    • Line 111: warning: exported method HttpClient.Post should have comment or be unexported (golint)
    • Line 115: warning: error should be the last type when returning multiple items (golint)
    • Line 115: warning: exported method HttpClient.Delete should have comment or be unexported (golint)
    • Line 119: warning: error should be the last type when returning multiple items (golint)
    • Line 119: warning: exported method HttpClient.Put should have comment or be unexported (golint)
    • hydro-sdk-backend/sdk/types/hash.go
    • Line 10: warning: exported type Hash should have comment or be unexported (golint)
    • Line 15: warning: exported method Hash.SetBytes should have comment or be unexported (golint)
    • Line 22: warning: exported method Hash.Bytes should have comment or be unexported (golint)
    • Line 24: warning: exported type Address should have comment or be unexported (golint)
    • Line 29: warning: exported method Address.SetBytes should have comment or be unexported (golint)
    • Line 35: warning: exported method Address.Bytes should have comment or be unexported (golint)
    • hydro-sdk-backend/sdk/interface.go
    • Line 9: warning: exported type BlockChain should have comment or be unexported (golint)
    • Line 28: warning: exported type HydroProtocol should have comment or be unexported (golint)
    • Line 36: warning: exported type Hydro should have comment or be unexported (golint)
    • Line 41: warning: exported type Block should have comment or be unexported (golint)
    • Line 50: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 61: warning: exported type TransactionReceipt should have comment or be unexported (golint)
    • Line 72: warning: exported type IReceiptLog should have comment or be unexported (golint)
    • Line 85: warning: exported type OrderSignature should have comment or be unexported (golint)
    • Line 91: warning: exported type Order should have comment or be unexported (golint)
    • Line 104: warning: exported type OrderParam should have comment or be unexported (golint)
    • Line 113: warning: exported type OrderAddressSet should have comment or be unexported (golint)
    • Line 120: warning: exported function NewOrderWithData should have comment or be unexported (golint)
    • hydro-sdk-backend/common/orderbook.go
    • Line 15: warning: exported type OrderbookEvent should have comment or be unexported (golint)
    • Line 22: warning: exported type OrderbookPlugin should have comment or be unexported (golint)
    • Line 24: warning: exported type IOrderBook should have comment or be unexported (golint)
    • Line 38: warning: exported type MatchResult should have comment or be unexported (golint)
    • Line 46: warning: exported type MatchItem should have comment or be unexported (golint)
    • Line 53: warning: exported type MemoryOrder should have comment or be unexported (golint)
    • Line 66: warning: exported type SnapshotV2 should have comment or be unexported (golint)
    • Line 73: warning: exported method MemoryOrder.QuoteTokenSymbol should have comment or be unexported (golint)
    • Line 77: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 82: warning: exported method MemoryOrder.BaseTokenSymbol should have comment or be unexported (golint)
    • Line 86: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 91: warning: exported method MatchResult.QuoteTokenTotalMatchedAmt should have comment or be unexported (golint)
    • Line 100: warning: exported method MatchResult.TakerTradeFeeInQuoteToken should have comment or be unexported (golint)
    • Line 104: warning: exported method MatchResult.MakerTradeFeeInQuoteToken should have comment or be unexported (golint)
    • Line 112: warning: exported method MatchResult.BaseTokenTotalMatchedAmtWithoutCanceledMatch should have comment or be unexported (golint)
    • Line 123: warning: exported method MatchResult.SumOfGasOfMakerOrders should have comment or be unexported (golint)
    • Line 132: warning: exported method MatchResult.ExistMatchToBeExecuted should have comment or be unexported (golint)
    • Line 233: warning: exported method Orderbook.SnapshotV2 should have comment or be unexported (golint)
    • Line 278: warning: exported method Orderbook.InsertOrder should have comment or be unexported (golint)
    • Line 313: warning: exported method Orderbook.RemoveOrder should have comment or be unexported (golint)
    • Line 354: warning: exported method Orderbook.ChangeOrder should have comment or be unexported (golint)
    • Line 385: warning: exported method Orderbook.UsePlugin should have comment or be unexported (golint)
    • Line 389: warning: exported method Orderbook.RunPlugins should have comment or be unexported (golint)
    • Line 395: warning: exported method Orderbook.GetOrder should have comment or be unexported (golint)
    • Line 441: warning: exported method Orderbook.CanMatch should have comment or be unexported (golint)
    • Line 453: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 467: warning: comment on exported method Orderbook.MatchOrder should be of the form "MatchOrder ..." (golint)
    • Line 612: warning: exported method Orderbook.ExecuteMatch should have comment or be unexported (golint)
    • Line 658: warning: exported function TakerOrderShouldBeRemoved should have comment or be unexported (golint)
    • Line 669: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • hydro-sdk-backend/launcher/gas_price.go
    • Line 10: warning: exported type GasPriceDecider should have comment or be unexported (golint)
    • Line 14: warning: exported type StaticGasPriceDecider should have comment or be unexported (golint)
    • Line 18: warning: exported method StaticGasPriceDecider.GasPriceInWei should have comment or be unexported (golint)
    • Line 22: warning: exported type GasStationPriceDeciderWithFallback should have comment or be unexported (golint)
    • Line 26: warning: exported method GasStationPriceDeciderWithFallback.GasPriceInWei should have comment or be unexported (golint)
    • Line 49: warning: exported type GasStationRespBody should have comment or be unexported (golint)
    • Line 54: warning: exported function NewStaticGasPriceDecider should have comment or be unexported (golint)
    • Line 60: warning: exported function NewGasStationGasPriceDecider should have comment or be unexported (golint)
    • hydro-sdk-backend/utils/number.go
    • Line 11: warning: exported function String2BigInt should have comment or be unexported (golint)
    • Line 17: warning: comment on exported function StringToDecimal should be of the form "StringToDecimal ..." (golint)
    • Line 24: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 33: warning: exported function IntToDecimal should have comment or be unexported (golint)
    • Line 42: warning: exported function DecimalToBigInt should have comment or be unexported (golint)
    • Line 51: warning: exported function NumberToString should have comment or be unexported (golint)
    • Line 55: warning: exported function ParseInt should have comment or be unexported (golint)
    • hydro-sdk-backend/sdk/ethereum/ethereum_hydro_protocol.go
    • Line 18: warning: exported type EthereumHydroProtocol should have comment or be unexported (golint)
    • Line 20: warning: exported method EthereumHydroProtocol.GenerateOrderData should have comment or be unexported (golint)
    • Line 51: warning: exported method EthereumHydroProtocol.GetOrderHash should have comment or be unexported (golint)
    • Line 66: warning: exported method EthereumHydroProtocol.GetMatchOrderCallData should have comment or be unexported (golint)
    • Line 101: warning: exported method EthereumHydroProtocol.IsValidOrderSignature should have comment or be unexported (golint)
    • Line 142: warning: exported function GetOrderData should have comment or be unexported (golint)
    • Line 184: warning: exported function GetHash should have comment or be unexported (golint)
    • Line 200: warning: exported function GetRawMakerFeeRateFromOrderData should have comment or be unexported (golint)
    • Line 203: warning: exported function GetRawTakerFeeRateFromOrderData should have comment or be unexported (golint)
    • Line 206: warning: exported function GetRawMakerRebateRateFromOrderData should have comment or be unexported (golint)
    • Line 209: warning: exported function GetIsMakerOnlyFromOrderData should have comment or be unexported (golint)
    • Line 213: warning: exported function GetOrderExpireTsFromOrderData should have comment or be unexported (golint)
    • Line 234: warning: exported const FeeRateBase should have comment or be unexported (golint)
    • hydro-sdk-backend/common/kv_store.go
    • Line 11: warning: exported type IKVStore should have comment or be unexported (golint)
    • Line 16: warning: error var KVStoreEmpty should have name of the form ErrFoo (golint)
    • Line 16: warning: exported var KVStoreEmpty should have comment or be unexported (golint)
    • Line 18: warning: exported function InitKVStore should have comment or be unexported (golint)
    • Line 37: warning: exported type RedisKVStore should have comment or be unexported (golint)
    • Line 42: warning: exported type RedisKVStoreConfig should have comment or be unexported (golint)
    • Line 48: warning: exported method RedisKVStore.Set should have comment or be unexported (golint)
    • Line 53: warning: exported method RedisKVStore.Get should have comment or be unexported (golint)
    • Line 64: warning: exported method RedisKVStore.Init should have comment or be unexported (golint)
    • hydro-sdk-backend/websocket/client.go
    • Line 16: warning: exported type Client should have comment or be unexported (golint)
    • Line 30: warning: exported method Client.Send should have comment or be unexported (golint)
    • Line 40: warning: exported function NewClient should have comment or be unexported (golint)
    • hydro-sdk-backend/engine/engine.go
    • Line 9: warning: exported type Engine should have comment or be unexported (golint)
    • Line 25: warning: exported function NewEngine should have comment or be unexported (golint)
    • Line 35: warning: exported method Engine.RegisterDBHandler should have comment or be unexported (golint)
    • Line 38: warning: exported method Engine.RegisterOrderBookSnapshotHandler should have comment or be unexported (golint)
    • Line 41: warning: exported method Engine.RegisterOrderBookActivitiesHandler should have comment or be unexported (golint)
    • Line 45: warning: exported type DBHandler should have comment or be unexported (golint)
    • Line 48: warning: exported type OrderBookSnapshotHandler should have comment or be unexported (golint)
    • Line 51: warning: exported type OrderBookActivitiesHandler should have comment or be unexported (golint)
    • Line 55: warning: exported method Engine.HandleNewOrder should have comment or be unexported (golint)
    • Line 80: warning: exported method Engine.ReInsertOrder should have comment or be unexported (golint)
    • Line 100: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 106: warning: exported method Engine.HandleCancelOrder should have comment or be unexported (golint)
    • Line 115: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • hydro-sdk-backend/sdk/crypto/crypto.go
    • Line 16: warning: exported function Keccak256 should have comment or be unexported (golint)
    • Line 24: warning: exported function NewPrivateKey should have comment or be unexported (golint)
    • Line 48: warning: exported function NewPrivateKeyByHex should have comment or be unexported (golint)
    • Line 53: warning: exported function Sign should have comment or be unexported (golint)
    • Line 71: warning: exported function PersonalSign should have comment or be unexported (golint)
    • Line 89: warning: exported function PersonalSignByPrivateKey should have comment or be unexported (golint)
    • Line 100: warning: exported function EcRecover should have comment or be unexported (golint)
    • Line 109: warning: exported function PersonalEcRecover should have comment or be unexported (golint)
    • Line 135: warning: exported function PubKey2Bytes should have comment or be unexported (golint)
    • Line 142: warning: exported function PubKey2Address should have comment or be unexported (golint)
    • Line 147: warning: exported function SigToPub should have comment or be unexported (golint)
    • hydro-sdk-backend/utils/metrics.go
    • Line 10: warning: exported const DefaultMetricPort should have comment or be unexported (golint)
    • Line 11: warning: exported const DefaultMetricPath should have comment or be unexported (golint)
    • Line 13: warning: exported function StartMetrics should have comment or be unexported (golint)
    • Line 33: warning: exported type MetricsHandler should have comment or be unexported (golint)
    • hydro-sdk-backend/watcher/watcher.go
    • Line 12: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 23: warning: exported type TransactionHandler should have comment or be unexported (golint)
    • Line 27: warning: exported method Watcher.RegisterHandler should have comment or be unexported (golint)
    • Line 31: warning: exported const SleepSeconds should have comment or be unexported (golint)
    • Line 33: warning: exported method Watcher.Run should have comment or be unexported (golint)
    • hydro-sdk-backend/common/test_helper.go
    • Line 8: warning: exported type MockKVStore should have comment or be unexported (golint)
    • Line 12: warning: exported method MockKVStore.Set should have comment or be unexported (golint)
    • Line 17: warning: exported method MockKVStore.Get should have comment or be unexported (golint)
    • Line 22: warning: exported type MockQueue should have comment or be unexported (golint)
    • Line 27: warning: exported method MockQueue.Push should have comment or be unexported (golint)
    • Line 38: warning: exported method MockQueue.Pop should have comment or be unexported (golint)
    • Line 43: warning: exported method MockQueue.ResetBuffer should have comment or be unexported (golint)
    • hydro-sdk-backend/websocket/snapshot.go
    • Line 11: warning: exported type SnapshotFetcher should have comment or be unexported (golint)
    • Line 15: warning: exported type DefaultHttpSnapshotFetcher should have comment or be unexported (golint)
    • Line 19: warning: exported method DefaultHttpSnapshotFetcher.GetV2 should have comment or be unexported (golint)
    • hydro-sdk-backend/utils/logger.go
    • Line 31: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 35: warning: exported function Infof should have comment or be unexported (golint)
    • Line 39: warning: exported function Errorf should have comment or be unexported (golint)
    • hydro-sdk-backend/sdk/ethereum/ethereum.go
    • Line 22: warning: exported var EIP712_DOMAIN_TYPEHASH should have comment or be unexported (golint)
    • Line 23: warning: exported var EIP712_ORDER_TYPE should have comment or be unexported (golint)
    • Line 35: warning: exported type EthereumBlock should have comment or be unexported (golint)
    • Line 39: warning: exported method EthereumBlock.Hash should have comment or be unexported (golint)
    • Line 43: warning: exported method EthereumBlock.ParentHash should have comment or be unexported (golint)
    • Line 47: warning: exported method EthereumBlock.GetTransactions should have comment or be unexported (golint)
    • Line 58: warning: exported method EthereumBlock.Number should have comment or be unexported (golint)
    • Line 62: warning: exported method EthereumBlock.Timestamp should have comment or be unexported (golint)
    • Line 66: warning: exported type EthereumTransaction should have comment or be unexported (golint)
    • Line 70: warning: exported method EthereumTransaction.GetBlockHash should have comment or be unexported (golint)
    • Line 74: warning: exported method EthereumTransaction.GetFrom should have comment or be unexported (golint)
    • Line 78: warning: exported method EthereumTransaction.GetGas should have comment or be unexported (golint)
    • Line 82: warning: exported method EthereumTransaction.GetGasPrice should have comment or be unexported (golint)
    • Line 86: warning: exported method EthereumTransaction.GetValue should have comment or be unexported (golint)
    • Line 90: warning: exported method EthereumTransaction.GetTo should have comment or be unexported (golint)
    • Line 94: warning: exported method EthereumTransaction.GetHash should have comment or be unexported (golint)
    • Line 97: warning: exported method EthereumTransaction.GetBlockNumber should have comment or be unexported (golint)
    • Line 101: warning: exported type EthereumTransactionReceipt should have comment or be unexported (golint)
    • Line 105: warning: exported method EthereumTransactionReceipt.GetLogs should have comment or be unexported (golint)
    • Line 114: warning: exported method EthereumTransactionReceipt.GetResult should have comment or be unexported (golint)
    • Line 124: warning: exported method EthereumTransactionReceipt.GetBlockNumber should have comment or be unexported (golint)
    • Line 128: warning: exported method EthereumTransactionReceipt.GetBlockHash should have comment or be unexported (golint)
    • Line 131: warning: exported method EthereumTransactionReceipt.GetTxHash should have comment or be unexported (golint)
    • Line 134: warning: exported method EthereumTransactionReceipt.GetTxIndex should have comment or be unexported (golint)
    • Line 138: warning: exported type ReceiptLog should have comment or be unexported (golint)
    • Line 142: warning: exported method ReceiptLog.GetRemoved should have comment or be unexported (golint)
    • Line 146: warning: exported method ReceiptLog.GetLogIndex should have comment or be unexported (golint)
    • Line 150: warning: exported method ReceiptLog.GetTransactionIndex should have comment or be unexported (golint)
    • Line 154: warning: exported method ReceiptLog.GetTransactionHash should have comment or be unexported (golint)
    • Line 158: warning: exported method ReceiptLog.GetBlockNum should have comment or be unexported (golint)
    • Line 162: warning: exported method ReceiptLog.GetBlockHash should have comment or be unexported (golint)
    • Line 166: warning: exported method ReceiptLog.GetAddress should have comment or be unexported (golint)
    • Line 170: warning: exported method ReceiptLog.GetData should have comment or be unexported (golint)
    • Line 174: warning: exported method ReceiptLog.GetTopics should have comment or be unexported (golint)
    • Line 178: warning: exported type Ethereum should have comment or be unexported (golint)
    • Line 183: warning: exported method Ethereum.EnableDebug should have comment or be unexported (golint)
    • Line 187: warning: exported method Ethereum.GetBlockByNumber should have comment or be unexported (golint)
    • Line 204: warning: exported method Ethereum.GetBlockNumber should have comment or be unexported (golint)
    • Line 215: warning: exported method Ethereum.GetTransaction should have comment or be unexported (golint)
    • Line 249: warning: exported method Ethereum.SendTransaction should have comment or be unexported (golint)
    • Line 265: warning: exported method Ethereum.GetTransactionReceipt should have comment or be unexported (golint)
    • Line 276: warning: exported method Ethereum.GetTransactionAndReceipt should have comment or be unexported (golint)
    • Line 293: warning: exported method Ethereum.GetTokenBalance should have comment or be unexported (golint)
    • Line 315: warning: exported method Ethereum.GetTokenAllowance should have comment or be unexported (golint)
    • Line 329: warning: exported method Ethereum.GetHotFeeDiscount should have comment or be unexported (golint)
    • Line 349: warning: exported method Ethereum.IsValidSignature should have comment or be unexported (golint)
    • Line 375: warning: exported method Ethereum.SendRawTransaction should have comment or be unexported (golint)
    • Line 380: warning: exported method Ethereum.GetTransactionCount should have comment or be unexported (golint)
    • Line 384: warning: exported function NewEthereum should have comment or be unexported (golint)
    • Line 399: warning: exported function IsValidSignature should have comment or be unexported (golint)
    • Line 403: warning: exported function PersonalSign 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!