forked from openreelio/openreelio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
103 lines (89 loc) · 2.7 KB
/
.coderabbit.yaml
File metadata and controls
103 lines (89 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-US"
# Early access features
early_access: false
reviews:
# Use "chill" for balanced reviews - not too strict, not too lenient
profile: chill
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: true
# Don't auto-request changes - let maintainers decide
request_changes_workflow: false
# Files to exclude from review
path_filters:
- "!**/package-lock.json"
- "!**/Cargo.lock"
- "!**/dist/**"
- "!**/target/**"
- "!**/node_modules/**"
- "!**/*.tsbuildinfo"
- "!**/bindings.ts"
# Exclude generated files
- "!**/generated/**"
# Path-specific instructions for focused reviews
path_instructions:
- path: "**/*.rs"
instructions: |
Focus on:
- Proper error handling (avoid unwrap() in production)
- Memory safety and ownership patterns
- Async/await correctness
- Thread safety for shared state
- path: "src-tauri/src/core/**/*.rs"
instructions: |
This is core business logic. Pay extra attention to:
- Event sourcing correctness
- Command/operation atomicity
- State consistency
- path: "**/*.tsx"
instructions: |
Focus on:
- React hooks rules and dependencies
- Component performance (memo, useMemo, useCallback)
- Prop types and interfaces
Skip minor accessibility suggestions unless they affect core functionality.
- path: "src/services/**/*.ts"
instructions: |
These are critical service modules. Focus on:
- Singleton pattern correctness
- State management consistency
- Memory leaks in subscriptions
- Proper cleanup in hooks
- path: "src/hooks/**/*.ts"
instructions: |
Focus on:
- React hooks rules compliance
- Dependency array correctness
- Cleanup functions in useEffect
- Performance implications
- path: "**/*.test.{ts,tsx}"
instructions: |
Focus on:
- Test coverage for edge cases
- Proper mocking and cleanup
- Assertion quality
- path: "docs/**/*.md"
instructions: |
Focus on content accuracy only.
Skip markdown style/formatting issues (MD060, MD034, etc.)
auto_review:
enabled: true
drafts: false
base_branches:
- main
ignore_title_keywords:
- "WIP"
- "DO NOT MERGE"
- "[skip ci]"
# Tool configurations
tools:
# Disable markdownlint for docs to reduce noise
markdownlint:
enabled: true
# Enable shellcheck for bash scripts
shellcheck:
enabled: true
chat:
auto_reply: true