Preparing report...

Report for github.com/keyfuse/thresh-wallet

A+    Excellent!    Found 16 issues across 66 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!


golint80%

Golint is a linter for Go source code.

    • thresh-wallet/src/client/client.go
    • Line 17: warning: exported type Client should have comment or be unexported (golint)
    • Line 27: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.Start should have comment or be unexported (golint)
    • thresh-wallet/src/client/common.go
    • Line 21: warning: exported const TestNet should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported function PrintQueryOutput should have comment or be unexported (golint)
    • thresh-wallet/src/server/login.go
    • Line 13: warning: exported type LoginType should have comment or be unexported (golint)
    • Line 16: warning: exported const Unknow should have comment (or a comment on this block) or be unexported (golint)
    • thresh-wallet/src/server/wallet.go
    • Line 291: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 306: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • thresh-wallet/src/library/wallet.go
    • Line 288: warning: comment on exported type WalletSendFeesResponse should be of the form "WalletSendFeesResponse ..." (with optional leading article) (golint)
    • Line 338: warning: exported function APIWalletSend should have comment or be unexported (golint)
    • thresh-wallet/src/server/walletdb.go
    • Line 111: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 138: warning: exported method WalletDB.MasterPrvKey should have comment or be unexported (golint)
    • Line 226: warning: exported method WalletDB.StoreBackup should have comment or be unexported (golint)
    • Line 245: warning: exported method WalletDB.GetBackup should have comment or be unexported (golint)

gocyclo98%

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.


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!


misspell98%

Misspell Finds commonly misspelled English words