Preparing report...

Report for code.dumpstack.io/lib/cryptocurrency

(v1.5.3)

A+    Excellent!    Found 6 issues across 13 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!


golint53%

Golint is a linter for Go source code.

    • bitcoin/bitcoin.go
    • Line 22: warning: exported var Testnet should have comment or be unexported (golint)
    • Line 69: warning: exported function GenWallet should have comment or be unexported (golint)
    • Line 105: warning: exported function GetAddress should have comment or be unexported (golint)
    • Line 156: warning: exported function Balance should have comment or be unexported (golint)
    • Line 164: warning: exported function BalanceSatoshi should have comment or be unexported (golint)
    • Line 176: warning: exported function RawBalance should have comment or be unexported (golint)
    • Line 205: warning: exported function Validate should have comment or be unexported (golint)
    • Line 272: warning: exported function SendSatoshi should have comment or be unexported (golint)
    • Line 279: warning: exported function Send should have comment or be unexported (golint)
    • Line 283: warning: exported function SendAll should have comment or be unexported (golint)
    • cryptocurrency.go
    • Line 16: warning: exported type Cryptocurrency should have comment or be unexported (golint)
    • Line 19: warning: exported const Bitcoin should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported method Cryptocurrency.MarshalText should have comment or be unexported (golint)
    • Line 38: warning: exported method Cryptocurrency.UnmarshalText should have comment or be unexported (golint)
    • Line 56: warning: exported function FromSymbol should have comment or be unexported (golint)
    • ethereum/ethereum.go
    • Line 22: warning: exported var Testnet should have comment or be unexported (golint)
    • Line 23: warning: exported var InfuraAPIKey should have comment or be unexported (golint)
    • Line 47: warning: exported function GenWallet should have comment or be unexported (golint)
    • Line 57: warning: exported function GetAddress should have comment or be unexported (golint)
    • Line 67: warning: exported function BalanceWei should have comment or be unexported (golint)
    • Line 83: warning: exported function Balance should have comment or be unexported (golint)
    • Line 95: warning: exported function Validate should have comment or be unexported (golint)
    • Line 101: warning: exported function UnconfirmedBalanceWei should have comment or be unexported (golint)
    • Line 115: warning: exported function SendWei should have comment or be unexported (golint)
    • Line 164: warning: exported function Send should have comment or be unexported (golint)
    • Line 171: warning: exported function SendAll should have comment or be unexported (golint)
    • cardano/cardano.go
    • Line 98: warning: exported function SendAll should have comment or be unexported (golint)
    • Line 110: warning: exported function Send should have comment or be unexported (golint)
    • Line 117: warning: exported function SendLovelace should have comment or be unexported (golint)
    • Line 225: warning: exported function Validate should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!