-
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: fix errors reported by running make lint
#21015
Conversation
WalkthroughWalkthroughThe recent changes focus on improving code clarity and maintainability across several test files in the project. Enhancements include repositioning comments for better readability, marking helper functions to improve error reporting, and simplifying function signatures. These modifications are cosmetic in nature and do not impact the underlying functionality of the code. Overall, the adjustments contribute to cleaner, more understandable test code. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
bea1338
to
4f8dc7d
Compare
make lint
make lint
make lint
make lint
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.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yml
Review profile: CHILL
Files selected for processing (5)
- indexer/postgres/tests/init_schema_test.go (1 hunks)
- schema/decoding/decoding_test.go (4 hunks)
- schema/decoding/resolver_test.go (1 hunks)
- schema/decoding/sync.go (1 hunks)
- x/accounts/defaults/lockup/continuous_locking_account_test.go (1 hunks)
Files skipped from review due to trivial changes (4)
- indexer/postgres/tests/init_schema_test.go
- schema/decoding/resolver_test.go
- schema/decoding/sync.go
- x/accounts/defaults/lockup/continuous_locking_account_test.go
Additional context used
Path-based instructions (1)
schema/decoding/decoding_test.go (2)
Pattern
**/*.go
: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.
Pattern
**/*_test.go
: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"
Additional comments not posted (4)
schema/decoding/decoding_test.go (4)
71-71
: LGTM!The comment explaining why constants are not used in the
ModuleFilter
function enhances code readability.
179-179
: LGTM!Marking
newTestFixture
witht.Helper()
improves error reporting, and the return type change ensures consistency.
250-250
: LGTM!The simplified function signature for
IterateAllKVPairs
enhances readability without altering functionality.
271-271
: LGTM!Marking
newTestStore
witht.Helper()
improves error reporting.
Description
This pr fixes all the errors reported by
make lint
in the current main branchSummary by CodeRabbit
Bug Fixes
Style
Documentation