Preparing report...

Report for github.com/yurulab/gocryptotrader

A+    Excellent!    Found 117 issues across 457 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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


gocyclo76%

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.

    • gocryptotrader/exchanges/kline/kline.go
    • Line 163: warning: cyclomatic complexity 22 of function durationToWord() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 21 of function TotalCandlesPerInterval() is high (> 15) (gocyclo)
    • Line 16: warning: cyclomatic complexity 18 of function CreateKline() is high (> 15) (gocyclo)
    • gocryptotrader/config/config.go
    • Line 801: warning: cyclomatic complexity 58 of function (*Config).CheckExchangeConfigValues() is high (> 15) (gocyclo)
    • Line 1094: warning: cyclomatic complexity 32 of function (*Config).CheckCurrencyConfigValues() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 29 of function (*Config).CheckCommunicationsConfig() is high (> 15) (gocyclo)
    • Line 476: warning: cyclomatic complexity 21 of function (*Config).CheckPairConsistency() is high (> 15) (gocyclo)
    • Line 1482: warning: cyclomatic complexity 20 of function GetFilePath() is high (> 15) (gocyclo)
    • Line 1218: warning: cyclomatic complexity 17 of function (*Config).RetrieveConfigCurrencyPairs() is high (> 15) (gocyclo)
    • Line 408: warning: cyclomatic complexity 16 of function (*Config).CheckPairConfigFormats() is high (> 15) (gocyclo)
    • gocryptotrader/exchanges/exmo/exmo.go
    • Line 392: warning: cyclomatic complexity 28 of function getInternationalBankWithdrawalFee() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 22 of function getInternationalBankDepositFee() is high (> 15) (gocyclo)
    • gocryptotrader/engine/rpcserver.go
    • Line 1778: warning: cyclomatic complexity 21 of function (*RPCServer).GCTScriptUpload() is high (> 15) (gocyclo)
    • Line 1267: warning: cyclomatic complexity 19 of function (*RPCServer).SetExchangePair() is high (> 15) (gocyclo)
    • gocryptotrader/engine/engine.go
    • Line 306: warning: cyclomatic complexity 33 of function (*Engine).Start() is high (> 15) (gocyclo)
    • Line 112: warning: cyclomatic complexity 23 of function ValidateSettings() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 22 of function (*Engine).Stop() is high (> 15) (gocyclo)
    • gocryptotrader/exchanges/exchange_test.go
    • Line 368: warning: cyclomatic complexity 25 of function TestLoadConfigPairs() is high (> 15) (gocyclo)
    • Line 644: warning: cyclomatic complexity 24 of function TestGetEnabledPairs() is high (> 15) (gocyclo)
    • Line 766: warning: cyclomatic complexity 23 of function TestGetAvailablePairs() is high (> 15) (gocyclo)
    • Line 1299: warning: cyclomatic complexity 21 of function TestUpdatePairs() is high (> 15) (gocyclo)
    • gocryptotrader/cmd/gctcli/commands.go
    • Line 1329: warning: cyclomatic complexity 22 of function submitOrder() is high (> 15) (gocyclo)
    • Line 3911: warning: cyclomatic complexity 22 of function getHistoricCandlesExtended() is high (> 15) (gocyclo)
    • Line 2248: warning: cyclomatic complexity 22 of function withdrawCryptocurrencyFunds() is high (> 15) (gocyclo)
    • Line 2830: warning: cyclomatic complexity 20 of function getOrderbookStream() is high (> 15) (gocyclo)
    • Line 1928: warning: cyclomatic complexity 19 of function addEvent() is high (> 15) (gocyclo)
    • Line 1700: warning: cyclomatic complexity 18 of function cancelOrder() is high (> 15) (gocyclo)
    • Line 3781: warning: cyclomatic complexity 18 of function getHistoricCandles() is high (> 15) (gocyclo)
    • Line 2364: warning: cyclomatic complexity 17 of function withdrawFiatFunds() is high (> 15) (gocyclo)
    • Line 2613: warning: cyclomatic complexity 17 of function withdrawlRequestByDate() is high (> 15) (gocyclo)
    • Line 1472: warning: cyclomatic complexity 16 of function simulateOrder() is high (> 15) (gocyclo)
    • gocryptotrader/cmd/apichecker/apicheck.go
    • Line 1587: warning: cyclomatic complexity 31 of function htmlScrapeFTX() is high (> 15) (gocyclo)
    • Line 449: warning: cyclomatic complexity 29 of function checkChangeLog() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 28 of function checkUpdates() is high (> 15) (gocyclo)
    • Line 1089: warning: cyclomatic complexity 20 of function htmlScrapeYobit() is high (> 15) (gocyclo)
    • Line 80: warning: cyclomatic complexity 20 of function main() is high (> 15) (gocyclo)
    • Line 1034: warning: cyclomatic complexity 18 of function htmlScrapeAlphaPoint() is high (> 15) (gocyclo)
    • Line 1709: warning: cyclomatic complexity 17 of function htmlScrapeBinance() is high (> 15) (gocyclo)
    • Line 789: warning: cyclomatic complexity 17 of function htmlScrapeOk() is high (> 15) (gocyclo)
    • Line 608: warning: cyclomatic complexity 17 of function htmlScrapeDefault() is high (> 15) (gocyclo)
    • Line 1478: warning: cyclomatic complexity 16 of function htmlScrapeKraken() is high (> 15) (gocyclo)
    • Line 904: warning: cyclomatic complexity 16 of function htmlScrapePoloniex() is high (> 15) (gocyclo)
    • gocryptotrader/engine/syncer.go
    • Line 288: warning: cyclomatic complexity 49 of function (*ExchangeCurrencyPairSyncer).worker() is high (> 15) (gocyclo)
    • Line 503: warning: cyclomatic complexity 25 of function (*ExchangeCurrencyPairSyncer).Start() is high (> 15) (gocyclo)
    • Line 197: warning: cyclomatic complexity 25 of function (*ExchangeCurrencyPairSyncer).update() is high (> 15) (gocyclo)
    • gocryptotrader/exchanges/order/orders.go
    • Line 47: warning: cyclomatic complexity 58 of function (*Detail).UpdateOrderFromDetail() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 58 of function (*Detail).UpdateOrderFromModify() is high (> 15) (gocyclo)
    • Line 625: warning: cyclomatic complexity 16 of function StringToOrderStatus() is high (> 15) (gocyclo)
    • gocryptotrader/exchanges/exchange.go
    • Line 828: warning: cyclomatic complexity 24 of function (*Base).FormatWithdrawPermissions() is high (> 15) (gocyclo)
    • Line 605: warning: cyclomatic complexity 16 of function (*Base).ValidateAPICredentials() is high (> 15) (gocyclo)
    • gocryptotrader/exchanges/coinut/coinut_wrapper.go
    • Line 747: warning: cyclomatic complexity 21 of function (*COINUT).GetActiveOrders() is high (> 15) (gocyclo)
    • Line 631: warning: cyclomatic complexity 19 of function (*COINUT).CancelAllOrders() is high (> 15) (gocyclo)
    • Line 859: warning: cyclomatic complexity 19 of function (*COINUT).GetOrderHistory() is high (> 15) (gocyclo)

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!