fix(shellcheck): add -r to shell version prelude reads - #1116
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR updates shell version parsing to use the ChangesShell Version Parsing
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Thanks a lot :-) |
|
Thanks for the review and merge. Small process note: I used our Premature Contribution Firewall (PCF) workflow to keep this Amber contribution narrow, check for overlapping work first, and verify the generated output before opening the PR. |
Addresses the
SC2162(readwithout-r) portion of #897.Summary
-rto the generated shell-version preludereadcalls for zsh and ksh.Validation
docker run --rm -v /home/rage/.local/share/pcf/amber-897:/mnt koalam 8000 an/shellcheck:stable --exclude=SC2296,SC2034 /mnt/shellversion-before.sh(reproduces twoSC2162findings before the fix)docker run --rm -v /home/rage/.local/share/pcf/amber-897:/mnt koalaman/shellcheck:stable --exclude=SC2296,SC2034 /mnt/shellversion-after.shcargo test test_translate_shellversion_preamble -- --nocapturecargo test test_translate_shellname_and_shellversion_share_single_preamble -- --nocapturecargo test --all-targets --all-featurescargo clippy --all-targets --all-features -- -D warningsgit diff --checkNote: this intentionally leaves the other ShellCheck classes from #897 for separate focused fixes.
Summary by CodeRabbit
Release Notes