-
Notifications
You must be signed in to change notification settings - Fork 14
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
Handle errors discovered by static linter, staticcheck and ineffassign #614
Conversation
a4b9b1d
to
762ee7a
Compare
3746be5
to
3d5223a
Compare
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.
LGTM
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.
Looks good, just one remark.
3d5223a
to
9185697
Compare
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.
I do not like those seemingly unmotivated nolint:staticcheck
comments. What are the issues there and why can't they be fixed?
9185697
to
3ed799a
Compare
On a per-call basis, to re-evaluate when introducing new ones.
This linter seems to find more errors and it provides a more expressive ignore comment.
3ed799a
to
433f16f
Compare
I changed the linter from golangci-lint to staticcheck, these are different projects:
|
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.
descriptive comments detailing the issue and a number of for the issue to fix it are much appreciated !! thanks
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.
Thanks, I think this way the purpose of those annotations is way cleaner.
The goal is still to enable #608
Three kinds: