Preparing report...

Report for github.com/mailjet/mailjet-apiv3-go

A+    Excellent!    Found 5 issues across 18 files

Tweet

gofmt88%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint94%

Golint is a linter for Go source code.

    • mailjet-apiv3-go/resources/resources.go
    • Line 14: warning: comment on exported type Aggregategraphstatistics should be of the form "Aggregategraphstatistics ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported type Apikey should be of the form "Apikey ..." (with optional leading article) (golint)
    • Line 51: warning: comment on exported type Apikeyaccess should be of the form "Apikeyaccess ..." (with optional leading article) (golint)
    • Line 68: warning: comment on exported type Apikeytotals should be of the form "Apikeytotals ..." (with optional leading article) (golint)
    • Line 82: warning: comment on exported type Apitoken should be of the form "Apitoken ..." (with optional leading article) (golint)
    • Line 102: warning: comment on exported type Axtesting should be of the form "Axtesting ..." (with optional leading article) (golint)
    • Line 128: warning: comment on exported type Batchjob should be of the form "Batchjob ..." (with optional leading article) (golint)
    • Line 150: warning: comment on exported type Bouncestatistics should be of the form "Bouncestatistics ..." (with optional leading article) (golint)
    • Line 163: warning: comment on exported type Campaign should be of the form "Campaign ..." (with optional leading article) (golint)
    • Line 195: warning: comment on exported type Campaignaggregate should be of the form "Campaignaggregate ..." (with optional leading article) (golint)
    • Line 212: warning: comment on exported type Campaigndraft should be of the form "Campaigndraft ..." (with optional leading article) (golint)
    • Line 245: warning: comment on exported type CampaigndraftSchedule should be of the form "CampaigndraftSchedule ..." (with optional leading article) (golint)
    • Line 250: warning: comment on exported type CampaigndraftTest should be of the form "CampaigndraftTest ..." (with optional leading article) (golint)
    • Line 255: warning: comment on exported type CampaigndraftDetailcontent should be of the form "CampaigndraftDetailcontent ..." (with optional leading article) (golint)
    • Line 263: warning: comment on exported type Campaigngraphstatistics should be of the form "Campaigngraphstatistics ..." (with optional leading article) (golint)
    • Line 273: warning: comment on exported type Campaignoverview should be of the form "Campaignoverview ..." (with optional leading article) (golint)
    • Line 290: warning: comment on exported type Campaignstatistics should be of the form "Campaignstatistics ..." (with optional leading article) (golint)
    • Line 313: warning: comment on exported type Clickstatistics should be of the form "Clickstatistics ..." (with optional leading article) (golint)
    • Line 325: warning: comment on exported type Contact should be of the form "Contact ..." (with optional leading article) (golint)
    • Line 340: warning: comment on exported type ContactManagecontactslists should be of the form "ContactManagecontactslists ..." (with optional leading article) (golint)
    • Line 345: warning: comment on exported type ContactManagemanycontacts should be of the form "ContactManagemanycontacts ..." (with optional leading article) (golint)
    • Line 352: warning: comment on exported type Contactdata should be of the form "Contactdata ..." (with optional leading article) (golint)
    • Line 359: warning: comment on exported type Contactfilter should be of the form "Contactfilter ..." (with optional leading article) (golint)
    • Line 368: warning: comment on exported type Contacthistorydata should be of the form "Contacthistorydata ..." (with optional leading article) (golint)
    • Line 378: warning: comment on exported type Contactmetadata should be of the form "Contactmetadata ..." (with optional leading article) (golint)
    • Line 386: warning: comment on exported type Contactslist should be of the form "Contactslist ..." (with optional leading article) (golint)
    • Line 396: warning: comment on exported type ContactslistManageContact should be of the form "ContactslistManageContact ..." (with optional leading article) (golint)
    • Line 410: warning: comment on exported type ContactslistManageManyContacts should be of the form "ContactslistManageManyContacts ..." (with optional leading article) (golint)
    • Line 417: warning: comment on exported type ContactslistImportList should be of the form "ContactslistImportList ..." (with optional leading article) (golint)
    • Line 424: warning: comment on exported type Contactslistsignup should be of the form "Contactslistsignup ..." (with optional leading article) (golint)
    • Line 441: warning: comment on exported type Contactstatistics should be of the form "Contactstatistics ..." (with optional leading article) (golint)
    • Line 459: warning: comment on exported type Csvimport should be of the form "Csvimport ..." (with optional leading article) (golint)
    • Line 478: warning: comment on exported type Dns should be of the form "Dns ..." (with optional leading article) (golint)
    • Line 493: warning: exported type DnsCheck should have comment or be unexported (golint)
    • Line 502: warning: comment on exported type Domainstatistics should be of the form "Domainstatistics ..." (with optional leading article) (golint)
    • Line 517: warning: comment on exported type Eventcallbackurl should be of the form "Eventcallbackurl ..." (with optional leading article) (golint)
    • Line 530: warning: comment on exported type Geostatistics should be of the form "Geostatistics ..." (with optional leading article) (golint)
    • Line 537: warning: comment on exported type Graphstatistics should be of the form "Graphstatistics ..." (with optional leading article) (golint)
    • Line 552: warning: comment on exported type Listrecipient should be of the form "Listrecipient ..." (with optional leading article) (golint)
    • Line 564: warning: comment on exported type Listrecipientstatistics should be of the form "Listrecipientstatistics ..." (with optional leading article) (golint)
    • Line 580: warning: comment on exported type Liststatistics should be of the form "Liststatistics ..." (with optional leading article) (golint)
    • Line 600: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 628: warning: comment on exported type Messagehistory should be of the form "Messagehistory ..." (with optional leading article) (golint)
    • Line 637: warning: comment on exported type Messageinformation should be of the form "Messageinformation ..." (with optional leading article) (golint)
    • Line 657: warning: comment on exported type Messagesentstatistics should be of the form "Messagesentstatistics ..." (with optional leading article) (golint)
    • Line 685: warning: comment on exported type Messagestate should be of the form "Messagestate ..." (with optional leading article) (golint)
    • Line 692: warning: comment on exported type MessageStatistics should be of the form "MessageStatistics ..." (with optional leading article) (golint)
    • Line 711: warning: comment on exported type Metadata should be of the form "Metadata ..." (with optional leading article) (golint)
    • Line 728: warning: exported type ResourceAction should have comment or be unexported (golint)
    • Line 737: warning: exported type ResourceFilter should have comment or be unexported (golint)
    • Line 746: warning: exported type ResourceProperty should have comment or be unexported (golint)
    • Line 755: warning: comment on exported type Metasender should be of the form "Metasender ..." (with optional leading article) (golint)
    • Line 767: warning: comment on exported type Myprofile should be of the form "Myprofile ..." (with optional leading article) (golint)
    • Line 793: warning: comment on exported type Newsletter should be of the form "Newsletter ..." (with optional leading article) (golint)
    • Line 839: warning: comment on exported type NewsletterDetailcontent should be of the form "NewsletterDetailcontent ..." (with optional leading article) (golint)
    • Line 845: warning: comment on exported type NewsLetterSchedule should be of the form "NewsLetterSchedule ..." (with optional leading article) (golint)
    • Line 850: warning: comment on exported type NewsletterTest should be of the form "NewsletterTest ..." (with optional leading article) (golint)
    • Line 855: warning: comment on exported type Newslettertemplate should be of the form "Newslettertemplate ..." (with optional leading article) (golint)
    • Line 875: warning: comment on exported type Newslettertemplatecategory should be of the form "Newslettertemplatecategory ..." (with optional leading article) (golint)
    • Line 885: warning: comment on exported type Openinformation should be of the form "Openinformation ..." (with optional leading article) (golint)
    • Line 899: warning: comment on exported type Openstatistics should be of the form "Openstatistics ..." (with optional leading article) (golint)
    • Line 906: warning: comment on exported type Parseroute should be of the form "Parseroute ..." (with optional leading article) (golint)
    • Line 915: warning: comment on exported type Preferences should be of the form "Preferences ..." (with optional leading article) (golint)
    • Line 924: warning: comment on exported type Preset should be of the form "Preset ..." (with optional leading article) (golint)
    • Line 938: warning: comment on exported type Sender should be of the form "Sender ..." (with optional leading article) (golint)
    • Line 954: warning: comment on exported type Senderstatistics should be of the form "Senderstatistics ..." (with optional leading article) (golint)
    • Line 970: warning: comment on exported type SenderValidate should be of the form "SenderValidate ..." (with optional leading article) (golint)
    • Line 977: warning: comment on exported type Template should be of the form "Template ..." (with optional leading article) (golint)
    • Line 994: warning: comment on exported type TemplateDetailcontent should be of the form "TemplateDetailcontent ..." (with optional leading article) (golint)
    • Line 1002: warning: comment on exported type MJMLContent should be of the form "MJMLContent ..." (with optional leading article) (golint)
    • Line 1009: warning: comment on exported type Toplinkclicked should be of the form "Toplinkclicked ..." (with optional leading article) (golint)
    • Line 1017: warning: comment on exported type Trigger should be of the form "Trigger ..." (with optional leading article) (golint)
    • Line 1027: warning: comment on exported type User should be of the form "User ..." (with optional leading article) (golint)
    • Line 1042: warning: comment on exported type Useragentstatistics should be of the form "Useragentstatistics ..." (with optional leading article) (golint)
    • Line 1052: warning: comment on exported type Widget should be of the form "Widget ..." (with optional leading article) (golint)
    • Line 1071: warning: comment on exported type Widgetcustomvalue should be of the form "Widgetcustomvalue ..." (with optional leading article) (golint)
    • Line 1082: warning: exported type AXTestMode should have comment or be unexported (golint)
    • Line 1085: warning: exported const AXTestAutomatic should have comment (or a comment on this block) or be unexported (golint)
    • Line 1089: warning: exported type RunLevel should have comment or be unexported (golint)
    • Line 1092: warning: exported const RunNormal should have comment (or a comment on this block) or be unexported (golint)
    • Line 1097: warning: exported type WinnerMethod should have comment or be unexported (golint)
    • Line 1100: warning: exported const WinnerOpenRate should have comment (or a comment on this block) or be unexported (golint)
    • Line 1107: warning: exported type BaseData should have comment or be unexported (golint)
    • Line 1112: warning: exported type SubAccount should have comment or be unexported (golint)
    • Line 1125: warning: exported type Destination should have comment or be unexported (golint)
    • Line 1130: warning: exported type SpamAssassinRule should have comment or be unexported (golint)
    • Line 1136: warning: exported type MessageTemplate should have comment or be unexported (golint)
    • Line 1153: warning: exported type KeyValueList should have comment or be unexported (golint)
    • Line 1155: warning: exported type JSONObject should have comment or be unexported (golint)
    • Line 1157: warning: exported type ContactsListAction should have comment or be unexported (golint)
    • Line 1162: warning: exported type AddContactAction should have comment or be unexported (golint)
    • Line 1168: warning: exported type Recipient should have comment or be unexported (golint)
    • Line 1173: warning: exported type RFC3339DateTime should have comment or be unexported (golint)
    • Line 1177: warning: exported method RFC3339DateTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1188: warning: exported method RFC3339DateTime.MarshalJSON 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!


misspell88%

Misspell Finds commonly misspelled English words