Preparing report...

Report for github.com/codingpeasant/blocace

A+    Excellent!    Found 11 issues across 21 files

Tweet

gofmt95%

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!


gocyclo85%

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.


golint76%

Golint is a linter for Go source code.

    • blocace/blockchain/utils.go
    • Line 16: warning: exported const BlocksBucket should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported function IsValidSig should be of the form "IsValidSig ..." (golint)
    • Line 49: warning: exported function IsValidAddress should have comment or be unexported (golint)
    • blocace/pool/queue.go
    • Line 10: warning: exported type Queue should have comment or be unexported (golint)
    • Line 21: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method Queue.Clean should be of the form "Clean ..." (golint)
    • Line 45: warning: comment on exported method Queue.Length should be of the form "Length ..." (golint)
    • Line 85: warning: comment on exported method Queue.Append should be of the form "Append ..." (golint)
    • Line 119: warning: comment on exported method Queue.Prepend should be of the form "Prepend ..." (golint)
    • Line 143: warning: comment on exported method Queue.Front should be of the form "Front ..." (golint)
    • Line 155: warning: comment on exported method Queue.Back should be of the form "Back ..." (golint)
    • Line 211: warning: comment on exported method Queue.Remove should be of the form "Remove ..." (golint)
    • blocace/p2p/p2p.go
    • Line 25: warning: exported var DefaultPort should have comment or be unexported (golint)
    • Line 26: warning: exported var PingIntervalInMs should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.


misspell85%

Misspell Finds commonly misspelled English words