-
-
Notifications
You must be signed in to change notification settings - Fork 925
fix: more consistent panic strings #678
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #678 +/- ##
=======================================
Coverage 94.49% 94.49%
=======================================
Files 18 18
Lines 3305 3305
=======================================
Hits 3123 3123
Misses 170 170
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
samber
left a comment
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.
Hey @NathanBaulch
Thanks for this fix. Just a little comment ;)
.github/workflows/lint.yml
Outdated
| - name: golangci-lint | ||
| uses: golangci/golangci-lint-action@v8 | ||
| with: | ||
| version: 'v2.4' |
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.
why not using latest version ?
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 removed this line to allow the merge. Feel free to reply to me in #672.
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.
See #671 for an explanation.
Updated golangci-lint action version to v2.4.
I noticed some inconsistencies in panic strings during my work on #672. I went with the pattern used in
lo.RandomStringando.ChunkStringwith the function name prefix and lower case message. I don't mind what convention is used as long as it's consistent.Note that I haven't touched the panics returned from
Mustwhich use a "must: " prefix in lowercase, since consumers might have recover logic that inspects this relatively common panic message.