Preparing report...

Report for github.com/neonxp/tamtam

A+    Excellent!    Found 2 issues across 13 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!


golint84%

Golint is a linter for Go source code.

    • tamtam/schemes/schemes.go
    • Line 8: warning: exported type ActionRequestBody should have comment or be unexported (golint)
    • Line 12: warning: exported type AttachmentType should have comment or be unexported (golint)
    • Line 15: warning: exported const AttachmentImage should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: comment on exported type Attachment should be of the form "Attachment ..." (with optional leading article) (golint)
    • Line 31: warning: exported method Attachment.GetAttachmentType should have comment or be unexported (golint)
    • Line 35: warning: exported type AttachmentInterface should have comment or be unexported (golint)
    • Line 39: warning: exported type AttachmentPayload should have comment or be unexported (golint)
    • Line 44: warning: comment on exported type AttachmentRequest should be of the form "AttachmentRequest ..." (with optional leading article) (golint)
    • Line 49: warning: exported type AudioAttachment should have comment or be unexported (golint)
    • Line 54: warning: comment on exported type AudioAttachmentRequest should be of the form "AudioAttachmentRequest ..." (with optional leading article) (golint)
    • Line 60: warning: exported function NewAudioAttachmentRequest should have comment or be unexported (golint)
    • Line 64: warning: exported type BotCommand should have comment or be unexported (golint)
    • Line 69: warning: exported type BotInfo should have comment or be unexported (golint)
    • Line 79: warning: exported type BotPatch should have comment or be unexported (golint)
    • Line 87: warning: exported type Button should have comment or be unexported (golint)
    • Line 92: warning: exported method Button.GetType should have comment or be unexported (golint)
    • Line 96: warning: exported method Button.GetText should have comment or be unexported (golint)
    • Line 100: warning: exported type ButtonInterface should have comment or be unexported (golint)
    • Line 105: warning: comment on exported type CallbackAnswer should be of the form "CallbackAnswer ..." (with optional leading article) (golint)
    • Line 111: warning: comment on exported type CallbackButton should be of the form "CallbackButton ..." (with optional leading article) (golint)
    • Line 118: warning: exported type CallbackButtonAllOf should have comment or be unexported (golint)
    • Line 123: warning: exported type Chat should have comment or be unexported (golint)
    • Line 151: warning: exported type ChatList should have comment or be unexported (golint)
    • Line 156: warning: exported type ChatMember should have comment or be unexported (golint)
    • Line 169: warning: exported type ChatMembersList should have comment or be unexported (golint)
    • Line 174: warning: exported type ChatPatch should have comment or be unexported (golint)
    • Line 201: warning: exported type ContactAttachment should have comment or be unexported (golint)
    • Line 206: warning: exported type ContactAttachmentPayload should have comment or be unexported (golint)
    • Line 211: warning: comment on exported type ContactAttachmentRequest should be of the form "ContactAttachmentRequest ..." (with optional leading article) (golint)
    • Line 217: warning: exported function NewContactAttachmentRequest should have comment or be unexported (golint)
    • Line 221: warning: exported type ContactAttachmentRequestPayload should have comment or be unexported (golint)
    • Line 228: warning: comment on exported type Error should be of the form "Error ..." (with optional leading article) (golint)
    • Line 239: warning: exported type FileAttachment should have comment or be unexported (golint)
    • Line 246: warning: exported type FileAttachmentPayload should have comment or be unexported (golint)
    • Line 251: warning: comment on exported type FileAttachmentRequest should be of the form "FileAttachmentRequest ..." (with optional leading article) (golint)
    • Line 257: warning: exported function NewFileAttachmentRequest should have comment or be unexported (golint)
    • Line 261: warning: comment on exported type GetSubscriptionsResult should be of the form "GetSubscriptionsResult ..." (with optional leading article) (golint)
    • Line 266: warning: comment on exported type Image should be of the form "Image ..." (with optional leading article) (golint)
    • Line 271: warning: comment on exported type InlineKeyboardAttachment should be of the form "InlineKeyboardAttachment ..." (with optional leading article) (golint)
    • Line 277: warning: comment on exported type InlineKeyboardAttachmentRequest should be of the form "InlineKeyboardAttachmentRequest ..." (with optional leading article) (golint)
    • Line 283: warning: exported function NewInlineKeyboardAttachmentRequest should have comment or be unexported (golint)
    • Line 287: warning: exported type ButtonType should have comment or be unexported (golint)
    • Line 290: warning: exported const LINK should have comment (or a comment on this block) or be unexported (golint)
    • Line 311: warning: comment on exported type LinkButton should be of the form "LinkButton ..." (with optional leading article) (golint)
    • Line 317: warning: exported type LinkedMessage should have comment or be unexported (golint)
    • Line 324: warning: exported type LocationAttachment should have comment or be unexported (golint)
    • Line 330: warning: comment on exported type LocationAttachmentRequest should be of the form "LocationAttachmentRequest ..." (with optional leading article) (golint)
    • Line 337: warning: exported function NewLocationAttachmentRequest should have comment or be unexported (golint)
    • Line 341: warning: exported type MediaAttachmentPayload should have comment or be unexported (golint)
    • Line 356: warning: comment on exported type MessageBody should be of the form "MessageBody ..." (with optional leading article) (golint)
    • Line 366: warning: exported type UpdateType should have comment or be unexported (golint)
    • Line 369: warning: exported const TypeMessageCallback should have comment (or a comment on this block) or be unexported (golint)
    • Line 390: warning: comment on exported type MessageList should be of the form "MessageList ..." (with optional leading article) (golint)
    • Line 395: warning: comment on exported type MessageStat should be of the form "MessageStat ..." (with optional leading article) (golint)
    • Line 400: warning: exported type NewMessageBody should have comment or be unexported (golint)
    • Line 407: warning: exported type NewMessageLink should have comment or be unexported (golint)
    • Line 412: warning: comment on exported type PhotoAttachment should be of the form "PhotoAttachment ..." (with optional leading article) (golint)
    • Line 418: warning: exported type PhotoAttachmentPayload should have comment or be unexported (golint)
    • Line 424: warning: exported type PhotoAttachmentRequest should have comment or be unexported (golint)
    • Line 429: warning: exported function NewPhotoAttachmentRequest should have comment or be unexported (golint)
    • Line 433: warning: exported type PhotoAttachmentRequestAllOf should have comment or be unexported (golint)
    • Line 437: warning: comment on exported type PhotoAttachmentRequestPayload should be of the form "PhotoAttachmentRequestPayload ..." (with optional leading article) (golint)
    • Line 444: warning: exported type PhotoToken should have comment or be unexported (golint)
    • Line 448: warning: comment on exported type PhotoTokens should be of the form "PhotoTokens ..." (with optional leading article) (golint)
    • Line 453: warning: comment on exported type Recipient should be of the form "Recipient ..." (with optional leading article) (golint)
    • Line 460: warning: comment on exported type RequestContactButton should be of the form "RequestContactButton ..." (with optional leading article) (golint)
    • Line 465: warning: comment on exported type RequestGeoLocationButton should be of the form "RequestGeoLocationButton ..." (with optional leading article) (golint)
    • Line 471: warning: exported type SendMessageResult should have comment or be unexported (golint)
    • Line 488: warning: exported type ShareAttachment should have comment or be unexported (golint)
    • Line 493: warning: comment on exported type SimpleQueryResult should be of the form "SimpleQueryResult ..." (with optional leading article) (golint)
    • Line 499: warning: exported type StickerAttachment should have comment or be unexported (golint)
    • Line 506: warning: exported type StickerAttachmentPayload should have comment or be unexported (golint)
    • Line 511: warning: comment on exported type StickerAttachmentRequest should be of the form "StickerAttachmentRequest ..." (with optional leading article) (golint)
    • Line 517: warning: exported function NewStickerAttachmentRequest should have comment or be unexported (golint)
    • Line 521: warning: exported type StickerAttachmentRequestPayload should have comment or be unexported (golint)
    • Line 525: warning: comment on exported type Subscription should be of the form "Subscription ..." (with optional leading article) (golint)
    • Line 533: warning: comment on exported type SubscriptionRequestBody should be of the form "SubscriptionRequestBody ..." (with optional leading article) (golint)
    • Line 540: warning: comment on exported type UpdateList should be of the form "UpdateList ..." (with optional leading article) (golint)
    • Line 546: warning: comment on exported type UploadEndpoint should be of the form "UploadEndpoint ..." (with optional leading article) (golint)
    • Line 562: warning: comment on exported type UploadedInfo should be of the form "UploadedInfo ..." (with optional leading article) (golint)
    • Line 568: warning: exported type User should have comment or be unexported (golint)
    • Line 574: warning: exported type UserIdsList should have comment or be unexported (golint)
    • Line 578: warning: exported type UserWithPhoto should have comment or be unexported (golint)
    • Line 586: warning: exported type VideoAttachment should have comment or be unexported (golint)
    • Line 591: warning: comment on exported type VideoAttachmentRequest should be of the form "VideoAttachmentRequest ..." (with optional leading article) (golint)
    • Line 597: warning: exported function NewVideoAttachmentRequest should have comment or be unexported (golint)
    • Line 601: warning: comment on exported type Update should be of the form "Update ..." (with optional leading article) (golint)
    • Line 607: warning: exported method Update.GetUpdateType should have comment or be unexported (golint)
    • Line 611: warning: exported method Update.GetUpdateTime should have comment or be unexported (golint)
    • Line 615: warning: exported type UpdateInterface should have comment or be unexported (golint)
    • Line 622: warning: comment on exported type BotAddedToChatUpdate should be of the form "BotAddedToChatUpdate ..." (with optional leading article) (golint)
    • Line 629: warning: exported method BotAddedToChatUpdate.GetUserID should have comment or be unexported (golint)
    • Line 633: warning: exported method BotAddedToChatUpdate.GetChatID should have comment or be unexported (golint)
    • Line 637: warning: comment on exported type BotRemovedFromChatUpdate should be of the form "BotRemovedFromChatUpdate ..." (with optional leading article) (golint)
    • Line 644: warning: exported method BotRemovedFromChatUpdate.GetUserID should have comment or be unexported (golint)
    • Line 648: warning: exported method BotRemovedFromChatUpdate.GetChatID should have comment or be unexported (golint)
    • Line 652: warning: comment on exported type BotStartedUpdate should be of the form "BotStartedUpdate ..." (with optional leading article) (golint)
    • Line 659: warning: exported method BotStartedUpdate.GetUserID should have comment or be unexported (golint)
    • Line 663: warning: exported method BotStartedUpdate.GetChatID should have comment or be unexported (golint)
    • Line 667: warning: comment on exported type Callback should be of the form "Callback ..." (with optional leading article) (golint)
    • Line 675: warning: exported method Callback.GetUserID should have comment or be unexported (golint)
    • Line 679: warning: exported method Callback.GetChatID should have comment or be unexported (golint)
    • Line 683: warning: comment on exported type ChatTitleChangedUpdate should be of the form "ChatTitleChangedUpdate ..." (with optional leading article) (golint)
    • Line 691: warning: exported method ChatTitleChangedUpdate.GetUserID should have comment or be unexported (golint)
    • Line 695: warning: exported method ChatTitleChangedUpdate.GetChatID should have comment or be unexported (golint)
    • Line 699: warning: comment on exported type MessageCallbackUpdate should be of the form "MessageCallbackUpdate ..." (with optional leading article) (golint)
    • Line 706: warning: exported method MessageCallbackUpdate.GetUserID should have comment or be unexported (golint)
    • Line 710: warning: exported method MessageCallbackUpdate.GetChatID should have comment or be unexported (golint)
    • Line 714: warning: comment on exported type MessageCreatedUpdate should be of the form "MessageCreatedUpdate ..." (with optional leading article) (golint)
    • Line 720: warning: exported method MessageCreatedUpdate.GetUserID should have comment or be unexported (golint)
    • Line 724: warning: exported method MessageCreatedUpdate.GetChatID should have comment or be unexported (golint)
    • Line 728: warning: comment on exported type MessageEditedUpdate should be of the form "MessageEditedUpdate ..." (with optional leading article) (golint)
    • Line 734: warning: exported method MessageEditedUpdate.GetUserID should have comment or be unexported (golint)
    • Line 738: warning: exported method MessageEditedUpdate.GetChatID should have comment or be unexported (golint)
    • Line 742: warning: comment on exported type MessageRemovedUpdate should be of the form "MessageRemovedUpdate ..." (with optional leading article) (golint)
    • Line 748: warning: exported method MessageRemovedUpdate.GetUserID should have comment or be unexported (golint)
    • Line 752: warning: exported method MessageRemovedUpdate.GetChatID should have comment or be unexported (golint)
    • Line 756: warning: comment on exported type UserAddedToChatUpdate should be of the form "UserAddedToChatUpdate ..." (with optional leading article) (golint)
    • Line 764: warning: exported method UserAddedToChatUpdate.GetUserID should have comment or be unexported (golint)
    • Line 768: warning: exported method UserAddedToChatUpdate.GetChatID should have comment or be unexported (golint)
    • Line 772: warning: comment on exported type UserRemovedFromChatUpdate should be of the form "UserRemovedFromChatUpdate ..." (with optional leading article) (golint)
    • Line 780: warning: exported method UserRemovedFromChatUpdate.GetUserID should have comment or be unexported (golint)
    • Line 784: warning: exported method UserRemovedFromChatUpdate.GetChatID should have comment or be unexported (golint)
    • tamtam/message.go
    • Line 5: warning: exported type Message should have comment or be unexported (golint)
    • Line 11: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 15: warning: exported method Message.SetUser should have comment or be unexported (golint)
    • Line 19: warning: exported method Message.SetChat should have comment or be unexported (golint)
    • Line 24: warning: exported method Message.SetText should have comment or be unexported (golint)
    • Line 29: warning: exported method Message.SetNotify should have comment or be unexported (golint)
    • Line 34: warning: exported method Message.AddKeyboard should have comment or be unexported (golint)
    • Line 39: warning: exported method Message.AddPhoto should have comment or be unexported (golint)
    • Line 46: warning: exported method Message.AddAudio should have comment or be unexported (golint)
    • Line 51: warning: exported method Message.AddVideo should have comment or be unexported (golint)
    • Line 56: warning: exported method Message.AddFile should have comment or be unexported (golint)
    • Line 61: warning: exported method Message.AddLocation should have comment or be unexported (golint)
    • Line 66: warning: exported method Message.AddContact should have comment or be unexported (golint)
    • Line 76: warning: exported method Message.AddSticker 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!