-
Notifications
You must be signed in to change notification settings - Fork 54
ci: fix shellcheck warnings #575
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
Conversation
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe script Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration 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: 3
🧹 Nitpick comments (1)
scripts/setup_new_sdk.sh (1)
1-2
: Harden the script withset -euo pipefail
Consider adding strict-mode flags right after the she-bang to surface errors early and avoid silent mis-behaviour:
#!/usr/bin/env bash set -euo pipefailThis will automatically halt the script on the first non-zero exit code, making the manual
&&
chains largely unnecessary.
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.
Looks better!
@evansims can you take a look at the suggestions identified by coderabbit? They seem sensible |
We might need to fix it fast as the failing tests (Spellchecks) are blocking the merge queue |
3ee9c33
to
42998e8
Compare
I let Coderabbit and Claude take the wheel with a few iteration passes; it looked like they came up with solid improvements. I tested it here locally, and everything works well. |
Description
Fixed errors in
scripts/setup_new_sdk.sh
that were causing theshellcheck
CI pipeline to fail. Removed incorrect command substitution syntax$()
from git and file operation commands, and removed unnecessaryshellcheck disable
comments that were masking the syntax issues.The script was incorrectly using command substitution
$(command)
for commands whose output was being redirected to/dev/null
. This triggered warnings SC2327 and SC2328 because:$()
wrapper pointlessThe fix simply executes the commands directly without the substitution wrapper, maintaining the same functionality while passing shellcheck validation.
References
Review Checklist
main
Summary by CodeRabbit