Preparing report...

Report for github.com/ebiiim/btcgw

A+    Excellent!    Found 8 issues across 36 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!


gocyclo97%

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.


golint80%

Golint is a linter for Go source code.

    • btcgw/api/var.go
    • Line 9: warning: exported var PrettifyResponseJSON should have comment or be unexported (golint)
    • Line 11: warning: exported function WriteJSON should have comment or be unexported (golint)
    • Line 22: warning: exported var ErrInvalidRequestBody should have comment or be unexported (golint)
    • btcgw/btc/wallet.go
    • Line 32: warning: exported type Wallet should have comment or be unexported (golint)
    • Line 51: warning: exported type DocstoreWallet should have comment or be unexported (golint)
    • Line 140: warning: exported method DocstoreWallet.Close should have comment or be unexported (golint)
    • Line 150: warning: exported method DocstoreWallet.NextUTXO should have comment or be unexported (golint)
    • Line 162: warning: exported method DocstoreWallet.PeekNextUTXO should have comment or be unexported (golint)
    • Line 170: warning: exported method DocstoreWallet.AddUTXO should have comment or be unexported (golint)
    • btcgw/gw/gw.go
    • Line 57: warning: exported type GatewayImpl should have comment or be unexported (golint)
    • Line 95: warning: exported method GatewayImpl.RegisterTransaction should have comment or be unexported (golint)
    • Line 125: warning: exported method GatewayImpl.StoreRecord should have comment or be unexported (golint)
    • Line 138: warning: exported method GatewayImpl.GetRecord should have comment or be unexported (golint)
    • Line 146: warning: exported method GatewayImpl.RefreshRecord should have comment or be unexported (golint)
    • btcgw/store/docstore.go
    • Line 32: warning: exported type Docstore should have comment or be unexported (golint)
    • Line 41: warning: exported function NewDocstore should have comment or be unexported (golint)
    • Line 79: warning: exported method Docstore.PutEntity should have comment or be unexported (golint)
    • Line 89: warning: exported method Docstore.GetEntity should have comment or be unexported (golint)
    • Line 122: warning: exported method Docstore.Put should have comment or be unexported (golint)
    • Line 130: warning: exported method Docstore.Get should have comment or be unexported (golint)
    • Line 140: warning: exported method Docstore.UpdateConfirmations should have comment or be unexported (golint)
    • Line 151: warning: exported method Docstore.UpdateBBc1DomainName should have comment or be unexported (golint)
    • Line 162: warning: exported method Docstore.UpdateNote should have comment or be unexported (golint)
    • btcgw/api/anchor-api.go
    • Line 25: warning: exported var AnchorHandlerFromMux should have comment or be unexported (golint)
    • Line 27: warning: comment on exported type GatewayService should be of the form "GatewayService ..." (with optional leading article) (golint)
    • Line 35: warning: exported function NewGatewayService should have comment or be unexported (golint)
    • Line 55: warning: exported method GatewayService.GetAnchorsDomainsDomainDigestsDigest should have comment or be unexported (golint)
    • Line 74: warning: exported method GatewayService.PatchAnchorsDomainsDomainDigestsDigest should have comment or be unexported (golint)
    • Line 94: warning: exported method GatewayService.PostAnchorsDomainsDomainDigestsDigest should have comment or be unexported (golint)
    • Line 160: warning: exported method GatewayService.Close should have comment or be unexported (golint)
    • btcgw/api/apikey-api.go
    • Line 20: warning: exported var APIKeyHandlerFromMux should have comment or be unexported (golint)
    • Line 22: warning: exported type APIKeyService should have comment or be unexported (golint)
    • Line 28: warning: exported function NewAPIKeyService should have comment or be unexported (golint)
    • Line 47: warning: exported method APIKeyService.PostApikeysCreate should have comment or be unexported (golint)
    • Line 66: warning: exported method APIKeyService.PostApikeysDelete should have comment or be unexported (golint)
    • Line 93: warning: exported method APIKeyService.Close should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!