-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
125 lines (102 loc) · 2.59 KB
/
.coderabbit.yaml
File metadata and controls
125 lines (102 loc) · 2.59 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
124
125
# CodeRabbit Configuration
# https://docs.coderabbit.ai/guides/review-configuration
# Language and framework-specific settings
language: typescript
frameworks:
- nextjs
- react
- supabase
# Review settings
reviews:
# Enable automatic reviews on pull requests
auto_review: true
# Enable draft PR reviews
draft_reviews: true
# Review scope
scope:
- 'src/**'
- '*.ts'
- '*.tsx'
- '*.js'
- '*.jsx'
- '*.json'
- '*.md'
- '.github/**'
# Exclude patterns
exclude:
- 'node_modules/**'
- '.next/**'
- 'dist/**'
- 'build/**'
- 'coverage/**'
- '*.min.js'
- 'yarn.lock'
- 'package-lock.json'
# Code quality checks
quality:
# Security checks
security: true
# Performance analysis
performance: true
# Best practices
best_practices: true
# Code style and formatting
style: true
# Type safety (TypeScript)
type_safety: true
# Test coverage analysis
test_coverage: true
# Specific rules for this project
rules:
# React/Next.js specific
react:
- prefer_function_components
- use_proper_hooks_dependencies
- avoid_inline_styles
- proper_key_props
# TypeScript specific
typescript:
- strict_type_checking
- no_any_types
- proper_interface_naming
- consistent_return_types
# Security specific
security:
- no_hardcoded_secrets
- secure_api_endpoints
- proper_authentication_checks
- validate_user_inputs
# Performance specific
performance:
- optimize_database_queries
- minimize_re_renders
- proper_memoization
- lazy_loading_components
# Integration settings
integrations:
github:
# Enable PR comments
pr_comments: true
# Enable status checks
status_checks: true
# Auto-approve minor changes (optional)
auto_approve_minor: false
# Request reviews for major changes
request_human_review: true
# Notification settings
notifications:
# Notify on high-priority issues
high_priority: true
# Notify on security issues
security_issues: true
# Summary reports
summary_reports: true
# Custom prompts for this project
custom_prompts:
- 'Focus on real-time collaboration features and ensure proper handling of concurrent users'
- 'Pay attention to Supabase integration and PostgREST query optimization'
- 'Review authentication and authorization implementation carefully'
- 'Check for proper error handling in async operations'
- 'Ensure proper cleanup of real-time subscriptions and connections'
- 'Validate proper use of React hooks and state management'
- 'Review test coverage and quality of unit tests'