-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go lint fixes #121
Go lint fixes #121
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of golint errors of the form exported method ... should have comment or be unexported
. Please fix these as well. In general, the comments in the files are of the wrong form.
@andy-trimble - I haven't fixed |
@@ -63,7 +63,7 @@ func TestV3AddPersonalizations(t *testing.T) { | |||
m.AddPersonalizations(personalizations...) | |||
|
|||
if len(m.Personalizations) != numOfPersonalizations { | |||
t.Errorf("Mail should have %d personalizations, got %d personalizations", personalizations, len(m.Personalizations)) | |||
t.Errorf("Mail should have %d personalizations, got %d personalizations", len(personalizations), len(m.Personalizations)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you use len(personalizations)
but on lines 81 and 96, it looks like you used the numOf* variable. Which is preferrable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @mbernier didn't check this review comment. Seems the changes are now merged. Will clean this up in later PR.
I am going to merge this in and make a new PR for the golint issues. Thanks everyone! |
Ref - https://goreportcard.com/report/github.com/sendgrid/sendgrid-go
Ref - Issue Please use a golint tool #64
#190