Preparing report...

Report for github.com/xDWart/signum-explorer-bot

A    Great!    Found 31 issues across 34 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!


gocyclo94%

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.


golint8%

Golint is a linter for Go source code.

    • signum-explorer-bot/internal/api/signum_api/get_account_blocks.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 11: warning: exported type AccountBlocks should have comment or be unexported (golint)
    • Line 22: warning: exported type BlocksCache should have comment or be unexported (golint)
    • Line 44: warning: exported method Client.GetAccountBlocks should have comment or be unexported (golint)
    • Line 73: warning: exported method Client.GetLastAccountBlock should have comment or be unexported (golint)
    • signum-explorer-bot/internal/users/calculator/calculator.go
    • Line 10: warning: exported type Calculator should have comment or be unexported (golint)
    • Line 17: warning: exported function NewCalculator should have comment or be unexported (golint)
    • Line 29: warning: exported type CalcResult should have comment or be unexported (golint)
    • Line 41: warning: exported method Calculator.Calculate should have comment or be unexported (golint)
    • Line 65: warning: exported type CalcReinvestmentResult should have comment or be unexported (golint)
    • Line 72: warning: exported method Calculator.CalculateReinvestment should have comment or be unexported (golint)
    • signum-explorer-bot/internal/users/user.go
    • Line 15: warning: exported type User should have comment or be unexported (golint)
    • Line 29: warning: exported type StateType should have comment or be unexported (golint)
    • Line 32: warning: exported const NIL_STATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported method User.ResetState should have comment or be unexported (golint)
    • Line 43: warning: exported method User.GetDbAccount should have comment or be unexported (golint)
    • Line 52: warning: exported method User.GetMainMenu should have comment or be unexported (golint)
    • signum-explorer-bot/internal/common/chain_time.go
    • Line 5: warning: exported const GENESIS_BLOCK_TIME should have comment or be unexported (golint)
    • Line 7: warning: exported function ChainTimeToTime should have comment or be unexported (golint)
    • Line 11: warning: exported function FormatChainTimeToStringUTC should have comment or be unexported (golint)
    • signum-explorer-bot/internal/prices/prices.go
    • Line 9: warning: exported type PriceManager should have comment or be unexported (golint)
    • Line 13: warning: exported function NewPricesManager should have comment or be unexported (golint)
    • Line 17: warning: exported method PriceManager.GetActualPrices should have comment or be unexported (golint)
    • signum-explorer-bot/internal/api/signum_api/get_account.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 11: warning: exported type Account should have comment or be unexported (golint)
    • Line 35: warning: exported type AccountCache should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.GetAccount should have comment or be unexported (golint)
    • Line 88: warning: exported method Client.InvalidateCacheAndGetAccount should have comment or be unexported (golint)
    • signum-explorer-bot/internal/init.go
    • Line 19: warning: exported type TelegramBot should have comment or be unexported (golint)
    • Line 32: warning: exported function InitTelegramBot should have comment or be unexported (golint)
    • Line 95: warning: exported method TelegramBot.Shutdown should have comment or be unexported (golint)
    • Line 107: warning: exported method TelegramBot.Wait should have comment or be unexported (golint)
    • signum-explorer-bot/internal/notifier/notifier.go
    • Line 10: warning: exported type Notifier should have comment or be unexported (golint)
    • Line 17: warning: exported type NotifierMessage should have comment or be unexported (golint)
    • Line 22: warning: exported type MonitoredAccount should have comment or be unexported (golint)
    • Line 27: warning: exported function NewNotifier should have comment or be unexported (golint)
    • signum-explorer-bot/internal/send.go
    • Line 9: warning: exported method TelegramBot.SendAnswer should have comment or be unexported (golint)
    • Line 32: warning: exported method TelegramBot.EditMessageText should have comment or be unexported (golint)
    • Line 41: warning: exported method TelegramBot.EditInlineKeyboard should have comment or be unexported (golint)
    • Line 50: warning: exported method TelegramBot.SendMessage should have comment or be unexported (golint)
    • Line 63: warning: exported method TelegramBot.ConfigureAndSend should have comment or be unexported (golint)
    • Line 81: warning: exported method TelegramBot.Send should have comment or be unexported (golint)
    • signum-explorer-bot/internal/config/const.go
    • Line 3: warning: exported const NAME should have comment or be unexported (golint)
    • Line 4: warning: exported const VERSION should have comment or be unexported (golint)
    • Line 6: warning: exported const INSTRUCTION_TEXT should have comment or be unexported (golint)
    • Line 14: warning: exported const AUTHOR_TEXT should have comment or be unexported (golint)
    • Line 20: warning: exported const COMMAND_START should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const BUTTON_PRICES should have comment (or a comment on this block) or be unexported (golint)
    • signum-explorer-bot/internal/api/signum_api/get_account_transactions.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: exported type TransactionType should have comment or be unexported (golint)
    • Line 15: warning: exported const PAYMENT should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type TransactionSubType should have comment or be unexported (golint)
    • Line 28: warning: exported const ORDINARY_PAYMENT should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type AccountTransactions should have comment or be unexported (golint)
    • Line 76: warning: exported type RecipientsType should have comment or be unexported (golint)
    • Line 78: warning: exported method RecipientsType.FoundMyAmount should have comment or be unexported (golint)
    • Line 101: warning: exported type TransactionsCache should have comment or be unexported (golint)
    • Line 162: warning: exported method Client.GetAccountOrdinaryPaymentTransactions should have comment or be unexported (golint)
    • Line 166: warning: exported method Client.GetAccountMultiOutTransactions should have comment or be unexported (golint)
    • Line 170: warning: exported method Client.GetAccountMultiOutSameTransactions should have comment or be unexported (golint)
    • Line 174: warning: exported method Client.GetAccountPaymentTransactions should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!