Preparing report...

Report for github.com/onrik/micha

A+    Excellent!    Found 5 issues across 15 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!


golint66%

Golint is a linter for Go source code.

    • micha/bot.go
    • Line 13: warning: exported const API_URL should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Response should have comment or be unexported (golint)
    • Line 198: warning: exported method Bot.GetWebhookInfo should have comment or be unexported (golint)
    • Line 205: warning: exported method Bot.SetWebhook should have comment or be unexported (golint)
    • Line 229: warning: exported method Bot.DeleteWebhook should have comment or be unexported (golint)
    • Line 233: warning: comment on exported method Bot.GetMe should be of the form "GetMe ..." (golint)
    • Line 242: warning: comment on exported method Bot.SendMessage should be of the form "SendMessage ..." (golint)
    • Line 258: warning: comment on exported method Bot.SendPhoto should be of the form "SendPhoto ..." (golint)
    • Line 268: warning: comment on exported method Bot.SendPhotoFile should be of the form "SendPhotoFile ..." (golint)
    • Line 288: warning: comment on exported method Bot.SendAudio should be of the form "SendAudio ..." (golint)
    • Line 298: warning: comment on exported method Bot.SendAudioFile should be of the form "SendAudioFile ..." (golint)
    • Line 318: warning: comment on exported method Bot.SendDocument should be of the form "SendDocument ..." (golint)
    • Line 328: warning: comment on exported method Bot.SendDocumentFile should be of the form "SendDocumentFile ..." (golint)
    • Line 348: warning: comment on exported method Bot.SendSticker should be of the form "SendSticker ..." (golint)
    • Line 358: warning: comment on exported method Bot.SendStickerFile should be of the form "SendStickerFile ..." (golint)
    • Line 378: warning: comment on exported method Bot.SendVideo should be of the form "SendVideo ..." (golint)
    • Line 388: warning: comment on exported method Bot.SendVideoFile should be of the form "SendVideoFile ..." (golint)
    • Line 408: warning: comment on exported method Bot.SendVoice should be of the form "SendVoice ..." (golint)
    • Line 418: warning: comment on exported method Bot.SendVoiceFile should be of the form "SendVoiceFile ..." (golint)
    • Line 440: warning: comment on exported method Bot.SendVideoNote should be of the form "SendVideoNote ..." (golint)
    • Line 450: warning: comment on exported method Bot.SendVideoNoteFile should be of the form "SendVideoNoteFile ..." (golint)
    • Line 470: warning: comment on exported method Bot.SendLocation should be of the form "SendLocation ..." (golint)
    • Line 480: warning: comment on exported method Bot.SendVenue should be of the form "SendVenue ..." (golint)
    • Line 490: warning: comment on exported method Bot.SendContact should be of the form "SendContact ..." (golint)
    • Line 500: warning: comment on exported method Bot.ForwardMessage should be of the form "ForwardMessage ..." (golint)
    • Line 515: warning: comment on exported method Bot.SendChatAction should be of the form "SendChatAction ..." (golint)
    • Line 526: warning: comment on exported method Bot.GetUserProfilePhotos should be of the form "GetUserProfilePhotos ..." (golint)
    • Line 545: warning: comment on exported method Bot.GetFile should be of the form "GetFile ..." (golint)
    • Line 559: warning: comment on exported method Bot.DownloadFileURL should be of the form "DownloadFileURL ..." (golint)
    • Line 564: warning: comment on exported method Bot.EditMessageText should be of the form "EditMessageText ..." (golint)
    • Line 582: warning: comment on exported method Bot.EditMessageCaption should be of the form "EditMessageCaption ..." (golint)
    • Line 599: warning: comment on exported method Bot.EditMessageReplyMarkup should be of the form "EditMessageReplyMarkup ..." (golint)
    • Line 614: warning: comment on exported method Bot.DeleteMessage should be of the form "DeleteMessage ..." (golint)
    • Line 631: warning: comment on exported method Bot.AnswerInlineQuery should be of the form "AnswerInlineQuery ..." (golint)
    • Line 645: warning: comment on exported method Bot.KickChatMember should be of the form "KickChatMember ..." (golint)
    • Line 657: warning: comment on exported method Bot.LeaveChat should be of the form "LeaveChat ..." (golint)
    • Line 666: warning: comment on exported method Bot.UnbanChatMember should be of the form "UnbanChatMember ..." (golint)
    • Line 678: warning: comment on exported method Bot.GetChat should be of the form "GetChat ..." (golint)
    • Line 690: warning: comment on exported method Bot.GetChatAdministrators should be of the form "GetChatAdministrators ..." (golint)
    • Line 703: warning: comment on exported method Bot.GetChatMembersCount should be of the form "GetChatMembersCount ..." (golint)
    • Line 715: warning: comment on exported method Bot.GetChatMember should be of the form "GetChatMember ..." (golint)
    • Line 728: warning: comment on exported method Bot.AnswerCallbackQuery should be of the form "AnswerCallbackQuery ..." (golint)
    • Line 736: warning: comment on exported method Bot.SendGame should be of the form "SendGame ..." (golint)
    • Line 753: warning: comment on exported method Bot.SetGameScore should be of the form "SetGameScore ..." (golint)
    • Line 770: warning: comment on exported method Bot.GetGameHighScores should be of the form "GetGameHighScores ..." (golint)
    • micha/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 10: warning: exported type Option should have comment or be unexported (golint)
    • Line 83: warning: comment on exported type SendStickerOptions should be of the form "SendStickerOptions ..." (with optional leading article) (golint)
    • Line 156: warning: comment on exported type SetGameScoreOptions should be of the form "SetGameScoreOptions ..." (with optional leading article) (golint)
    • Line 165: warning: comment on exported type GetGameHighScoresOptions should be of the form "GetGameHighScoresOptions ..." (with optional leading article) (golint)
    • Line 172: warning: comment on exported type EditMessageTextOptions should be of the form "EditMessageTextOptions ..." (with optional leading article) (golint)
    • Line 179: warning: comment on exported type EditMessageCationOptions should be of the form "EditMessageCationOptions ..." (with optional leading article) (golint)
    • Line 185: warning: comment on exported type AnswerCallbackQueryOptions should be of the form "AnswerCallbackQueryOptions ..." (with optional leading article) (golint)
    • Line 193: warning: comment on exported type AnswerInlineQueryOptions should be of the form "AnswerInlineQueryOptions ..." (with optional leading article) (golint)
    • Line 202: warning: comment on exported type SetWebhookOptions should be of the form "SetWebhookOptions ..." (with optional leading article) (golint)
    • micha/types.go
    • Line 4: warning: exported const PARSE_MODE_DEFAULT should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported type ParseMode should have comment or be unexported (golint)
    • Line 44: warning: exported type ChatType should have comment or be unexported (golint)
    • Line 45: warning: exported type ChatAction should have comment or be unexported (golint)
    • Line 46: warning: exported type MemberStatus should have comment or be unexported (golint)
    • Line 47: warning: exported type MessageEntityType should have comment or be unexported (golint)
    • Line 59: warning: exported type ChatID should have comment or be unexported (golint)
    • Line 61: warning: exported method ChatID.UnmarshalJSON should have comment or be unexported (golint)
    • Line 292: warning: exported type ReplyMarkup should have comment or be unexported (golint)
    • micha/types_inline.go
    • Line 4: warning: exported const INLINE_TYPE_RESULT_ARTICLE should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type InlineResultType should have comment or be unexported (golint)
    • Line 31: warning: exported type InlineQueryResults should have comment or be unexported (golint)
    • Line 33: warning: exported type InlineQueryResult should have comment or be unexported (golint)
    • Line 41: warning: comment on exported type InlineQueryResultArticle should be of the form "InlineQueryResultArticle ..." (with optional leading article) (golint)
    • Line 59: warning: comment on exported type InlineQueryResultPhoto should be of the form "InlineQueryResultPhoto ..." (with optional leading article) (golint)
    • Line 80: warning: comment on exported type InlineQueryResultCachedPhoto should be of the form "InlineQueryResultCachedPhoto ..." (with optional leading article) (golint)
    • Line 97: warning: comment on exported type InlineQueryResultGif should be of the form "InlineQueryResultGif ..." (with optional leading article) (golint)
    • Line 117: warning: comment on exported type InlineQueryResultCachedGif should be of the form "InlineQueryResultCachedGif ..." (with optional leading article) (golint)
    • Line 133: warning: comment on exported type InlineQueryResultMpeg4Gif should be of the form "InlineQueryResultMpeg4Gif ..." (with optional leading article) (golint)
    • Line 153: warning: comment on exported type InlineQueryResultCachedMpeg4Gif should be of the form "InlineQueryResultCachedMpeg4Gif ..." (with optional leading article) (golint)
    • Line 169: warning: comment on exported type InlineQueryResultVideo should be of the form "InlineQueryResultVideo ..." (with optional leading article) (golint)
    • Line 191: warning: comment on exported type InlineQueryResultCachedVideo should be of the form "InlineQueryResultCachedVideo ..." (with optional leading article) (golint)
    • Line 208: warning: comment on exported type InlineQueryResultAudio should be of the form "InlineQueryResultAudio ..." (with optional leading article) (golint)
    • Line 225: warning: comment on exported type InlineQueryResultCachedAudio should be of the form "InlineQueryResultCachedAudio ..." (with optional leading article) (golint)
    • Line 239: warning: comment on exported type InlineQueryResultVoice should be of the form "InlineQueryResultVoice ..." (with optional leading article) (golint)
    • Line 255: warning: comment on exported type InlineQueryResultCachedVoice should be of the form "InlineQueryResultCachedVoice ..." (with optional leading article) (golint)
    • Line 270: warning: comment on exported type InlineQueryResultDocument should be of the form "InlineQueryResultDocument ..." (with optional leading article) (golint)
    • Line 291: warning: comment on exported type InlineQueryResultCachedDocument should be of the form "InlineQueryResultCachedDocument ..." (with optional leading article) (golint)
    • Line 309: warning: comment on exported type InlineQueryResultLocation should be of the form "InlineQueryResultLocation ..." (with optional leading article) (golint)
    • Line 328: warning: comment on exported type InlineQueryResultVenue should be of the form "InlineQueryResultVenue ..." (with optional leading article) (golint)
    • Line 349: warning: comment on exported type InlineQueryResultCachedSticker should be of the form "InlineQueryResultCachedSticker ..." (with optional leading article) (golint)
    • Line 363: warning: comment on exported type InlineQueryResultContact should be of the form "InlineQueryResultContact ..." (with optional leading article) (golint)
    • Line 382: warning: comment on exported type InlineQueryResultGame should be of the form "InlineQueryResultGame ..." (with optional leading article) (golint)
    • Line 393: warning: exported type InputMessageContent should have comment or be unexported (golint)
    • micha/types_payments.go
    • Line 3: warning: exported type Invoice should have comment or be unexported (golint)
    • Line 11: warning: exported type SuccessfulPayment should have comment or be unexported (golint)
    • Line 15: warning: exported type ShippingAddress should have comment or be unexported (golint)
    • Line 19: warning: exported type PassportData should have comment or be unexported (golint)
    • Line 23: warning: exported type ShippingQuery should have comment or be unexported (golint)
    • Line 27: warning: exported type PreCheckoutQuery 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!