Preparing report...

Report for github.com/grinply/universal-crypto-api

A    Great!    Found 19 issues across 20 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


golint15%

Golint is a linter for Go source code.

    • universal-crypto-api/internal/exchanges/kucoin/order_connector.go
    • Line 9: warning: exported type KuCoinConnector should have comment or be unexported (golint)
    • Line 11: warning: exported method KuCoinConnector.GetWalletBalances should have comment or be unexported (golint)
    • Line 15: warning: exported method KuCoinConnector.GetOrderByID should have comment or be unexported (golint)
    • Line 19: warning: exported method KuCoinConnector.OpenOrder should have comment or be unexported (golint)
    • Line 23: warning: exported method KuCoinConnector.CancelOrder should have comment or be unexported (golint)
    • Line 27: warning: exported method KuCoinConnector.CancelAllOrders should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/bitfinex/order_connector.go
    • Line 9: warning: exported type BitfinexConnector should have comment or be unexported (golint)
    • Line 11: warning: exported method BitfinexConnector.GetWalletBalances should have comment or be unexported (golint)
    • Line 15: warning: exported method BitfinexConnector.GetOrderByID should have comment or be unexported (golint)
    • Line 19: warning: exported method BitfinexConnector.OpenOrder should have comment or be unexported (golint)
    • Line 23: warning: exported method BitfinexConnector.CancelOrder should have comment or be unexported (golint)
    • Line 27: warning: exported method BitfinexConnector.CancelAllOrders should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/binance/order_connector.go
    • Line 13: warning: exported type BinanceConnector should have comment or be unexported (golint)
    • Line 33: warning: exported method BinanceConnector.GetWalletBalances should have comment or be unexported (golint)
    • Line 51: warning: exported method BinanceConnector.GetOrderByID should have comment or be unexported (golint)
    • Line 66: warning: exported method BinanceConnector.OpenOrder should have comment or be unexported (golint)
    • Line 82: warning: exported method BinanceConnector.GetAllOpenOrders should have comment or be unexported (golint)
    • Line 98: warning: exported method BinanceConnector.CancelOrder should have comment or be unexported (golint)
    • Line 104: warning: exported method BinanceConnector.CancelAllOpenOrders should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/bybit/order_connector.go
    • Line 9: warning: exported type BybitConnector should have comment or be unexported (golint)
    • Line 11: warning: exported method BybitConnector.GetWalletBalances should have comment or be unexported (golint)
    • Line 15: warning: exported method BybitConnector.GetOrderByID should have comment or be unexported (golint)
    • Line 19: warning: exported method BybitConnector.OpenOrder should have comment or be unexported (golint)
    • Line 23: warning: exported method BybitConnector.CancelOrder should have comment or be unexported (golint)
    • Line 27: warning: exported method BybitConnector.CancelAllOrders should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/bybit/price_connector.go
    • Line 9: warning: exported type BybitPriceConnector should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPriceConnector should have comment or be unexported (golint)
    • Line 16: warning: exported method BybitPriceConnector.GetLatestPrice should have comment or be unexported (golint)
    • Line 20: warning: exported method BybitPriceConnector.GetTradingRule should have comment or be unexported (golint)
    • Line 24: warning: exported method BybitPriceConnector.GetCandles should have comment or be unexported (golint)
    • Line 28: warning: exported method BybitPriceConnector.GetPriceFeed should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/bitfinex/price_connector.go
    • Line 9: warning: exported type BitfinexPriceConnector should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPriceConnector should have comment or be unexported (golint)
    • Line 16: warning: exported method BitfinexPriceConnector.GetLatestPrice should have comment or be unexported (golint)
    • Line 20: warning: exported method BitfinexPriceConnector.GetTradingRule should have comment or be unexported (golint)
    • Line 24: warning: exported method BitfinexPriceConnector.GetCandles should have comment or be unexported (golint)
    • Line 28: warning: exported method BitfinexPriceConnector.GetPriceFeed should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/okex/order_connector.go
    • Line 9: warning: exported type OkexConnector should have comment or be unexported (golint)
    • Line 11: warning: exported method OkexConnector.GetWalletBalances should have comment or be unexported (golint)
    • Line 15: warning: exported method OkexConnector.GetOrderByID should have comment or be unexported (golint)
    • Line 19: warning: exported method OkexConnector.OpenOrder should have comment or be unexported (golint)
    • Line 23: warning: exported method OkexConnector.CancelOrder should have comment or be unexported (golint)
    • Line 27: warning: exported method OkexConnector.CancelAllOrders should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/coinbase/price_connector.go
    • Line 9: warning: exported type CoinbasePriceConnector should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPriceConnector should have comment or be unexported (golint)
    • Line 16: warning: exported method CoinbasePriceConnector.GetLatestPrice should have comment or be unexported (golint)
    • Line 20: warning: exported method CoinbasePriceConnector.GetTradingRule should have comment or be unexported (golint)
    • Line 24: warning: exported method CoinbasePriceConnector.GetCandles should have comment or be unexported (golint)
    • Line 28: warning: exported method CoinbasePriceConnector.GetPriceFeed should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/kucoin/price_connector.go
    • Line 9: warning: exported type KuCoinPriceConnector should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPriceConnector should have comment or be unexported (golint)
    • Line 16: warning: exported method KuCoinPriceConnector.GetLatestPrice should have comment or be unexported (golint)
    • Line 20: warning: exported method KuCoinPriceConnector.GetTradingRule should have comment or be unexported (golint)
    • Line 24: warning: exported method KuCoinPriceConnector.GetCandles should have comment or be unexported (golint)
    • Line 28: warning: exported method KuCoinPriceConnector.GetPriceFeed should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/binance/price_connector.go
    • Line 9: warning: exported type BinancePriceConnector should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPriceConnector should have comment or be unexported (golint)
    • Line 16: warning: exported method BinancePriceConnector.GetLatestPrice should have comment or be unexported (golint)
    • Line 20: warning: exported method BinancePriceConnector.GetTradingRule should have comment or be unexported (golint)
    • Line 24: warning: exported method BinancePriceConnector.GetCandles should have comment or be unexported (golint)
    • Line 28: warning: exported method BinancePriceConnector.GetPriceFeed should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/coinbase/order_connector.go
    • Line 9: warning: exported type CoinbaseConnector should have comment or be unexported (golint)
    • Line 11: warning: exported method CoinbaseConnector.GetWalletBalances should have comment or be unexported (golint)
    • Line 15: warning: exported method CoinbaseConnector.GetOrderByID should have comment or be unexported (golint)
    • Line 19: warning: exported method CoinbaseConnector.OpenOrder should have comment or be unexported (golint)
    • Line 23: warning: exported method CoinbaseConnector.CancelOrder should have comment or be unexported (golint)
    • Line 27: warning: exported method CoinbaseConnector.CancelAllOrders should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/ftx/price_connector.go
    • Line 9: warning: exported type FTXPriceConnector should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPriceConnector should have comment or be unexported (golint)
    • Line 16: warning: exported method FTXPriceConnector.GetLatestPrice should have comment or be unexported (golint)
    • Line 20: warning: exported method FTXPriceConnector.GetTradingRule should have comment or be unexported (golint)
    • Line 24: warning: exported method FTXPriceConnector.GetCandles should have comment or be unexported (golint)
    • Line 28: warning: exported method FTXPriceConnector.GetPriceFeed should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/okex/price_connector.go
    • Line 9: warning: exported type OkexPriceConnector should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPriceConnector should have comment or be unexported (golint)
    • Line 16: warning: exported method OkexPriceConnector.GetLatestPrice should have comment or be unexported (golint)
    • Line 20: warning: exported method OkexPriceConnector.GetTradingRule should have comment or be unexported (golint)
    • Line 24: warning: exported method OkexPriceConnector.GetCandles should have comment or be unexported (golint)
    • Line 28: warning: exported method OkexPriceConnector.GetPriceFeed should have comment or be unexported (golint)
    • universal-crypto-api/internal/exchanges/ftx/order_connector.go
    • Line 9: warning: exported type FTXConnector should have comment or be unexported (golint)
    • Line 11: warning: exported method FTXConnector.GetWalletBalances should have comment or be unexported (golint)
    • Line 15: warning: exported method FTXConnector.GetOrderByID should have comment or be unexported (golint)
    • Line 19: warning: exported method FTXConnector.OpenOrder should have comment or be unexported (golint)
    • Line 23: warning: exported method FTXConnector.CancelOrder should have comment or be unexported (golint)
    • Line 27: warning: exported method FTXConnector.CancelAllOrders should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell90%

Misspell Finds commonly misspelled English words