-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix enforce-switch-style linting errors #7387
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
Let me know if any changes are needed. I’ll be happy to adjust the PR as necessary. |
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.
Please sign off the commit. Will probably need to add unit tests to maintain coverage.
@@ -444,6 +444,8 @@ func mergeJoinIds(left, right [][]byte) [][]byte { | |||
case -1: | |||
// left < right, increase left one | |||
l++ | |||
default: |
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.
Doesn't make sense in this context. I'd rather move case 0 to default (and change the others to greater/less 0)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7387 +/- ##
==========================================
- Coverage 96.46% 96.46% -0.01%
==========================================
Files 375 375
Lines 22878 22910 +32
==========================================
+ Hits 22070 22099 +29
- Misses 611 613 +2
- Partials 197 198 +1
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:
|
Head branch was pushed to by a user without write access
…dling Signed-off-by: Andrei-hub11 <andreirodrigues794@gmail.com>
Signed-off-by: Andrei-hub11 <andreirodrigues794@gmail.com>
Head branch was pushed to by a user without write access
Hi @yurishkuro Sorry for the multiple CI failures. I've now run golangci-lint locally and confirmed all issues are resolved. |
Added
default
cases to switch statements across the codebase to comply with new linting rules.Changes
default
cases to 15+ switch statementsnoctx
error by replacingnet.Listen
with(*net.ListenConfig).Listen
All changes preserve original functionality while satisfying linting requirements.
Closes: #7383
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test