Preparing report...

Report for github.com/Swipecoin/go-bip44

E    Urgent improvement needed    Found 7 issues across 7 files

Tweet

gofmt85%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet0%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

An error occurred while running this test (exit status 2)


golint0%

Golint is a linter for Go source code.

    • go-bip44/network.go
    • Line 8: warning: exported type Network should have comment or be unexported (golint)
    • Line 11: warning: exported const TESTNET3 should have comment (or a comment on this block) or be unexported (golint)
    • go-bip44/seed.go
    • Line 7: warning: exported type Mnemonic should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function NewMnemonic should be of the form "NewMnemonic ..." (golint)
    • Line 24: warning: exported function ParseMnemonic should have comment or be unexported (golint)
    • Line 28: warning: exported method Mnemonic.NewSeed should have comment or be unexported (golint)
    • go-bip44/util.go
    • Line 8: warning: exported type URIParams should have comment or be unexported (golint)
    • Line 15: warning: exported function EncodeURI should have comment or be unexported (golint)
    • go-bip44/account_key.go
    • Line 7: warning: exported type AccountKey should have comment or be unexported (golint)
    • Line 12: warning: exported function NewAccountKeyFromXPubKey should have comment or be unexported (golint)
    • Line 24: warning: exported method AccountKey.DeriveP2PKAddress should have comment or be unexported (golint)
    • go-bip44/constants.go
    • Line 3: warning: exported type ChangeType should have comment or be unexported (golint)
    • Line 6: warning: exported const ExternalChangeType should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported const HardenedKeyZeroIndex should have comment or be unexported (golint)
    • Line 12: warning: exported type Purpose should have comment or be unexported (golint)
    • Line 15: warning: exported const BIP44Purpose should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type CoinType should have comment or be unexported (golint)
    • Line 21: warning: exported const BitcoinCoinType should have comment (or a comment on this block) or be unexported (golint)
    • go-bip44/key.go
    • Line 8: warning: exported type ExtendedKey should have comment or be unexported (golint)
    • Line 12: warning: exported function NewKeyFromSeedHex should have comment or be unexported (golint)
    • Line 23: warning: exported function NewKeyFromSeedBytes should have comment or be unexported (golint)
    • Line 42: warning: exported method ExtendedKey.BIP44AccountKey should have comment or be unexported (golint)
    • go-bip44/model.go
    • Line 3: warning: exported type HDStartPath should have comment or be unexported (golint)
    • Line 9: warning: exported type HDEndPath should have comment or be unexported (golint)
    • Line 14: warning: exported type Address should have comment or be unexported (golint)

gocyclo0%

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.

An error occurred while running this test (fork/exec /home/shawn/mygo/bin/gometalinter: cannot allocate memory)


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!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)