-
Notifications
You must be signed in to change notification settings - Fork 368
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
Disallow fmt.Errorf usage through code validation #433
Conversation
Came across during a code review, new contributors can end up using fmt.Errorf which does not create stack trace at the error site --and also doesn't preserve stack trace if used to wrap an error. Signed-off-by: Ahmet Alp Balkan <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #433 +/- ##
=======================================
Coverage 56.35% 56.35%
=======================================
Files 19 19
Lines 928 928
=======================================
Hits 523 523
Misses 350 350
Partials 55 55
Continue to review full report at Codecov.
|
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
Related to #414, when it's done, this should be removed too. |
Yeah. We have to wait until Cornelius to come back from vacation to merge things. :) |
Huh, holidays? Nah, I was just being slow.. 🎄 🎅 time.. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, corneliusweig The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Came across during a code review, new contributors can end up using fmt.Errorf
which does not create stack trace at the error site --and also doesn't preserve
stack trace if used to wrap an error.