-
Notifications
You must be signed in to change notification settings - Fork 355
Lint fixes part 12 #2668
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
Lint fixes part 12 #2668
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2668 +/- ##
==========================================
- Coverage 79.43% 79.41% -0.01%
==========================================
Files 455 455
Lines 47156 47159 +3
==========================================
- Hits 37455 37448 -7
- Misses 6945 6957 +12
+ Partials 2756 2754 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tstirrat15
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.
See comments
|
|
||
| runErrCh := make(chan error, 1) | ||
| go func() { | ||
| require.NoError(t, srv.Run(ctx)) |
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 checked to make sure that this test still runs, and it appears to.
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.
what do you mean by that? why would this test not be running?
| if fd.Kind() == protoreflect.MessageKind { | ||
| if fd.IsList() { | ||
| l := v.List() | ||
| for i := 0; i < l.Len(); i++ { | ||
| filterSourcePositions(l.Get(i).Message()) | ||
| } | ||
| } else if fd.IsMap() { | ||
| m := v.Map() | ||
| m.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { | ||
| filterSourcePositions(v.Message()) | ||
| return true | ||
| }) | ||
| switch { | ||
| case fd.Kind() == protoreflect.MessageKind && fd.IsList(): |
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.
This satisfies the linter but also reads a little weird to me - I'm happy to try for a refactor if desired.
Co-authored-by: James Thomas <[email protected]>
… the test function (testifylint)
…th `cfg.MaxOpenConns /= 2` (gocritic)
469bc3e to
b0ca9c1
Compare
Part of parting out #2455
Description
This is the last component of #2455, with the exception of enabling the linters and fixing the garbage collection test. We're getting very close.
Changes
See comments
Testing
Review. See that tests pass.