Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
mg-bot-api-client-go/v1/types.go
- Line 10: warning: exported const ChannelTypeTelegram should have comment (or a comment on this block) or be unexported (golint)
- Line 88: warning: comment on exported type BotsRequest should be of the form "BotsRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type ChannelsRequest should be of the form "ChannelsRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type ChatsRequest should be of the form "ChatsRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type CommandEditRequest should be of the form "CommandEditRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type CommandsRequest should be of the form "CommandsRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type CustomersRequest should be of the form "CustomersRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type DialogAssignRequest should be of the form "DialogAssignRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type DialogsRequest should be of the form "DialogsRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type InfoRequest should be of the form "InfoRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type MembersRequest should be of the form "MembersRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type MessageEditRequest should be of the form "MessageEditRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type MessageSendRequest should be of the form "MessageSendRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type MessagesRequest should be of the form "MessagesRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type Suggestion should be of the form "Suggestion ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type TransportAttachments should be of the form "TransportAttachments ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type UploadFileByUrlRequest should be of the form "UploadFileByUrlRequest ..." (with optional leading article) (golint)
- Line 88: warning: comment on exported type UsersRequest should be of the form "UsersRequest ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type BotsResponseItem should be of the form "BotsResponseItem ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type ChannelResponseItem should be of the form "ChannelResponseItem ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type ChatResponseItem should be of the form "ChatResponseItem ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type CommandsResponseItem should be of the form "CommandsResponseItem ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type CustomersResponseItem should be of the form "CustomersResponseItem ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type DialogAssignResponse should be of the form "DialogAssignResponse ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type DialogResponseItem should be of the form "DialogResponseItem ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type DialogUnassignResponse should be of the form "DialogUnassignResponse ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type FullFileResponse should be of the form "FullFileResponse ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type MemberResponseItem should be of the form "MemberResponseItem ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type MessageSendResponse should be of the form "MessageSendResponse ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type MessagesResponseItem should be of the form "MessagesResponseItem ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type UploadFileResponse should be of the form "UploadFileResponse ..." (with optional leading article) (golint)
- Line 229: warning: comment on exported type UsersResponseItem should be of the form "UsersResponseItem ..." (with optional leading article) (golint)
- Line 376: warning: comment on exported type EventMeta should be of the form "EventMeta ..." (with optional leading article) (golint)
- Line 376: warning: comment on exported type WsEvent should be of the form "WsEvent ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type Channel should be of the form "Channel ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type ChannelSupports should be of the form "ChannelSupports ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type Chat should be of the form "Chat ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type Command should be of the form "Command ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type Dialog should be of the form "Dialog ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type FileMeta should be of the form "FileMeta ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type Item should be of the form "Item ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type Member should be of the form "Member ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageOrder should be of the form "MessageOrder ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageOrderCost should be of the form "MessageOrderCost ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageOrderDelivery should be of the form "MessageOrderDelivery ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageOrderItem should be of the form "MessageOrderItem ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageOrderPayment should be of the form "MessageOrderPayment ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageOrderPaymentStatus should be of the form "MessageOrderPaymentStatus ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageOrderQuantity should be of the form "MessageOrderQuantity ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageOrderStatus should be of the form "MessageOrderStatus ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type MessageProduct should be of the form "MessageProduct ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type QuoteMessage should be of the form "QuoteMessage ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type Responsible should be of the form "Responsible ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type SystemMessage should be of the form "SystemMessage ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type SystemMessageDialog should be of the form "SystemMessageDialog ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type TextMessage should be of the form "TextMessage ..." (with optional leading article) (golint)
- Line 390: warning: comment on exported type UserRef should be of the form "UserRef ..." (with optional leading article) (golint)
- Line 574: warning: comment on exported type CRUDChannelSettings should be of the form "CRUDChannelSettings ..." (with optional leading article) (golint)
- Line 574: warning: comment on exported type ChannelSettings should be of the form "ChannelSettings ..." (with optional leading article) (golint)
- Line 574: warning: comment on exported type ChannelSettingsText should be of the form "ChannelSettingsText ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type EventUserJoinedChatData should be of the form "EventUserJoinedChatData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventBotUpdatedData should be of the form "WsEventBotUpdatedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventChatCreatedData should be of the form "WsEventChatCreatedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventChatUpdatedData should be of the form "WsEventChatUpdatedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventCustomerUpdatedData should be of the form "WsEventCustomerUpdatedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventDialogAssignData should be of the form "WsEventDialogAssignData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventDialogClosedData should be of the form "WsEventDialogClosedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventDialogOpenedData should be of the form "WsEventDialogOpenedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventMessageDeletedData should be of the form "WsEventMessageDeletedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventMessageNewData should be of the form "WsEventMessageNewData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventMessageUpdatedData should be of the form "WsEventMessageUpdatedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventUserLeaveData should be of the form "WsEventUserLeaveData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventUserOnlineUpdatedData should be of the form "WsEventUserOnlineUpdatedData ..." (with optional leading article) (golint)
- Line 643: warning: comment on exported type WsEventUserUpdatedData should be of the form "WsEventUserUpdatedData ..." (with optional leading article) (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words