-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
129 lines (109 loc) · 2.92 KB
/
.coderabbit.yaml
File metadata and controls
129 lines (109 loc) · 2.92 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
126
127
128
129
# CodeRabbit AI Code Review Configuration for ZeroBuild
# https://docs.coderabbit.ai/guides/configure-coderabbit
version: 1
# Language settings
language: en-US
# Tone instructions for review comments
tone_instructions: |
Provide constructive, actionable feedback. Be concise but thorough.
Focus on code quality, security, and maintainability. Use a professional,
helpful tone. Avoid nitpicking on style issues that are handled by linters.
# Early access features
early_access: false
# Review settings
reviews:
# High-level review request settings
request_changes_workflow: true
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: false
path_filters: []
# Path-based instructions
path_instructions:
- path: "src/**/*.rs"
instructions: |
Review Rust code for:
- Memory safety and proper error handling
- Idiomatic Rust patterns and best practices
- Async/await usage and runtime efficiency
- Security considerations (input validation, safe unsafe blocks)
- Proper documentation for public APIs
- Test coverage for new functionality
- path: ".github/workflows/*.yml"
instructions: |
Review GitHub Actions workflows for:
- Security best practices (no hardcoded secrets, proper permissions)
- Efficiency (caching, parallelization)
- Correct trigger conditions
- Pinning of third-party actions to specific commits
- path: "Cargo.toml"
instructions: |
Review dependencies for:
- Security vulnerabilities
- License compatibility
- Version pinning strategy
- Unnecessary dependencies
- path: "**/*.md"
instructions: |
Review documentation for:
- Clarity and accuracy
- Proper formatting
- Broken links
- Consistency with codebase
# Auto-review settings
auto_review:
enabled: true
drafts: false
base_branches:
- "main"
- "dev"
- "feat/*"
- "fix/*"
- "chore/*"
# Tools integration
tools:
# ShellCheck for shell scripts
shellcheck:
enabled: true
# Rust-specific tools
clippy:
enabled: true
rustfmt:
enabled: true
# GitHub Actions validator
actionlint:
enabled: true
# Markdown linting
markdownlint:
enabled: true
# Chat settings
chat:
auto_reply: true
# Knowledge base (optional)
knowledge_base:
learnings:
scope: auto
issues:
scope: auto
pull_requests:
scope: auto
# Additional configuration
tests:
# Patterns to identify test files
pattern:
- "**/tests/**/*.rs"
- "**/*_test.rs"
- "**/test_*.rs"
# Whether to suggest tests for new code
suggest_tests: true
# Ignore patterns
ignore:
- "target/**"
- "**/*.lock"
- "**/node_modules/**"
- ".git/**"
- "**/*.min.js"
- "**/*.min.css"
- "dist/**"
- "build/**"