t135.9.2: Add trap cleanup for mktemp temp files across 14 scripts#485
t135.9.2: Add trap cleanup for mktemp temp files across 14 scripts#485marcusquinn merged 1 commit intomainfrom
Conversation
Add 'trap ... RETURN' guards after mktemp calls to ensure temporary files are cleaned up on early returns or errors. Also chain jq+mv with && to prevent data loss if jq fails. Scripts updated: add-skill-helper, agent-test-helper, clawdhub-helper, cron-dispatch, cron-helper, keyword-research-helper, linters-local, markdown-formatter, markdown-lint-fix, matrix-dispatch-helper, runner-helper, secretlint-helper, seo-analysis-helper, site-crawler-helper, skill-update-helper, sonarscanner-cli, terminal-title-setup, watercrawl-helper
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ 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 |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Sat Feb 7 21:21:52 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|



Summary
trap 'rm -f "$temp_file"' RETURNguards aftermktempcalls to ensure temporary files are cleaned up on early returns or errorsjq > tmp && mv tmp targetwith&&to prevent data loss ifjqfailsScripts updated: add-skill-helper, agent-test-helper, clawdhub-helper, cron-dispatch, cron-helper, keyword-research-helper, linters-local, markdown-formatter, markdown-lint-fix, matrix-dispatch-helper, runner-helper, secretlint-helper, seo-analysis-helper, site-crawler-helper, skill-update-helper, sonarscanner-cli, terminal-title-setup, watercrawl-helper
Closes #135