Repository navigation
Expand file tree
/
Copy pathcoderabbit.yaml
More file actions
63 lines (56 loc) · 2.16 KB
/
Copy pathcoderabbit.yaml
File metadata and controls
63 lines (56 loc) · 2.16 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
language: en-US
tone_instructions: "Chill, relaxed tone like casual conversation. Keep it approachable and friendly, avoiding formal or technical language."
early_access: false
reviews:
profile: chill
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: false
auto_review:
enabled: true
drafts: true
base_branches:
- "master"
- "main"
- "develop"
path_instructions:
- path: "apps/web/app/api/webhooks/stripe/**"
instructions: "Pay close attention to webhook security: verify signature, handle idempotency, check for enum correctness with SubscriptionStatus and InvoiceStatus. Watch for API version mismatches (we're on v2026-04-22)."
- path: "apps/web/app/api/auth/**"
instructions: "Security focus: review authentication flows, session management, and token handling."
- path: "apps/web/prisma/migrations/**"
instructions: "Database migrations: check for data loss, concurrent execution safety, and rollback viability."
- path: "apps/web/app/api/**/route.ts"
instructions: "API routes: verify request validation, error handling, and correct HTTP status codes. Check for Prisma enum usage."
skip_files:
- "**/node_modules/**"
- "**/.next/**"
- "**/dist/**"
- "apps/web/prisma/migrations/**"
- ".next/types/**"
- "**/*.d.ts"
- "package-lock.json"
- "bun.lockb"
rules:
- type: "typescript"
comments:
- "Use exhaustive switch statements for enums (SubscriptionStatus, InvoiceStatus)"
- "Prefer type safety over type casting - avoid `as` when possible"
- "Ensure async functions have await or are removed"
- type: "react"
comments:
- "Watch for missing dependencies in useEffect hooks"
- "Ensure proper key props in lists"
- "Use server components by default in Next.js app router"
- "Label accessibility: always add htmlFor or aria-* attributes"
- type: "security"
comments:
- "No secrets in code (use env vars)"
- "Validate all user input before Prisma operations"
- "Check Stripe webhook signature verification"
disable_checks:
- "eslint"
chat:
auto_reply: true