Preparing report...

Report for github.com/Planxnx/defi-tx-kit

A    Great!    Found 10 issues across 9 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!


golint0%

Golint is a linter for Go source code.

    • defi-tx-kit/package/enums/pair.go
    • Line 3: warning: exported type PairEvent should have comment or be unexported (golint)
    • Line 6: warning: exported const PairEventSwap should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported method PairEvent.ToString should have comment or be unexported (golint)
    • Line 16: warning: exported type SwapTxSide should have comment or be unexported (golint)
    • Line 19: warning: exported const SwapBuy should have comment (or a comment on this block) or be unexported (golint)
    • defi-tx-kit/package/txfeeder/tx_pair.go
    • Line 15: warning: exported type SwapHandlers should have comment or be unexported (golint)
    • Line 17: warning: exported type SyncHandlers should have comment or be unexported (golint)
    • Line 19: warning: exported type SwapAndSyncHandlers should have comment or be unexported (golint)
    • Line 24: warning: exported method TxFeeder.AddSwapLogsHandler should have comment or be unexported (golint)
    • Line 58: warning: exported method TxFeeder.AddSyncLogsHandler should have comment or be unexported (golint)
    • Line 92: warning: exported method TxFeeder.AddSwapAndSyncLogsHandler should have comment or be unexported (golint)
    • defi-tx-kit/package/txfeeder/tx_token.go
    • Line 15: warning: exported type TransferHandlers should have comment or be unexported (golint)
    • Line 17: warning: exported type ApprovalHandlers should have comment or be unexported (golint)
    • Line 19: warning: exported method TxFeeder.AddTransferLogsHandler should have comment or be unexported (golint)
    • Line 53: warning: exported method TxFeeder.AddApprovalLogsHandler should have comment or be unexported (golint)
    • defi-tx-kit/package/utils/chain.go
    • Line 16: warning: exported type Chain should have comment or be unexported (golint)
    • Line 30: warning: exported var ChainEthereum should have comment or be unexported (golint)
    • Line 67: warning: exported method Chain.ID should have comment or be unexported (golint)
    • Line 71: warning: exported method Chain.Name should have comment or be unexported (golint)
    • Line 75: warning: exported method Chain.Currency should have comment or be unexported (golint)
    • Line 79: warning: exported method Chain.GetClient should have comment or be unexported (golint)
    • Line 89: warning: exported method Chain.GetWSClient should have comment or be unexported (golint)
    • defi-tx-kit/package/utils/token.go
    • Line 13: warning: exported function TokenParseTransfer should have comment or be unexported (golint)
    • Line 22: warning: exported function TokenParseApproval should have comment or be unexported (golint)
    • Line 31: warning: exported function ConvertToDecimals should have comment or be unexported (golint)
    • Line 37: warning: exported function ConvertFromDecimals should have comment or be unexported (golint)
    • defi-tx-kit/package/enums/token.go
    • Line 3: warning: exported type TokenEvent should have comment or be unexported (golint)
    • Line 6: warning: exported const TokenEventTransfer should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported method TokenEvent.ToString should have comment or be unexported (golint)
    • Line 15: warning: exported const DECIMALS_WEI should have comment (or a comment on this block) or be unexported (golint)
    • defi-tx-kit/package/txfeeder/txfeeder.go
    • Line 15: warning: exported type LogsHandler should have comment or be unexported (golint)
    • Line 17: warning: exported type TxFeeder should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 34: warning: exported method TxFeeder.Run should have comment or be unexported (golint)
    • Line 49: warning: exported method TxFeeder.AddLogsListenr should have comment or be unexported (golint)
    • Line 69: warning: exported method TxFeeder.Close should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign66%

IneffAssign detects ineffectual assignments in Go code.

    • defi-tx-kit/package/utils/abi.go
    • Line 7: warning: no required module provides package github.com/Planxnx/defi-tx-tools/package/contract; to add it: (ineffassign)
    • Line 7: warning: could not import github.com/Planxnx/defi-tx-tools/package/contract (invalid package name: "") (ineffassign)
    • defi-tx-kit/package/txfeeder/tx_pair.go
    • Line 6: warning: no required module provides package github.com/Planxnx/defi-tx-tools/package/contract; to add it: (ineffassign)
    • Line 6: warning: could not import github.com/Planxnx/defi-tx-tools/package/contract (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!