-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
chore: refactor code quality issues #8932
Conversation
Hi. Thanks for taking the time to submit this patch and help making Cosmos SDK better! This looks good to me as long as tests pass 👍 |
Test failures are unrelated and this PR can be merged as soon as we fix the race condition. My ACK still stands 👍 |
Codecov Report
@@ Coverage Diff @@
## master #8932 +/- ##
==========================================
- Coverage 59.27% 59.23% -0.05%
==========================================
Files 571 571
Lines 31827 31800 -27
==========================================
- Hits 18867 18837 -30
- Misses 10757 10761 +4
+ Partials 2203 2202 -1
|
@alessio Thanks for approving this! I'd just like to inform you that the issues fixed here were detected by running DeepSource analysis on the repo. If you like, you can activate analysis for your repository to detect such code quality issues/bug risks on the fly for every change made. You can also use the Autofix feature to fix them with one click. Here's what you can do if you wish to activate DeepSource to continuously analyze your repository:
If you have any doubts or questions, you can check out the docs, or feel free to reach out :) |
@alessio @alexanderbez @aaronc |
That'd be appreciated |
@alessio, you just need to follow these quick steps to activate it for this repo:
|
Description
Hey, I'm a Developer Outreach at DeepSource and ran DeepSource analysis on my fork of the repo. It found some interesting code quality improvements to consider.
This PR fixes a few of the issues detected for you to assess if it is right for you.
Happy to provide the tweaks separately otherwise :)
Summary of changes
bytes.Buffer
bytes.Compare
withbytes.Equal
.deepsource.toml
file for continuous analysis on bug risks/performance/code-quality issues on new changes.docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes