Skip to content

Commit ac563a6

Browse files
committed
chore: add CodeRabbit AI code review configuration
- Enable auto review for PRs targeting master - Add path-specific review instructions for C++, TypeScript, and tests - Configure Chinese language for review comments
1 parent 5d19303 commit ac563a6

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.coderabbit.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
language: "zh-CN"
2+
early_access: false
3+
reviews:
4+
profile: "chill"
5+
request_changes_workflow: false
6+
high_level_summary: true
7+
poem: false
8+
review_status: true
9+
collapse_walkthrough: false
10+
auto_review:
11+
enabled: true
12+
drafts: false
13+
base_branches:
14+
- master
15+
path_instructions:
16+
- path: "lib/**/*.cpp"
17+
instructions: |
18+
Review C++ native addon code for:
19+
- Memory safety and RAII patterns
20+
- Thread safety with proper mutex usage
21+
- N-API best practices
22+
- Exception handling in destructors
23+
- path: "lib/**/*.h"
24+
instructions: |
25+
Review C++ headers for:
26+
- Proper include guards
27+
- Forward declarations where possible
28+
- Clean public/private separation
29+
- path: "src/**/*.ts"
30+
instructions: |
31+
Review TypeScript code for:
32+
- Type safety and proper typing
33+
- Async/await patterns
34+
- Error handling
35+
- path: "test/**/*.ts"
36+
instructions: |
37+
Review tests for:
38+
- Test coverage completeness
39+
- Mock usage correctness
40+
- Edge case handling
41+
chat:
42+
auto_reply: true

0 commit comments

Comments
 (0)