-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
123 lines (103 loc) · 3 KB
/
.coderabbit.yaml
File metadata and controls
123 lines (103 loc) · 3 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# .coderabbit.yaml
# CodeRabbit configuration for StackDock monorepo
language: en-US
early_access: false
enable_free_tier: true
reviews:
# Enable automatic code reviews on pull requests
auto_review:
enabled: true
drafts: false # Skip draft PRs
base_branches:
- main
- develop
# Review behavior settings
high_level_summary: true
high_level_summary_placeholder: "@coderabbitai summary"
review_status: true
poem: false
collapse_walkthrough: false
# Request changes workflow
request_changes_workflow: false
# Static analysis tools configuration
tools:
eslint:
enabled: true
markdownlint:
enabled: true
yamllint:
enabled: true
actionlint:
enabled: true
shellcheck:
enabled: true
biome:
enabled: false
ruff:
enabled: false
# Path-based review instructions for monorepo structure
path_instructions:
- path: "apps/web/**/*"
instructions: |
Review Next.js application code with focus on:
- React best practices and hooks usage
- Next.js App Router patterns
- Component design and reusability
- TypeScript type safety
- Performance and rendering optimization
- Accessibility (a11y)
- Error handling and edge cases
- path: "convex/**/*"
instructions: |
Review Convex backend code with focus on:
- Query and mutation function patterns
- Schema design and validation
- Authorization and authentication logic
- Error handling
- Performance and query optimization
- Type safety with Convex validators
- path: "packages/**/*"
instructions: |
Review shared package code with focus on:
- Clean API design and public exports
- Reusability across the monorepo
- TypeScript type safety and generics
- Documentation and usage examples
- Zero breaking changes to dependents
- path: "**/*.test.{ts,tsx,js,jsx}"
instructions: |
Review test files with focus on:
- Test coverage and edge cases
- Test readability and maintainability
- Proper mocking and test isolation
- Assertion quality
- path: ".github/**/*"
instructions: |
Review GitHub configuration with focus on:
- Workflow security and best practices
- Proper secret handling
- Efficient CI/CD patterns
- Action version pinning
# Chat settings
chat:
auto_reply: true
# Knowledge base settings
knowledge_base:
opt_out: false
learnings:
scope: auto # 'auto' learns from all PRs, 'user' only when explicitly told
# File handling
ignore:
# Ignore generated files
- "**/*.generated.*"
- "**/dist/**"
- "**/build/**"
- "**/.next/**"
- "**/node_modules/**"
- "**/.turbo/**"
- "**/coverage/**"
# Ignore lock files (reviewed separately)
- "**/package-lock.json"
- "**/yarn.lock"
- "**/pnpm-lock.yaml"
- "**/bun.lockb"