forked from selfxyz/self
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
96 lines (93 loc) · 3.31 KB
/
Copy path.coderabbit.yaml
File metadata and controls
96 lines (93 loc) · 3.31 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
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-US"
tone_instructions: |
You are an expert reviewer for a React Native and TypeScript mobile app with smart contract integration.
Focus on security, performance, and best practices.
Only highlight issues of medium or higher priority.
reviews:
profile: "chill"
request_changes_workflow: false
high_level_summary: true
poem: true
review_status: true
auto_review:
enabled: true
drafts: false
base_branches: ["main", "dev"]
tools:
github-checks:
timeout_ms: 300000
path_instructions:
- path: "app/src/**/*.{ts,tsx,js,jsx}"
instructions: |
Review React Native TypeScript code for:
- Component architecture and reusability
- State management patterns
- Performance optimizations
- TypeScript type safety
- React hooks usage and dependencies
- Navigation patterns
- path: "contracts/**/*.sol"
instructions: |
Review Solidity smart contracts for:
- Security vulnerabilities (reentrancy, overflow, etc.)
- Gas optimization opportunities
- Access control patterns
- Event emission for important state changes
- Code documentation and NatSpec comments
- path: "circuits/**/*.circom"
instructions: |
Review ZK circuit code for:
- Circuit correctness and completeness
- Constraint efficiency
- Input validation
- Security considerations for zero-knowledge proofs
- path: "noir/**/*.nr"
instructions: |
Review Noir circuits for:
- Constraint and witness correctness
- Efficient proof generation and verification
- Soundness and security assumptions
- Clear separation of public and private inputs
- path: "**/*.{test,spec}.{ts,js,tsx,jsx}"
instructions: |
Review test files for:
- Test coverage completeness
- Test case quality and edge cases
- Mock usage appropriateness
- Test readability and maintainability
- path: "common/src/**/*.{ts,tsx,js,jsx}"
instructions: |
Review shared utilities for:
- Reusability and modular design
- Type safety and error handling
- Side-effect management
- Documentation and naming clarity
- path: "sdk/**/*.{ts,tsx,js,jsx}"
instructions: |
Review SDK packages for:
- Public API design and stability
- Asynchronous flows and error handling
- Security and input validation
- Compatibility across environments
- path: "packages/mobile-sdk-alpha/**/*.{ts,tsx,js,jsx}"
instructions: |
Review alpha mobile SDK code for:
- API consistency with core SDK
- Platform-neutral abstractions
- Performance considerations
- Clear experimental notes or TODOs
- path: "app/android/**/*"
instructions: |
Review Android-specific code for:
- Platform-specific implementations
- Performance considerations
- Security best practices for mobile
- path: "app/ios/**/*"
instructions: |
Review iOS-specific code for:
- Platform-specific implementations
- Performance considerations
- Security best practices for mobile
chat:
auto_reply: true