Preparing report...

Report for github.com/arthurkay/gopherchain

A    Great!    Found 9 issues across 9 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!


gocyclo88%

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.


golint11%

Golint is a linter for Go source code.

    • gopherchain/cli/index.go
    • Line 13: warning: exported type CommandLine should have comment or be unexported (golint)
    • Line 81: warning: exported method CommandLine.Run should have comment or be unexported (golint)
    • gopherchain/chain/block.go
    • Line 9: warning: exported type Block should have comment or be unexported (golint)
    • Line 16: warning: exported function HandleErr should have comment or be unexported (golint)
    • Line 22: warning: exported method Block.HasTransactions should have comment or be unexported (golint)
    • Line 34: warning: exported function CreateBlock should have comment or be unexported (golint)
    • Line 44: warning: exported function Genesis should have comment or be unexported (golint)
    • Line 48: warning: exported method Block.Serialize should have comment or be unexported (golint)
    • Line 59: warning: exported function Deserialize should have comment or be unexported (golint)
    • gopherchain/chain/blockchain.go
    • Line 25: warning: exported type BlockChainIterator should have comment or be unexported (golint)
    • Line 30: warning: exported type BlockChain should have comment or be unexported (golint)
    • Line 35: warning: exported function DBExists should have comment or be unexported (golint)
    • Line 42: warning: exported function ContinueBlockChain should have comment or be unexported (golint)
    • Line 69: warning: exported method BlockChain.FindUnspentTransactions should have comment or be unexported (golint)
    • Line 114: warning: exported method BlockChain.FindUTXO should have comment or be unexported (golint)
    • Line 127: warning: exported method BlockChain.FindSpendableOutputs should have comment or be unexported (golint)
    • Line 149: warning: exported function InitBlockChain should have comment or be unexported (golint)
    • Line 177: warning: exported method BlockChain.AddBlock should have comment or be unexported (golint)
    • Line 207: warning: exported method BlockChain.Iterator should have comment or be unexported (golint)
    • Line 212: warning: exported method BlockChainIterator.Next should have comment or be unexported (golint)
    • gopherchain/chain/proof.go
    • Line 16: warning: exported var Difficulty should have comment or be unexported (golint)
    • Line 25: warning: exported type ProofOfWork should have comment or be unexported (golint)
    • Line 30: warning: exported function NewProof should have comment or be unexported (golint)
    • Line 37: warning: exported function ToHex should have comment or be unexported (golint)
    • Line 46: warning: exported method ProofOfWork.InitData should have comment or be unexported (golint)
    • Line 57: warning: exported method ProofOfWork.Run should have comment or be unexported (golint)
    • Line 80: warning: exported method ProofOfWork.Validate should have comment or be unexported (golint)
    • gopherchain/chain/transactions.go
    • Line 11: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 17: warning: exported type TxOutput should have comment or be unexported (golint)
    • Line 22: warning: exported type TxInput should have comment or be unexported (golint)
    • Line 28: warning: exported method Transaction.SetID should have comment or be unexported (golint)
    • Line 40: warning: exported function CoinBaseTx should have comment or be unexported (golint)
    • Line 54: warning: exported method Transaction.IsCoinBase should have comment or be unexported (golint)
    • Line 58: warning: exported method TxOutput.CanBeUnlocked should have comment or be unexported (golint)
    • Line 62: warning: exported method TxInput.CanUnlock should have comment or be unexported (golint)
    • Line 66: warning: exported function NewTransaction 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!


misspell88%

Misspell Finds commonly misspelled English words