chore: sync core infrastructure (shell hooks, post-edit pattern, yamllint)#6
Conversation
|
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. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis pull request introduces shell script validation infrastructure by adding pre-commit hooks ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
There was a problem hiding this comment.
Pull request overview
This PR synchronizes repo “core infrastructure” by expanding linting/formatting automation (pre-commit + Claude hook) and aligning YAML lint rules and documentation to the project’s 120-char line-length standard.
Changes:
- Add local pre-commit hooks for shell script linting/formatting validation (shellcheck + shellharden).
- Rewrite
.claude/hooks/post-edit.shto format.shand.mdfiles after edits using aTOOL_INPUT_FILE_PATH-based flow. - Update
.yamllint.ymldefaults (120 max line length, truthy key handling, consistent sequence indentation) and document shell policies inCLAUDE.md.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
CLAUDE.md |
Documents the new shell tooling and updates Claude post-edit hook behavior description. |
.yamllint.yml |
Tightens YAML lint configuration (line length, truthy keys, sequence indentation consistency). |
.pre-commit-config.yaml |
Adds shellcheck/shellharden hooks for shell file validation. |
.claude/hooks/post-edit.sh |
Updates post-edit automation to run shellharden/markdownlint and manage exec bit for shebang scripts. |
Summary
.claude/hooks/post-edit.shto useTOOL_INPUT_FILE_PATHenv var pattern with shellharden auto-fix for.shand markdownlint for.md.yamllint.yml: reduce line-length to 120, usecheck-keys: falsefor truthy, useconsistentindent-sequences.claude/hooks 2,.claude/skills 2)Test plan
pre-commit run --all-filespasses (all 20 hooks green)Summary by CodeRabbit