Preparing report...

Report for github.com/strongo/bots-api-telegram

A    Great!    Found 4 issues across 10 files

Tweet

gofmt80%

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


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!


golint90%

Golint is a linter for Go source code.


gocyclo70%

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.

    • bots-api-telegram/types_ffjson.go
    • Line 13718: warning: cyclomatic complexity 273 of function (*Message).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 10186: warning: cyclomatic complexity 113 of function (*InlineQueryResultVideo).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 9437: warning: cyclomatic complexity 106 of function (*InlineQueryResultPhoto).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6722: warning: cyclomatic complexity 105 of function (*InlineQueryResultDocument).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 5465: warning: cyclomatic complexity 101 of function (*InlineQueryResultArticle).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 8109: warning: cyclomatic complexity 95 of function (*InlineQueryResultLocation).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 8759: warning: cyclomatic complexity 92 of function (*InlineQueryResultMPEG4GIF).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 7465: warning: cyclomatic complexity 92 of function (*InlineQueryResultGIF).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 13154: warning: cyclomatic complexity 87 of function (*Message).MarshalJSONBuf() is high (> 15) (gocyclo)
    • Line 17372: warning: cyclomatic complexity 80 of function (*Update).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6150: warning: cyclomatic complexity 79 of function (*InlineQueryResultAudio).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 18951: warning: cyclomatic complexity 78 of function (*Video).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 10943: warning: cyclomatic complexity 72 of function (*InlineQueryResultVoice).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 458: warning: cyclomatic complexity 69 of function (*Audio).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1837: warning: cyclomatic complexity 69 of function (*ChatMember).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4306: warning: cyclomatic complexity 69 of function (*InlineKeyboardButton).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1376: warning: cyclomatic complexity 68 of function (*Chat).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 938: warning: cyclomatic complexity 67 of function (*CallbackQuery).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 12253: warning: cyclomatic complexity 64 of function (*InputVenueMessageContent).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 16870: warning: cyclomatic complexity 63 of function (*Sticker).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 17907: warning: cyclomatic complexity 61 of function (*User).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4997: warning: cyclomatic complexity 61 of function (*InlineQuery).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2301: warning: cyclomatic complexity 61 of function (*ChosenInlineResult).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3070: warning: cyclomatic complexity 60 of function (*Document).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 16484: warning: cyclomatic complexity 59 of function (*ReplyKeyboardMarkup).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 92: warning: cyclomatic complexity 57 of function (*APIResponse).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 15458: warning: cyclomatic complexity 56 of function (*MessageEntity).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 15812: warning: cyclomatic complexity 56 of function (*PhotoSize).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2695: warning: cyclomatic complexity 55 of function (*Contact).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 19443: warning: cyclomatic complexity 55 of function (*Voice).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 18576: warning: cyclomatic complexity 53 of function (*Venue).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 12642: warning: cyclomatic complexity 50 of function (*KeyboardButton).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 11940: warning: cyclomatic complexity 49 of function (*InputTextMessageContent).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 11397: warning: cyclomatic complexity 47 of function (*InputContactMessageContent).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3455: warning: cyclomatic complexity 46 of function (*File).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 16161: warning: cyclomatic complexity 44 of function (*ReplyKeyboardHide).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3750: warning: cyclomatic complexity 44 of function (*ForceReply).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 11683: warning: cyclomatic complexity 43 of function (*InputLocationMessageContent).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 12943: warning: cyclomatic complexity 43 of function (*Location).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4011: warning: cyclomatic complexity 41 of function (*GroupChat).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 18310: warning: cyclomatic complexity 40 of function (*UserProfilePhotos).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4759: warning: cyclomatic complexity 32 of function (*InlineKeyboardMarkup).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 17215: warning: cyclomatic complexity 16 of function (*Update).MarshalJSONBuf() is high (> 15) (gocyclo)
    • bots-api-telegram/configs_ffjson.go
    • Line 584: warning: cyclomatic complexity 119 of function (*AudioConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 12315: warning: cyclomatic complexity 112 of function (*VideoConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 13083: warning: cyclomatic complexity 105 of function (*VoiceConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 9639: warning: cyclomatic complexity 104 of function (*PhotoConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 11627: warning: cyclomatic complexity 100 of function (*VenueConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 10354: warning: cyclomatic complexity 97 of function (*StickerConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2122: warning: cyclomatic complexity 97 of function (*BaseFile).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4387: warning: cyclomatic complexity 97 of function (*DocumentConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 9042: warning: cyclomatic complexity 84 of function (*MessageConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 7222: warning: cyclomatic complexity 84 of function (*ForwardConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 7799: warning: cyclomatic complexity 83 of function (*InlineConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3543: warning: cyclomatic complexity 83 of function (*ContactConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 8505: warning: cyclomatic complexity 79 of function (*LocationConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 5702: warning: cyclomatic complexity 70 of function (*EditMessageTextConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 2763: warning: cyclomatic complexity 69 of function (*ChatActionConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 105: warning: cyclomatic complexity 63 of function (*AnswerCallbackQueryConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1352: warning: cyclomatic complexity 62 of function (*BaseChat).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 13758: warning: cyclomatic complexity 61 of function (*WebhookConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 5013: warning: cyclomatic complexity 53 of function (*EditMessageCaptionConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 11257: warning: cyclomatic complexity 50 of function (*UserProfilePhotosConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 10953: warning: cyclomatic complexity 50 of function (*UpdateConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 3189: warning: cyclomatic complexity 49 of function (*ChatMemberConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 5367: warning: cyclomatic complexity 47 of function (*EditMessageReplyMarkupConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6878: warning: cyclomatic complexity 47 of function (*FileReader).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 1756: warning: cyclomatic complexity 47 of function (*BaseEdit).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 14135: warning: cyclomatic complexity 42 of function (*chatEdit).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 4057: warning: cyclomatic complexity 42 of function (*DeleteMessage).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6427: warning: cyclomatic complexity 41 of function (*FileBytes).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6668: warning: cyclomatic complexity 33 of function (*FileConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 14380: warning: cyclomatic complexity 33 of function (*chatMethod).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6260: warning: cyclomatic complexity 26 of function (*ExportChatInviteLink).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 6115: warning: cyclomatic complexity 26 of function (*ErrAPIForbidden).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)
    • Line 8294: warning: cyclomatic complexity 26 of function (*LeaveChatConfig).UnmarshalJSONFFLexer() is high (> 15) (gocyclo)

ineffassign80%

IneffAssign detects ineffectual assignments in Go code.

    • bots-api-telegram/types_ffjson.go
    • Line 302: warning: ineffectual assignment to state (ineffassign)
    • Line 1171: warning: ineffectual assignment to state (ineffassign)
    • Line 1198: warning: ineffectual assignment to state (ineffassign)
    • Line 2520: warning: ineffectual assignment to state (ineffassign)
    • Line 2547: warning: ineffectual assignment to state (ineffassign)
    • Line 3283: warning: ineffectual assignment to state (ineffassign)
    • Line 5216: warning: ineffectual assignment to state (ineffassign)
    • Line 5243: warning: ineffectual assignment to state (ineffassign)
    • Line 5843: warning: ineffectual assignment to state (ineffassign)
    • Line 6545: warning: ineffectual assignment to state (ineffassign)
    • Line 7198: warning: ineffectual assignment to state (ineffassign)
    • Line 7944: warning: ineffectual assignment to state (ineffassign)
    • Line 8507: warning: ineffectual assignment to state (ineffassign)
    • Line 9238: warning: ineffectual assignment to state (ineffassign)
    • Line 10002: warning: ineffectual assignment to state (ineffassign)
    • Line 10795: warning: ineffectual assignment to state (ineffassign)
    • Line 11295: warning: ineffectual assignment to state (ineffassign)
    • Line 14346: warning: ineffectual assignment to state (ineffassign)
    • Line 14403: warning: ineffectual assignment to state (ineffassign)
    • Line 14430: warning: ineffectual assignment to state (ineffassign)
    • Line 14487: warning: ineffectual assignment to state (ineffassign)
    • Line 14559: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 14575: warning: ineffectual assignment to state (ineffassign)
    • Line 14609: warning: ineffectual assignment to state (ineffassign)
    • Line 14636: warning: ineffectual assignment to state (ineffassign)
    • Line 14682: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 14698: warning: ineffectual assignment to state (ineffassign)
    • Line 14732: warning: ineffectual assignment to state (ineffassign)
    • Line 14759: warning: ineffectual assignment to state (ineffassign)
    • Line 14786: warning: ineffectual assignment to state (ineffassign)
    • Line 14839: warning: ineffectual assignment to state (ineffassign)
    • Line 14866: warning: ineffectual assignment to state (ineffassign)
    • Line 14893: warning: ineffectual assignment to state (ineffassign)
    • Line 14920: warning: ineffectual assignment to state (ineffassign)
    • Line 14947: warning: ineffectual assignment to state (ineffassign)
    • Line 14993: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 15009: warning: ineffectual assignment to state (ineffassign)
    • Line 15043: warning: ineffectual assignment to state (ineffassign)
    • Line 15115: warning: ineffectual assignment to wantVal (ineffassign)
    • Line 15131: warning: ineffectual assignment to state (ineffassign)
    • Line 15365: warning: ineffectual assignment to state (ineffassign)
    • Line 17146: warning: ineffectual assignment to state (ineffassign)
    • Line 17637: warning: ineffectual assignment to state (ineffassign)
    • Line 17664: warning: ineffectual assignment to state (ineffassign)
    • Line 17691: warning: ineffectual assignment to state (ineffassign)
    • Line 17718: warning: ineffectual assignment to state (ineffassign)
    • Line 17745: warning: ineffectual assignment to state (ineffassign)
    • Line 17772: warning: ineffectual assignment to state (ineffassign)
    • Line 17799: warning: ineffectual assignment to state (ineffassign)
    • Line 18746: warning: ineffectual assignment to state (ineffassign)
    • Line 19291: warning: ineffectual assignment to state (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!