-
Notifications
You must be signed in to change notification settings - Fork 37
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: Cosmos-SDK & IBC swagger-code generation #192
Conversation
WalkthroughRecent changes focus on refining the Cosmos SDK integration. Updates include modifying the Changes
Poem
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 Configration File (
|
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: 2
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- Makefile (1 hunks)
- docs/config.json (1 hunks)
- proto/generate.sh (2 hunks)
Files skipped from review due to trivial changes (1)
- Makefile
Additional comments not posted (4)
proto/generate.sh (4)
7-7
: Ensure the use offind ... -print0 | xargs -0
for robust handling of filenames with special characters.
10-10
: The approach to create a comma-separated list ofmodule.proto
files is consistent with the previous change, ensuring uniformity in handling file lists.
27-27
: Verify that thebuf generate
command correctly handles the comma-separated list of proto files.
48-48
: Confirm that the exclusion of problematic files (query.proto
andservice.proto
) from swagger generation is correctly implemented.
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: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- CHANGELOG.md (1 hunks)
- Makefile (1 hunks)
- docs/config.json (1 hunks)
- proto/generate.sh (2 hunks)
Files skipped from review as they are similar to previous changes (2)
- Makefile
- docs/config.json
Additional context used
Shellcheck
proto/generate.sh
[warning] 58-58: In POSIX sh, [[ ]] is undefined.
[style] 58-58: Use -n instead of ! -z.
LanguageTool
CHANGELOG.md
[style] ~101-~101: Using many exclamation marks might seem excessive (in this case: 24 exclamation marks for a text that’s 11778 characters long)
Context: ...de auth module. ### Client Breaking - ! (x/stakers
) [#46](https://github.com/...
Additional comments not posted (3)
proto/generate.sh (2)
8-8
: The changes toproto_list
andmodule_list
improve the robustness of file handling by correctly managing filenames with special characters.Also applies to: 11-11
28-28
: Proper quoting of$proto_list
in thebuf generate
command enhances the handling of paths with spaces.CHANGELOG.md (1)
41-41
: The changelog entry correctly documents the improvements made in the Cosmos-SDK & IBC swagger-code generation.
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
Please pull code and run
make proto-gen
to verify that it runs properly on your machines.Summary by CodeRabbit
Documentation
Chores
Makefile
to enhanceproto-gen
target with new volume mounts forcosmos-sdk
andibc-go
.proto/generate.sh
script for improved handling of proto files and generation of documentation.Bug Fixes