mirror of
https://github.com/selfxyz/self.git
synced 2026-01-10 07:08:10 -05:00
97 lines
3.3 KiB
YAML
97 lines
3.3 KiB
YAML
# 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
|