Preparing report...

Report for github.com/sendgrid/sendgrid-go

A+    Excellent!    Found 3 issues across 39 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!


golint92%

Golint is a linter for Go source code.

    • sendgrid-go/sendgrid.go
    • Line 15: warning: comment on exported function GetRequest should be of the form "GetRequest ..." (golint)
    • Line 51: warning: comment on exported function NewSendClientSubuser should be of the form "NewSendClientSubuser ..." (golint)
    • sendgrid-go/examples/senderauthentication/senderauthentication.go
    • Line 11: warning: comment on exported function Createadomainwhitelabel should be of the form "Createadomainwhitelabel ..." (golint)
    • Line 40: warning: comment on exported function Listalldomainwhitelabels should be of the form "Listalldomainwhitelabels ..." (golint)
    • Line 64: warning: comment on exported function Getthedefaultdomainwhitelabel should be of the form "Getthedefaultdomainwhitelabel ..." (golint)
    • Line 81: warning: comment on exported function Listthedomainwhitelabelassociatedwiththegivenuser should be of the form "Listthedomainwhitelabelassociatedwiththegivenuser ..." (golint)
    • Line 98: warning: comment on exported function Disassociateadomainwhitelabelfromagivenuser should be of the form "Disassociateadomainwhitelabelfromagivenuser ..." (golint)
    • Line 115: warning: comment on exported function Updateadomainwhitelabel should be of the form "Updateadomainwhitelabel ..." (golint)
    • Line 136: warning: comment on exported function Retrieveadomainwhitelabel should be of the form "Retrieveadomainwhitelabel ..." (golint)
    • Line 153: warning: comment on exported function Deleteadomainwhitelabel should be of the form "Deleteadomainwhitelabel ..." (golint)
    • Line 170: warning: comment on exported function Associateadomainwhitelabelwithagivenuser should be of the form "Associateadomainwhitelabelwithagivenuser ..." (golint)
    • Line 190: warning: comment on exported function AddanIPtoadomainwhitelabel should be of the form "AddanIPtoadomainwhitelabel ..." (golint)
    • Line 210: warning: comment on exported function RemoveanIPfromadomainwhitelabel should be of the form "RemoveanIPfromadomainwhitelabel ..." (golint)
    • Line 227: warning: comment on exported function Validateadomainwhitelabel should be of the form "Validateadomainwhitelabel ..." (golint)
    • Line 244: warning: comment on exported function CreateanIPwhitelabel should be of the form "CreateanIPwhitelabel ..." (golint)
    • Line 266: warning: comment on exported function RetrieveallIPwhitelabels should be of the form "RetrieveallIPwhitelabels ..." (golint)
    • Line 288: warning: comment on exported function RetrieveanIPwhitelabel should be of the form "RetrieveanIPwhitelabel ..." (golint)
    • Line 305: warning: comment on exported function DeleteanIPwhitelabel should be of the form "DeleteanIPwhitelabel ..." (golint)
    • Line 322: warning: comment on exported function ValidateanIPwhitelabel should be of the form "ValidateanIPwhitelabel ..." (golint)
    • Line 339: warning: comment on exported function CreateaLinkWhitelabel should be of the form "CreateaLinkWhitelabel ..." (golint)
    • Line 365: warning: comment on exported function Retrievealllinkwhitelabels should be of the form "Retrievealllinkwhitelabels ..." (golint)
    • Line 385: warning: comment on exported function RetrieveaDefaultLinkWhitelabel should be of the form "RetrieveaDefaultLinkWhitelabel ..." (golint)
    • Line 405: warning: comment on exported function RetrieveAssociatedLinkWhitelabel should be of the form "RetrieveAssociatedLinkWhitelabel ..." (golint)
    • Line 425: warning: comment on exported function DisassociateaLinkWhitelabel should be of the form "DisassociateaLinkWhitelabel ..." (golint)
    • Line 445: warning: comment on exported function UpdateaLinkWhitelabel should be of the form "UpdateaLinkWhitelabel ..." (golint)
    • Line 465: warning: comment on exported function RetrieveaLinkWhitelabel should be of the form "RetrieveaLinkWhitelabel ..." (golint)
    • Line 482: warning: comment on exported function DeleteaLinkWhitelabel should be of the form "DeleteaLinkWhitelabel ..." (golint)
    • Line 499: warning: comment on exported function ValidateaLinkWhitelabel should be of the form "ValidateaLinkWhitelabel ..." (golint)
    • Line 516: warning: comment on exported function AssociateaLinkWhitelabel should be of the form "AssociateaLinkWhitelabel ..." (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!