-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
82 lines (73 loc) · 2.19 KB
/
.coderabbit.yaml
File metadata and controls
82 lines (73 loc) · 2.19 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
language: en
reviews:
# Enable detailed reviews with context
profile: "chill" # Options: "chill", "assertive"
# Request changes workflow
request_changes_workflow: true
# Auto-reviews for pull requests
auto_review:
enabled: true
drafts: false
# Security scanning configuration
security_scanning:
enabled: true
scan_dependencies: true
scan_secrets: true
vulnerability_alerts: true
sast_enabled: true # Static Application Security Testing
# AI-powered suggestions
ai_suggestions:
enabled: true
features:
- code_optimization
- security_best_practices
- performance_improvements
- accessibility_enhancements
- test_coverage
# Path-based review settings
path_instructions:
- path: "app/routers/**"
instructions: |
Prioritize security best practices, including input validation and authentication.
Ensure robust error handling and logging.
Optimize for performance, especially for high-traffic endpoints.
- path: "app/models/**"
instructions: |
Ensure data integrity and proper validation.
Check for efficient data structures and relationships.
- path: "app/schemas/**"
instructions: |
Focus on data validation and serialization.
Ensure compatibility with API endpoints and models.
- path: "app/db/**"
instructions: |
Focus on data integrity, query optimization, and security best practices.
Ensure proper error handling and transaction management.
# Severity levels for different types of issues
severity:
critical:
- security_vulnerabilities
- memory_leaks
- authentication_bypass
- data_exposure
high:
- performance_issues
- security_misconfiguration
- insecure_dependencies
medium:
- code_style_violations
- accessibility_issues
- type_safety_concerns
low:
- documentation_missing
- code_duplication
- naming_conventions
# AI-powered code metrics
code_metrics:
enabled: true
analyze:
- cyclomatic_complexity
- cognitive_complexity
- maintainability_index
- code_duplication
- test_coverage