-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix deepsource: RVV-B0001 confusing naming of struct fields or methods #1844
Fix deepsource: RVV-B0001 confusing naming of struct fields or methods #1844
Conversation
Deploying with Cloudflare Pages
|
Codecov ReportBase: 30.55% // Head: 30.54% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1844 +/- ##
==========================================
- Coverage 30.55% 30.54% -0.01%
==========================================
Files 367 367
Lines 33830 33821 -9
==========================================
- Hits 10337 10331 -6
+ Misses 23082 23079 -3
Partials 411 411
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -2793,10 +2793,10 @@ func Test_mySQLClient_SetVectors(t *testing.T) { | |||
} | |||
} | |||
|
|||
func Test_mySQLClient_deleteVector(t *testing.T) { | |||
func Test_mySQLClient_DeleteVector(t *testing.T) { |
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.
🚫 [golangci] reported by reviewdog 🐶
Function name: Test_mySQLClient_DeleteVector, Cyclomatic Complexity: 14, Halstead Volume: 15129.92, Maintainability Index: 8 (maintidx)
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.
Since it is test function, it is hard to avoid complex implementation.
I will ignore this warning.
Please let me know it you have any other comment for this warning. :)
internal/net/grpc/pool/pool.go
Outdated
} | ||
|
||
func (p *pool) get(retry uint64) (*ClientConn, bool) { | ||
if retry <= 0 || retry > math.MaxUint64-p.Len() || p.Len() <= 0 { |
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.
Do anyone know what is the checking retry > math.MaxUint64-p.Len()
means here? I have omitted it on my refactoring.
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.
@kpango do you know what is the meaning of this logic?
I wanted to refactor it but I can't understand what it means, so I couldn't complete this refactoring for now.
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
6b68077
to
91e4db3
Compare
Signed-off-by: kevindiu <[email protected]>
…t-fields-or-methods
Signed-off-by: kevindiu <[email protected]>
…t-fields-or-methods
Description:
This PR includes the following changes.
please review the
merge unexported function
items carefully, as they contains refactoring and may contains logical changes.search()
->doSearch()
,open()
->doOpen()
internal/net/http/transport/roundtrip.go
and test to close the request/response bodyRelated Issue:
Versions:
Checklist:
Special notes for your reviewer: