-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add org-canonical .coderabbit.yaml #21
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # This configuration is a copy of the organization-canonical CodeRabbit config. | ||
| # Source of truth: cachekit-io/.github/.coderabbit.yaml | ||
| # Keep this file in sync when the canonical version updates. | ||
| # | ||
| # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json | ||
| language: "en-AU" | ||
| early_access: false | ||
|
|
||
| reviews: | ||
| profile: "assertive" | ||
| request_changes_workflow: true | ||
| high_level_summary: true | ||
| poem: false | ||
| review_status: true | ||
| collapse_walkthrough: false | ||
|
|
||
| auto_review: | ||
| enabled: true | ||
| drafts: false | ||
|
|
||
| path_instructions: | ||
| - path: "**/*.rs" | ||
| instructions: | | ||
| Rust code. Check for unsafe blocks, unwrap abuse, missing error propagation, | ||
| and clippy-level issues. Prefer Result over panic. Pay special attention to | ||
| FFI boundaries (NAPI, PyO3) — verify buffer lengths, null checks, and that | ||
| keys/secrets are zeroized on drop. | ||
| - path: "**/*.py" | ||
| instructions: | | ||
| Python code. Enforce ruff compatibility, type hints on public APIs, | ||
| guard clauses over nesting. No bare except clauses. Secrets must use | ||
| pydantic SecretStr. Config via pydantic-settings only. | ||
| - path: "**/*.ts" | ||
| instructions: | | ||
| TypeScript code. Strict mode, no `any` types on public APIs. | ||
| Verify async error handling — no unhandled promise rejections. | ||
| Check that NAPI bindings match Rust function signatures exactly. | ||
| - path: "**/encryption/**" | ||
| instructions: | | ||
| Security-critical encryption code. Verify AAD v0x03 format compliance, | ||
| key length validation (exactly 32 bytes), nonce uniqueness, and that | ||
| keys never leak into error messages or logs. Cross-reference with | ||
| protocol spec at https://github.com/cachekit-io/protocol. | ||
| - path: ".github/workflows/**" | ||
| instructions: | | ||
| GitHub Actions workflows. All actions MUST be pinned to full 40-char SHA | ||
| with a version comment (e.g., `@a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0` # v6). Never use tag refs. | ||
| - path: "**/Dockerfile*" | ||
| instructions: | | ||
| Dockerfiles. Check for missing cleanup (rm -rf /var/lib/apt/lists/*), | ||
| unnecessary layers, running as root, and unpinned base images. | ||
|
|
||
| tools: | ||
| shellcheck: | ||
| enabled: true | ||
| actionlint: | ||
| enabled: true | ||
| gitleaks: | ||
| enabled: true | ||
| ruff: | ||
| enabled: true | ||
| yamllint: | ||
| enabled: true | ||
| hadolint: | ||
| enabled: true | ||
| biome: | ||
| enabled: true | ||
| eslint: | ||
| enabled: true | ||
|
|
||
| chat: | ||
| auto_reply: true | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.