Preparing report...

Report for github.com/bitum-project/bitumdata

B    Not bad!    Found 74 issues across 176 files

Tweet

gofmt69%

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!


golint0%

Golint is a linter for Go source code.

An error occurred while running this test (exit status 3)


gocyclo77%

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.

    • bitumdata/exchanges/exchanges.go
    • Line 2616: warning: cyclomatic complexity 25 of function (*PoloniexExchange).processWsMessage() is high (> 15) (gocyclo)
    • Line 1946: warning: cyclomatic complexity 19 of function (*DragonExchange).Refresh() is high (> 15) (gocyclo)
    • Line 2744: warning: cyclomatic complexity 19 of function (*PoloniexExchange).Refresh() is high (> 15) (gocyclo)
    • Line 1600: warning: cyclomatic complexity 18 of function (*BittrexExchange).Refresh() is high (> 15) (gocyclo)
    • bitumdata/exchanges/bot.go
    • Line 389: warning: cyclomatic complexity 28 of function (*ExchangeBot).Start() is high (> 15) (gocyclo)
    • Line 257: warning: cyclomatic complexity 23 of function NewExchangeBot() is high (> 15) (gocyclo)
    • bitumdata/db/dbtypes/types.go
    • Line 1165: warning: cyclomatic complexity 19 of function MergeRowsRange() is high (> 15) (gocyclo)
    • Line 1327: warning: cyclomatic complexity 17 of function MergeRowsCompactRange() is high (> 15) (gocyclo)
    • bitumdata/db/bitumsqlite/apisource.go
    • Line 1428: warning: cyclomatic complexity 27 of function (*WiredDB).GetExplorerTx() is high (> 15) (gocyclo)
    • Line 1581: warning: cyclomatic complexity 22 of function (*WiredDB).GetExplorerAddress() is high (> 15) (gocyclo)
    • Line 1283: warning: cyclomatic complexity 17 of function (*WiredDB).GetExplorerBlock() is high (> 15) (gocyclo)
    • bitumdata/pubsub/pubsubhub.go
    • Line 187: warning: cyclomatic complexity 31 of function (*PubSubHub).receiveLoop() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 25 of function (*PubSubHub).sendLoop() is high (> 15) (gocyclo)
    • bitumdata/db/bitumpg/upgrades_legacy.go
    • Line 742: warning: cyclomatic complexity 89 of function (*ChainDB).handleUpgrades() is high (> 15) (gocyclo)
    • Line 378: warning: cyclomatic complexity 79 of function (*ChainDB).UpgradeTables() is high (> 15) (gocyclo)
    • Line 1227: warning: cyclomatic complexity 16 of function (*ChainDB).handleTxTypeHistogramUpgrade() is high (> 15) (gocyclo)
    • bitumdata/api/insight/apiroutes.go
    • Line 1048: warning: cyclomatic complexity 33 of function (*InsightApi).getAddressInfo() is high (> 15) (gocyclo)
    • Line 330: warning: cyclomatic complexity 29 of function (*InsightApi).getAddressesTxnOutput() is high (> 15) (gocyclo)
    • Line 545: warning: cyclomatic complexity 28 of function (*InsightApi).getTransactions() is high (> 15) (gocyclo)
    • Line 692: warning: cyclomatic complexity 27 of function (*InsightApi).getAddressesTxn() is high (> 15) (gocyclo)
    • bitumdata/db/bitumpg/pgblockchain.go
    • Line 498: warning: cyclomatic complexity 59 of function NewChainDBWithCancel() is high (> 15) (gocyclo)
    • Line 2191: warning: cyclomatic complexity 45 of function (*ChainDBRPC).AddressData() is high (> 15) (gocyclo)
    • Line 3672: warning: cyclomatic complexity 38 of function (*ChainDB).storeBlockTxnTree() is high (> 15) (gocyclo)
    • Line 3312: warning: cyclomatic complexity 19 of function (*ChainDB).StoreBlock() is high (> 15) (gocyclo)
    • Line 2092: warning: cyclomatic complexity 17 of function (*ChainDB).AddressHistory() is high (> 15) (gocyclo)
    • bitumdata/mempool/collector.go
    • Line 311: warning: cyclomatic complexity 17 of function ParseTxns() is high (> 15) (gocyclo)
    • Line 154: warning: cyclomatic complexity 16 of function (*MempoolDataCollector).Collect() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)