Preparing report...

Report for github.com/dimuska139/sendpulse-sdk-go

A+    Excellent!    Found 16 issues across 42 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!


golint61%

Golint is a linter for Go source code.

    • sendpulse-sdk-go/sendpulse/bots_vk_service.go
    • Line 10: warning: exported type BotsVkService should have comment or be unexported (golint)
    • Line 18: warning: exported type VkAccount should have comment or be unexported (golint)
    • Line 39: warning: exported method BotsVkService.GetAccount should have comment or be unexported (golint)
    • Line 50: warning: exported type VkBot should have comment or be unexported (golint)
    • Line 66: warning: exported method BotsVkService.GetBots should have comment or be unexported (golint)
    • Line 77: warning: exported type VkBotContact should have comment or be unexported (golint)
    • Line 95: warning: exported method BotsVkService.GetContact should have comment or be unexported (golint)
    • Line 106: warning: exported method BotsVkService.GetContactsByTag should have comment or be unexported (golint)
    • Line 117: warning: exported method BotsVkService.GetContactsByVariable should have comment or be unexported (golint)
    • Line 139: warning: exported method BotsVkService.SendTextToContact should have comment or be unexported (golint)
    • Line 158: warning: exported method BotsVkService.SetVariableToContact should have comment or be unexported (golint)
    • Line 181: warning: exported method BotsVkService.SetTagsToContact should have comment or be unexported (golint)
    • Line 200: warning: exported method BotsVkService.DeleteTagFromContact should have comment or be unexported (golint)
    • Line 219: warning: exported method BotsVkService.DisableContact should have comment or be unexported (golint)
    • Line 236: warning: exported method BotsVkService.EnableContact should have comment or be unexported (golint)
    • Line 253: warning: exported method BotsVkService.DeleteContact should have comment or be unexported (golint)
    • Line 270: warning: exported method BotsVkService.GetPauseAutomation should have comment or be unexported (golint)
    • Line 283: warning: exported method BotsVkService.SetPauseAutomation should have comment or be unexported (golint)
    • Line 301: warning: exported method BotsVkService.DeletePauseAutomation should have comment or be unexported (golint)
    • Line 317: warning: exported method BotsVkService.GetBotVariables should have comment or be unexported (golint)
    • Line 328: warning: exported method BotsVkService.GetFlows should have comment or be unexported (golint)
    • Line 339: warning: exported method BotsVkService.RunFlow should have comment or be unexported (golint)
    • Line 360: warning: exported method BotsVkService.RunFlowByTrigger should have comment or be unexported (golint)
    • Line 381: warning: exported method BotsVkService.GetBotTriggers should have comment or be unexported (golint)
    • Line 392: warning: exported type VkBotMessage should have comment or be unexported (golint)
    • Line 403: warning: exported type VkBotChat should have comment or be unexported (golint)
    • Line 409: warning: exported method BotsVkService.GetBotChats should have comment or be unexported (golint)
    • Line 420: warning: exported method BotsVkService.GetContactMessages should have comment or be unexported (golint)
    • Line 431: warning: exported type VkBotSendCampaignParams should have comment or be unexported (golint)
    • Line 438: warning: exported type VkBotCampaignMessage should have comment or be unexported (golint)
    • Line 445: warning: exported method BotsVkService.SendCampaign should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/smtp_service.go
    • Line 11: warning: exported type SmtpService should have comment or be unexported (golint)
    • Line 19: warning: exported type SendEmailParams should have comment or be unexported (golint)
    • Line 39: warning: exported method SmtpService.SendMessage should have comment or be unexported (golint)
    • Line 61: warning: exported type SmtpMessage should have comment or be unexported (golint)
    • Line 94: warning: exported type SmtpListParams should have comment or be unexported (golint)
    • Line 103: warning: exported method SmtpService.GetMessages should have comment or be unexported (golint)
    • Line 132: warning: exported method SmtpService.CountMessages should have comment or be unexported (golint)
    • Line 141: warning: exported method SmtpService.GetMessage should have comment or be unexported (golint)
    • Line 148: warning: exported type BouncesList should have comment or be unexported (golint)
    • Line 163: warning: exported method SmtpService.GetDailyBounces should have comment or be unexported (golint)
    • Line 174: warning: exported method SmtpService.CountBounces should have comment or be unexported (golint)
    • Line 184: warning: exported type SmtpUnsubscribeEmail should have comment or be unexported (golint)
    • Line 189: warning: exported method SmtpService.UnsubscribeEmails should have comment or be unexported (golint)
    • Line 205: warning: exported method SmtpService.DeleteUnsubscribedEmails should have comment or be unexported (golint)
    • Line 221: warning: exported type UnsubscribedListParams should have comment or be unexported (golint)
    • Line 227: warning: exported type Unsubscribed should have comment or be unexported (golint)
    • Line 235: warning: exported method SmtpService.GetUnsubscribedEmails should have comment or be unexported (golint)
    • Line 251: warning: exported method SmtpService.GetSendersIPs should have comment or be unexported (golint)
    • Line 259: warning: exported method SmtpService.GetSendersEmails should have comment or be unexported (golint)
    • Line 267: warning: exported method SmtpService.GetAllowedDomains should have comment or be unexported (golint)
    • Line 275: warning: exported method SmtpService.AddDomain should have comment or be unexported (golint)
    • Line 291: warning: exported method SmtpService.VerifyDomain should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/emails_senders_service.go
    • Line 8: warning: exported type SendersService should have comment or be unexported (golint)
    • Line 16: warning: exported method SendersService.CreateSender should have comment or be unexported (golint)
    • Line 37: warning: exported method SendersService.GetSenderActivationCode should have comment or be unexported (golint)
    • Line 47: warning: exported method SendersService.ActivateSender should have comment or be unexported (golint)
    • Line 65: warning: exported type Sender should have comment or be unexported (golint)
    • Line 71: warning: exported method SendersService.GetSenders should have comment or be unexported (golint)
    • Line 79: warning: exported method SendersService.DeleteSender should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/types.go
    • Line 9: warning: exported type DateTimeType should have comment or be unexported (golint)
    • Line 13: warning: exported method DateTimeType.UnmarshalJSON should have comment or be unexported (golint)
    • Line 28: warning: exported method DateTimeType.MarshalJSON should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/viber_service.go
    • Line 8: warning: exported type ViberService should have comment or be unexported (golint)
    • Line 16: warning: exported type CreateViberCampaignParams should have comment or be unexported (golint)
    • Line 41: warning: exported method ViberService.CreateCampaign should have comment or be unexported (golint)
    • Line 54: warning: exported type UpdateViberCampaignParams should have comment or be unexported (golint)
    • Line 68: warning: exported method ViberService.UpdateCampaign should have comment or be unexported (golint)
    • Line 78: warning: exported type ViberCampaign should have comment or be unexported (golint)
    • Line 94: warning: exported method ViberService.GetCampaigns should have comment or be unexported (golint)
    • Line 102: warning: exported type ViberCampaignStatistics should have comment or be unexported (golint)
    • Line 124: warning: exported method ViberService.GetStatistics should have comment or be unexported (golint)
    • Line 132: warning: exported type ViberSender should have comment or be unexported (golint)
    • Line 145: warning: exported method ViberService.GetSenders should have comment or be unexported (golint)
    • Line 153: warning: exported method ViberService.GetSender should have comment or be unexported (golint)
    • Line 161: warning: exported type ViberRecipient should have comment or be unexported (golint)
    • Line 171: warning: exported method ViberService.GetRecipients should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/balance_service.go
    • Line 9: warning: comment on exported type BalanceService should be of the form "BalanceService ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported type BalanceDetailed should be of the form "BalanceDetailed ..." (with optional leading article) (golint)
    • sendpulse-sdk-go/sendpulse/vk_ok_service.go
    • Line 13: warning: exported type VkOkService should have comment or be unexported (golint)
    • Line 21: warning: exported type CreateVkOkSenderParams should have comment or be unexported (golint)
    • Line 28: warning: exported method VkOkService.CreateSender should have comment or be unexported (golint)
    • Line 63: warning: exported type CreateVkOkTemplateParams should have comment or be unexported (golint)
    • Line 70: warning: exported method VkOkService.CreateTemplate should have comment or be unexported (golint)
    • Line 83: warning: exported type VkOkTemplate should have comment or be unexported (golint)
    • Line 106: warning: exported method VkOkService.GetTemplates should have comment or be unexported (golint)
    • Line 117: warning: exported method VkOkService.GetTemplate should have comment or be unexported (golint)
    • Line 128: warning: exported type SendVkOkTemplateParams should have comment or be unexported (golint)
    • Line 142: warning: exported method VkOkService.Send should have comment or be unexported (golint)
    • Line 155: warning: exported type VkOkCurrency should have comment or be unexported (golint)
    • Line 162: warning: exported type VkOkCampaignStatistics should have comment or be unexported (golint)
    • Line 189: warning: exported method VkOkService.GetCampaignsStatistics should have comment or be unexported (golint)
    • Line 200: warning: exported method VkOkService.GetCampaignStatistics should have comment or be unexported (golint)
    • Line 209: warning: exported type VkOkCampaignPhone should have comment or be unexported (golint)
    • Line 227: warning: exported method VkOkService.GetCampaignPhones should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/bots_fb_service.go
    • Line 10: warning: exported type BotsFbService should have comment or be unexported (golint)
    • Line 18: warning: exported type FbAccount should have comment or be unexported (golint)
    • Line 40: warning: exported method BotsFbService.GetAccount should have comment or be unexported (golint)
    • Line 51: warning: exported type FbBot should have comment or be unexported (golint)
    • Line 67: warning: exported method BotsFbService.GetBots should have comment or be unexported (golint)
    • Line 78: warning: exported type FbBotContact should have comment or be unexported (golint)
    • Line 100: warning: exported method BotsFbService.GetContact should have comment or be unexported (golint)
    • Line 111: warning: exported method BotsFbService.GetContactsByTag should have comment or be unexported (golint)
    • Line 122: warning: exported type BotContactsByVariableParams should have comment or be unexported (golint)
    • Line 129: warning: exported method BotsFbService.GetContactsByVariable should have comment or be unexported (golint)
    • Line 151: warning: exported type FbBotSendTextParams should have comment or be unexported (golint)
    • Line 158: warning: exported method BotsFbService.SendTextToContact should have comment or be unexported (golint)
    • Line 168: warning: exported method BotsFbService.SetVariableToContact should have comment or be unexported (golint)
    • Line 191: warning: exported method BotsFbService.SetTagsToContact should have comment or be unexported (golint)
    • Line 210: warning: exported method BotsFbService.DeleteTagFromContact should have comment or be unexported (golint)
    • Line 229: warning: exported method BotsFbService.DisableContact should have comment or be unexported (golint)
    • Line 246: warning: exported method BotsFbService.EnableContact should have comment or be unexported (golint)
    • Line 263: warning: exported method BotsFbService.DeleteContact should have comment or be unexported (golint)
    • Line 280: warning: exported method BotsFbService.GetPauseAutomation should have comment or be unexported (golint)
    • Line 293: warning: exported method BotsFbService.SetPauseAutomation should have comment or be unexported (golint)
    • Line 311: warning: exported method BotsFbService.DeletePauseAutomation should have comment or be unexported (golint)
    • Line 327: warning: exported type BotVariable should have comment or be unexported (golint)
    • Line 338: warning: exported method BotsFbService.GetBotVariables should have comment or be unexported (golint)
    • Line 349: warning: exported type BotFlow should have comment or be unexported (golint)
    • Line 361: warning: exported method BotsFbService.GetFlows should have comment or be unexported (golint)
    • Line 372: warning: exported method BotsFbService.RunFlow should have comment or be unexported (golint)
    • Line 393: warning: exported method BotsFbService.RunFlowByTrigger should have comment or be unexported (golint)
    • Line 414: warning: exported type BotTrigger should have comment or be unexported (golint)
    • Line 429: warning: exported method BotsFbService.GetBotTriggers should have comment or be unexported (golint)
    • Line 440: warning: exported type FbBotMessage should have comment or be unexported (golint)
    • Line 454: warning: exported type FbBotChat should have comment or be unexported (golint)
    • Line 460: warning: exported method BotsFbService.GetBotChats should have comment or be unexported (golint)
    • Line 471: warning: exported method BotsFbService.GetContactMessages should have comment or be unexported (golint)
    • Line 482: warning: exported type FbBotSendCampaignParams should have comment or be unexported (golint)
    • Line 491: warning: exported type FbBotCampaignMessage should have comment or be unexported (golint)
    • Line 498: warning: exported method BotsFbService.SendCampaign should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/bots_telegram_service.go
    • Line 10: warning: exported type BotsTelegramService should have comment or be unexported (golint)
    • Line 18: warning: exported type TelegramAccount should have comment or be unexported (golint)
    • Line 39: warning: exported method BotsTelegramService.GetAccount should have comment or be unexported (golint)
    • Line 50: warning: exported type TelegramBot should have comment or be unexported (golint)
    • Line 74: warning: exported method BotsTelegramService.GetBots should have comment or be unexported (golint)
    • Line 85: warning: exported type TelegramBotContact should have comment or be unexported (golint)
    • Line 104: warning: exported method BotsTelegramService.GetContact should have comment or be unexported (golint)
    • Line 115: warning: exported method BotsTelegramService.GetContactsByTag should have comment or be unexported (golint)
    • Line 126: warning: exported method BotsTelegramService.GetContactsByVariable should have comment or be unexported (golint)
    • Line 148: warning: exported method BotsTelegramService.SendTextToContact should have comment or be unexported (golint)
    • Line 167: warning: exported method BotsTelegramService.SetVariableToContact should have comment or be unexported (golint)
    • Line 190: warning: exported method BotsTelegramService.SetTagsToContact should have comment or be unexported (golint)
    • Line 209: warning: exported method BotsTelegramService.DeleteTagFromContact should have comment or be unexported (golint)
    • Line 228: warning: exported method BotsTelegramService.DisableContact should have comment or be unexported (golint)
    • Line 245: warning: exported method BotsTelegramService.EnableContact should have comment or be unexported (golint)
    • Line 262: warning: exported method BotsTelegramService.DeleteContact should have comment or be unexported (golint)
    • Line 279: warning: exported method BotsTelegramService.GetPauseAutomation should have comment or be unexported (golint)
    • Line 292: warning: exported method BotsTelegramService.SetPauseAutomation should have comment or be unexported (golint)
    • Line 310: warning: exported method BotsTelegramService.DeletePauseAutomation should have comment or be unexported (golint)
    • Line 326: warning: exported method BotsTelegramService.GetBotVariables should have comment or be unexported (golint)
    • Line 337: warning: exported method BotsTelegramService.GetFlows should have comment or be unexported (golint)
    • Line 348: warning: exported method BotsTelegramService.RunFlow should have comment or be unexported (golint)
    • Line 369: warning: exported method BotsTelegramService.RunFlowByTrigger should have comment or be unexported (golint)
    • Line 390: warning: exported method BotsTelegramService.GetBotTriggers should have comment or be unexported (golint)
    • Line 401: warning: exported type TelegramBotMessage should have comment or be unexported (golint)
    • Line 412: warning: exported type TelegramBotChat should have comment or be unexported (golint)
    • Line 418: warning: exported method BotsTelegramService.GetBotChats should have comment or be unexported (golint)
    • Line 429: warning: exported method BotsTelegramService.GetContactMessages should have comment or be unexported (golint)
    • Line 440: warning: exported type TelegramBotSendCampaignParams should have comment or be unexported (golint)
    • Line 447: warning: exported type TelegramBotCampaignMessage should have comment or be unexported (golint)
    • Line 454: warning: exported method BotsTelegramService.SendCampaign should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/emails_templates_service.go
    • Line 11: warning: exported type TemplatesService should have comment or be unexported (golint)
    • Line 19: warning: exported method TemplatesService.CreateTemplate should have comment or be unexported (golint)
    • Line 45: warning: exported method TemplatesService.UpdateTemplate should have comment or be unexported (golint)
    • Line 65: warning: exported type TemplateCategory should have comment or be unexported (golint)
    • Line 74: warning: exported type Template should have comment or be unexported (golint)
    • Line 94: warning: exported method Template.UnmarshalJSON should have comment or be unexported (golint)
    • Line 105: warning: exported method TemplatesService.GetTemplate should have comment or be unexported (golint)
    • Line 112: warning: exported method TemplatesService.GetTemplates should have comment or be unexported (golint)
    • sendpulse-sdk-go/sendpulse/sms_service.go
    • Line 13: warning: exported type SmsService should have comment or be unexported (golint)
    • Line 21: warning: exported type SmsVariable should have comment or be unexported (golint)
    • Line 27: warning: exported type AddPhonesCounters should have comment or be unexported (golint)
    • Line 33: warning: exported method SmsService.AddPhones should have comment or be unexported (golint)
    • Line 50: warning: exported type PhoneWithVariable should have comment or be unexported (golint)
    • Line 55: warning: exported method SmsService.AddPhonesWithVariables should have comment or be unexported (golint)
    • Line 80: warning: exported method SmsService.UpdateVariablesSingle should have comment or be unexported (golint)
    • Line 96: warning: exported method SmsService.UpdateVariablesMultiple should have comment or be unexported (golint)
    • Line 117: warning: exported method SmsService.DeletePhones should have comment or be unexported (golint)
    • Line 136: warning: exported type PhoneInfo should have comment or be unexported (golint)
    • Line 142: warning: exported method SmsService.GetPhoneInfo should have comment or be unexported (golint)
    • Line 152: warning: exported method SmsService.AddToBlacklist should have comment or be unexported (golint)
    • Line 172: warning: exported method SmsService.RemoveFromBlacklist should have comment or be unexported (golint)
    • Line 190: warning: exported type BlacklistPhone should have comment or be unexported (golint)
    • Line 196: warning: exported method SmsService.GetBlacklistedPhones should have comment or be unexported (golint)
    • Line 226: warning: exported type CreateSmsCampaignByAddressBookParams should have comment or be unexported (golint)
    • Line 236: warning: exported method SmsService.CreateCampaignByMailingList should have comment or be unexported (golint)
    • Line 247: warning: exported type CreateSmsCampaignByPhonesParams should have comment or be unexported (golint)
    • Line 257: warning: exported method SmsService.CreateCampaignByPhones should have comment or be unexported (golint)
    • Line 268: warning: exported type SmsCampaign should have comment or be unexported (golint)
    • Line 279: warning: exported method SmsService.GetCampaigns should have comment or be unexported (golint)
    • Line 295: warning: exported type SmsCampaignInfo should have comment or be unexported (golint)
    • Line 312: warning: exported method SmsService.GetCampaignInfo should have comment or be unexported (golint)
    • Line 323: warning: exported method SmsService.CancelCampaign should have comment or be unexported (golint)
    • Line 333: warning: exported type SmsCampaignCostParams should have comment or be unexported (golint)
    • Line 341: warning: exported type SmsCampaignCampaignCost should have comment or be unexported (golint)
    • Line 346: warning: exported method SmsService.GetCampaignCost should have comment or be unexported (golint)
    • Line 376: warning: exported type SmsSender should have comment or be unexported (golint)
    • Line 385: warning: exported method SmsService.GetSenders should have comment or be unexported (golint)
    • Line 393: warning: exported method SmsService.DeleteCampaign should have comment or be unexported (golint)

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!