Preparing report...

Report for github.com/NicoNex/echotron

(v1.0.0)

A    Great!    Found 4 issues across 4 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.

    • api.go
    • Line 30: warning: exported type Api should have comment or be unexported (golint)
    • Line 32: warning: exported type Option should have comment or be unexported (golint)
    • Line 35: warning: exported const PARSE_MARKDOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type ChatAction should have comment or be unexported (golint)
    • Line 44: warning: exported const TYPING should have comment (or a comment on this block) or be unexported (golint)
    • Line 97: warning: comment on exported method Api.GetUpdates should be of the form "GetUpdates ..." (golint)
    • Line 109: warning: comment on exported method Api.GetChat should be of the form "GetChat ..." (golint)
    • Line 118: warning: exported method Api.GetStickerSet should have comment or be unexported (golint)
    • Line 126: warning: exported method Api.SendMessage should have comment or be unexported (golint)
    • Line 140: warning: comment on exported method Api.SendMessageReply should be of the form "SendMessageReply ..." (golint)
    • Line 156: warning: exported method Api.SendMessageWithKeyboard should have comment or be unexported (golint)
    • Line 171: warning: exported method Api.DeleteMessage should have comment or be unexported (golint)
    • Line 184: warning: exported method Api.SendPhoto should have comment or be unexported (golint)
    • Line 198: warning: exported method Api.SendPhotoByID should have comment or be unexported (golint)
    • Line 213: warning: exported method Api.SendPhotoWithKeyboard should have comment or be unexported (golint)
    • Line 228: warning: exported method Api.SendAudio should have comment or be unexported (golint)
    • Line 242: warning: exported method Api.SendAudioByID should have comment or be unexported (golint)
    • Line 257: warning: exported method Api.SendDocument should have comment or be unexported (golint)
    • Line 271: warning: exported method Api.SendDocumentByID should have comment or be unexported (golint)
    • Line 286: warning: exported method Api.SendVideo should have comment or be unexported (golint)
    • Line 300: warning: exported method Api.SendVideoByID should have comment or be unexported (golint)
    • Line 315: warning: exported method Api.SendVideoNoteByID should have comment or be unexported (golint)
    • Line 328: warning: exported method Api.SendVoice should have comment or be unexported (golint)
    • Line 342: warning: exported method Api.SendVoiceByID should have comment or be unexported (golint)
    • Line 356: warning: exported method Api.SendContact should have comment or be unexported (golint)
    • Line 371: warning: exported method Api.SendStickerByID should have comment or be unexported (golint)
    • Line 384: warning: exported method Api.SendChatAction should have comment or be unexported (golint)
    • Line 397: warning: exported method Api.KeyboardButton should have comment or be unexported (golint)
    • Line 401: warning: exported method Api.KeyboardRow should have comment or be unexported (golint)
    • Line 409: warning: exported method Api.KeyboardMarkup should have comment or be unexported (golint)
    • Line 419: warning: exported method Api.KeyboardRemove should have comment or be unexported (golint)
    • Line 424: warning: comment on exported method Api.InlineKbdBtn should be of the form "InlineKbdBtn ..." (golint)
    • Line 433: warning: comment on exported method Api.InlineKbdBtnUrl should be of the form "InlineKbdBtnUrl ..." (golint)
    • Line 438: warning: comment on exported method Api.InlineKbdBtnCbd should be of the form "InlineKbdBtnCbd ..." (golint)
    • Line 443: warning: comment on exported method Api.InlineKbdRow should be of the form "InlineKbdRow ..." (golint)
    • Line 448: warning: comment on exported method Api.InlineKbdMarkup should be of the form "InlineKbdMarkup ..." (golint)
    • Line 454: warning: exported method Api.EditMessageReplyMarkup should have comment or be unexported (golint)
    • Line 468: warning: exported method Api.EditMessageText should have comment or be unexported (golint)
    • Line 483: warning: exported method Api.EditMessageTextWithKeyboard should have comment or be unexported (golint)
    • Line 499: warning: exported method Api.AnswerCallbackQuery should have comment or be unexported (golint)
    • Line 513: warning: exported method Api.GetMyCommands should have comment or be unexported (golint)
    • Line 524: warning: exported method Api.SetMyCommands should have comment or be unexported (golint)
    • Line 538: warning: exported method Api.Command should have comment or be unexported (golint)
    • Line 542: warning: exported method Api.SendAnimation should have comment or be unexported (golint)
    • Line 556: warning: exported method Api.SendAnimationByID should have comment or be unexported (golint)
    • dispatcher.go
    • Line 37: warning: exported type NewBotFn should have comment or be unexported (golint)
    • Line 39: warning: exported type Dispatcher should have comment or be unexported (golint)
    • network.go
    • Line 34: warning: exported function SendGetRequest should have comment or be unexported (golint)
    • Line 51: warning: exported function SendPostRequest should have comment or be unexported (golint)
    • Line 94: warning: exported function SendPostForm should have comment or be unexported (golint)
    • types.go
    • Line 21: warning: comment on exported type Chat should be of the form "Chat ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type User should be of the form "User ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported type MessageEntity should be of the form "MessageEntity ..." (with optional leading article) (golint)
    • Line 55: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 79: warning: comment on exported type Update should be of the form "Update ..." (with optional leading article) (golint)
    • Line 92: warning: exported type APIResponseBase should have comment or be unexported (golint)
    • Line 98: warning: comment on exported type APIResponseUpdate should be of the form "APIResponseUpdate ..." (with optional leading article) (golint)
    • Line 105: warning: comment on exported type APIResponseMessage should be of the form "APIResponseMessage ..." (with optional leading article) (golint)
    • Line 112: warning: exported type APIResponseCommands should have comment or be unexported (golint)
    • Line 117: warning: comment on exported type Contact should be of the form "Contact ..." (with optional leading article) (golint)
    • Line 126: warning: comment on exported type Location should be of the form "Location ..." (with optional leading article) (golint)
    • Line 132: warning: comment on exported type InlineQuery should be of the form "InlineQuery ..." (with optional leading article) (golint)
    • Line 141: warning: comment on exported type ChosenInlineResult should be of the form "ChosenInlineResult ..." (with optional leading article) (golint)
    • Line 149: warning: comment on exported type CallbackQuery should be of the form "CallbackQuery ..." (with optional leading article) (golint)
    • Line 161: warning: comment on exported type Audio should be of the form "Audio ..." (with optional leading article) (golint)
    • Line 172: warning: comment on exported type Video should be of the form "Video ..." (with optional leading article) (golint)
    • Line 183: warning: comment on exported type VideoNote should be of the form "VideoNote ..." (with optional leading article) (golint)
    • Line 192: warning: comment on exported type Document should be of the form "Document ..." (with optional leading article) (golint)
    • Line 201: warning: comment on exported type PhotoSize should be of the form "PhotoSize ..." (with optional leading article) (golint)
    • Line 209: warning: comment on exported type Voice should be of the form "Voice ..." (with optional leading article) (golint)
    • Line 217: warning: comment on exported type MaskPosition should be of the form "MaskPosition ..." (with optional leading article) (golint)
    • Line 225: warning: comment on exported type Sticker should be of the form "Sticker ..." (with optional leading article) (golint)
    • Line 237: warning: comment on exported type StickerSet should be of the form "StickerSet ..." (with optional leading article) (golint)
    • Line 245: warning: comment on exported type Button should be of the form "Button ..." (with optional leading article) (golint)
    • Line 252: warning: comment on exported type KbdRow should be of the form "KbdRow ..." (with optional leading article) (golint)
    • Line 255: warning: comment on exported type Keyboard should be of the form "Keyboard ..." (with optional leading article) (golint)
    • Line 263: warning: comment on exported type KeyboardRemove should be of the form "KeyboardRemove ..." (with optional leading article) (golint)
    • Line 269: warning: comment on exported type InlineButton should be of the form "InlineButton ..." (with optional leading article) (golint)
    • Line 276: warning: comment on exported type InlineKbdRow should be of the form "InlineKbdRow ..." (with optional leading article) (golint)
    • Line 279: warning: comment on exported type InlineKeyboard should be of the form "InlineKeyboard ..." (with optional leading article) (golint)
    • Line 284: warning: exported type BotCommand 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!