Preparing report...

Report for github.com/gericass/go-blockchain

B    Not bad!    Found 10 issues across 9 files

Tweet

gofmt77%

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!


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.


golint22%

Golint is a linter for Go source code.

    • go-blockchain/data/data.go
    • Line 3: warning: exported type Trans should have comment or be unexported (golint)
    • Line 11: warning: exported type Block should have comment or be unexported (golint)
    • Line 23: warning: exported type Node should have comment or be unexported (golint)
    • Line 31: warning: exported type TransList should have comment or be unexported (golint)
    • Line 35: warning: exported type BlockChain should have comment or be unexported (golint)
    • Line 39: warning: exported type NodeList should have comment or be unexported (golint)
    • Line 44: warning: exported var MyNode should have comment or be unexported (golint)
    • Line 46: warning: exported var AllTrans should have comment or be unexported (golint)
    • Line 47: warning: exported var AllBlock should have comment or be unexported (golint)
    • Line 48: warning: exported var AllNode should have comment or be unexported (golint)
    • Line 50: warning: exported var PortNum should have comment or be unexported (golint)
    • Line 51: warning: exported var Dtype should have comment or be unexported (golint)
    • Line 53: warning: exported var TransSolo should have comment or be unexported (golint)
    • Line 54: warning: exported var BlockSolo should have comment or be unexported (golint)
    • Line 55: warning: exported var NodeSolo 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!