-
Notifications
You must be signed in to change notification settings - Fork 24
refactor: enable linter rule ST1005 for error string formatting #73
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #73 +/- ##
==========================================
- Coverage 63.19% 63.18% -0.02%
==========================================
Files 210 210
Lines 22187 22187
==========================================
- Hits 14021 14018 -3
- Misses 7081 7082 +1
- Partials 1085 1087 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zimeg
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.
@mwbrooks I'm hesitating on these changes since I'm not sure that we want to use Errorf in general?
Patterns around slackerror with custom messages seem best to me since it allows us to have coded errors, but these changes might be better for another PR.
Please let me know how you're wanting to proceed! 👾 ✨
|
@zimeg My two-cents is that the code is currently using What do you think? I can handle the follow-up PR to move to |
zimeg
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.
@mwbrooks Incredible focus once more 👁️🗨️
It makes so much sense to make additional changes to errors in a separate PR, meaning this all LGTM! 🤖 ✨
|
@zimeg Awesome, I agree, I like the continue momentum forward with smaller, focused PRs rather than trying to jump ahead. I'll resolve the merge conflict, merge this one in, and then look at updating these |
Summary
This pull request enables the linter
staticcheckruleST1005: 'Incorrectly formatted error string'.In general, it's enforces the following:
.)Requirements