Preparing report...

Report for github.com/eeonevision/anychaindb

A+    Excellent!    Found 6 issues across 25 files

Tweet

gofmt96%

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!


gocyclo96%

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.


golint88%

Golint is a linter for Go source code.

    • anychaindb/crypto/key.go
    • Line 20: warning: exported var Curve should have comment or be unexported (golint)
    • Line 22: warning: exported type Key should have comment or be unexported (golint)
    • Line 27: warning: exported function CreateKeyPair should have comment or be unexported (golint)
    • Line 35: warning: exported function NewFromStrings should have comment or be unexported (golint)
    • Line 56: warning: exported method Key.GetPubString should have comment or be unexported (golint)
    • Line 61: warning: exported method Key.GetPrivString should have comment or be unexported (golint)
    • Line 66: warning: exported method Key.SetPubString should have comment or be unexported (golint)
    • Line 76: warning: exported method Key.SetPrivString should have comment or be unexported (golint)
    • Line 88: warning: exported method Key.Sign should have comment or be unexported (golint)
    • Line 101: warning: exported method Key.Verify should have comment or be unexported (golint)
    • anychaindb/transaction/transaction.go
    • Line 37: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 46: warning: exported type TransactionType should have comment or be unexported (golint)
    • Line 49: warning: exported const AccountAdd should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported method Transaction.FromBytes should have comment or be unexported (golint)
    • Line 58: warning: exported method Transaction.ToBytes should have comment or be unexported (golint)
    • Line 62: warning: exported method Transaction.Hash should have comment or be unexported (golint)
    • Line 74: warning: exported method Transaction.Sign should have comment or be unexported (golint)
    • Line 84: warning: exported method Transaction.Verify should have comment or be unexported (golint)
    • Line 89: warning: exported function New should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!