Preparing report...

Report for github.com/mailchain/mailchain

(v0.1.0)

A+    Excellent!    Found 47 issues across 133 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!


gocyclo100%

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.

No problems detected. Good job!


golint64%

Golint is a linter for Go source code.

    • internal/pkg/chains/ethereum/signer.go
    • Line 27: warning: exported type SignerOptions should have comment or be unexported (golint)
    • Line 32: warning: exported function NewSigner should have comment or be unexported (golint)
    • Line 36: warning: exported type Signer should have comment or be unexported (golint)
    • Line 40: warning: exported method Signer.Sign should have comment or be unexported (golint)
    • internal/pkg/keystore/kdf/scrypt/options.go
    • Line 27: warning: exported type DeriveOpts should have comment or be unexported (golint)
    • Line 36: warning: exported method DeriveOpts.KDF should have comment or be unexported (golint)
    • Line 43: warning: exported function RandomSalt should have comment or be unexported (golint)
    • Line 51: warning: exported function DefaultDeriveOptions should have comment or be unexported (golint)
    • Line 65: warning: exported function FromEncryptedKey should have comment or be unexported (golint)
    • internal/pkg/clients/ethrpc/ethrpc.go
    • Line 30: warning: exported type Options should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 43: warning: exported type EthRPC2 should have comment or be unexported (golint)
    • Line 47: warning: exported method EthRPC2.Send should have comment or be unexported (golint)
    • internal/pkg/http/rest/spec/errors.go
    • Line 17: warning: comment on exported type ValidationError should be of the form "ValidationError ..." (with optional leading article) (golint)
    • Line 29: warning: comment on exported type NotFoundError should be of the form "NotFoundError ..." (with optional leading article) (golint)
    • internal/pkg/http/rest/errs/writer.go
    • Line 26: warning: comment on exported type ErrorWriter should be of the form "ErrorWriter ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported function JSONWriter should be of the form "JSONWriter ..." (golint)
    • internal/pkg/testutil/keys.go
    • Line 24: warning: exported var SofiaPrivateKey should have comment or be unexported (golint)
    • Line 25: warning: exported var SofiaPublicKey should have comment or be unexported (golint)
    • Line 26: warning: exported var CharlottePrivateKey should have comment or be unexported (golint)
    • Line 27: warning: exported var CharlottePublicKey should have comment or be unexported (golint)
    • internal/pkg/http/rest/messages/read/get.go
    • Line 67: warning: comment on exported type GetReadResponse should be of the form "GetReadResponse ..." (with optional leading article) (golint)
    • Line 73: warning: comment on exported type GetBody should be of the form "GetBody ..." (with optional leading article) (golint)
    • internal/mailchain/commands/serve.go
    • Line 39: warning: exported function CreateRouter should have comment or be unexported (golint)
    • Line 91: warning: exported function SetupFlags should have comment or be unexported (golint)
    • Line 110: warning: exported function CreateNegroni should have comment or be unexported (golint)
    • internal/pkg/encoding/consts.go
    • Line 23: warning: exported const ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const Ethereum should have comment (or a comment on this block) or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!