-
Notifications
You must be signed in to change notification settings - Fork 490
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: enable staticcheck for test code and fix issues #5401
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5401 +/- ##
==========================================
- Coverage 55.38% 55.35% -0.03%
==========================================
Files 447 447
Lines 63312 63312
==========================================
- Hits 35063 35045 -18
- Misses 25857 25870 +13
- Partials 2392 2397 +5 see 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@cce please resolve conflicts |
@@ -662,7 +662,7 @@ func BenchmarkBuildVerify(b *testing.B) { | |||
sig, err := signerInRound.SignBytes(data[:]) | |||
require.NoError(b, err, "failed to create keys") | |||
|
|||
partkeys = append(partkeys, signer) | |||
//partkeys = append(partkeys, signer) |
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 completely remove this line?
Summary
The staticcheck linter is one of the golangci-lint linters enabled by default that provides a wide range of advice; this PR enables it for test code and fixes the handful of issues it raised.
Test Plan
Existing tests should pass.