Preparing report...

Report for github.com/skycoin/skycoin

(v0.27.1)

A    Great!    Found 78 issues across 319 files

Tweet

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!


gofmt90%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo83%

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.

    • src/visor/blockchain.go
    • Line 536: warning: cyclomatic complexity 32 of function (Blockchain).processTransactions() is high (> 15) (gocyclo)
    • Line 712: warning: cyclomatic complexity 23 of function (*Blockchain).WalkChain() is high (> 15) (gocyclo)
    • src/cli/address_gen.go
    • Line 200: warning: cyclomatic complexity 25 of function fiberAddressGenCmd() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 22 of function addressGenCmd() is high (> 15) (gocyclo)
    • src/cipher/encoder/encoder.go
    • Line 693: warning: cyclomatic complexity 67 of function (*Decoder).value() is high (> 15) (gocyclo)
    • Line 928: warning: cyclomatic complexity 33 of function (*Encoder).value() is high (> 15) (gocyclo)
    • Line 330: warning: cyclomatic complexity 28 of function datasizeWrite() is high (> 15) (gocyclo)
    • Line 116: warning: cyclomatic complexity 20 of function DeserializeAtomic() is high (> 15) (gocyclo)
    • src/api/blockchain.go
    • Line 209: warning: cyclomatic complexity 27 of function blocksHandler() is high (> 15) (gocyclo)
    • Line 94: warning: cyclomatic complexity 22 of function blockHandler() is high (> 15) (gocyclo)
    • src/visor/db.go
    • Line 326: warning: cyclomatic complexity 16 of function verifyDBSkyencoderSafe() is high (> 15) (gocyclo)
    • src/api/spend.go
    • Line 288: warning: cyclomatic complexity 33 of function (createTransactionRequest).Validate() is high (> 15) (gocyclo)
    • Line 651: warning: cyclomatic complexity 18 of function walletSignTransactionHandler() is high (> 15) (gocyclo)
    • src/transaction/create.go
    • Line 45: warning: cyclomatic complexity 53 of function create() is high (> 15) (gocyclo)
    • Line 405: warning: cyclomatic complexity 28 of function VerifyCreatedInvariants() is high (> 15) (gocyclo)
    • src/consensus/blockstat.go
    • Line 471: warning: cyclomatic complexity 21 of function (*BlockStatQueue).try_append_to_BlockStatQueue() is high (> 15) (gocyclo)
    • Line 181: warning: cyclomatic complexity 19 of function (*BlockStat).try_add_hash_and_sig() is high (> 15) (gocyclo)
    • src/visor/visor.go
    • Line 1919: warning: cyclomatic complexity 20 of function (Visor).GetBalanceOfAddresses() is high (> 15) (gocyclo)
    • Line 2062: warning: cyclomatic complexity 18 of function (*Visor).VerifyTxnVerbose() is high (> 15) (gocyclo)
    • src/api/transaction.go
    • Line 86: warning: cyclomatic complexity 17 of function transactionHandler() is high (> 15) (gocyclo)
    • Line 607: warning: cyclomatic complexity 16 of function newCreatedTransactionFuzzy() is high (> 15) (gocyclo)

license0%

Checks whether your project has a LICENSE file.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!