-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
225 lines (202 loc) · 6.46 KB
/
.coderabbit.yaml
File metadata and controls
225 lines (202 loc) · 6.46 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# =============================================================================
# General
# =============================================================================
language: en-US
tone_instructions: >-
Be direct and concise. Focus on why, not just what.
This is a Python CLI tool that assesses repositories for AI-assisted development readiness.
early_access: false
enable_free_tier: false
# =============================================================================
# Reviews
# =============================================================================
reviews:
profile: assertive
request_changes_workflow: true
high_level_summary: true
review_status: true
collapse_walkthrough: true
changed_files_summary: true
sequence_diagrams: true
assess_linked_issues: true
related_issues: true
related_prs: true
suggested_labels: true
suggested_reviewers: false
in_progress_fortune: false
poem: false
commit_status: false
estimate_code_review_effort: false
slop_detection:
enabled: true
# ---------------------------------------------------------------------------
# Path filters
# ---------------------------------------------------------------------------
path_filters:
- "!**/*.pyc"
- "!**/__pycache__/**"
- "!.venv/**"
- "!venv/**"
- "!htmlcov/**"
- "!.pytest_cache/**"
- "!.ruff_cache/**"
- "!*.egg-info/**"
- "!build/**"
- "!dist/**"
- "!.agentready/**"
- "!.cache/**"
- "!*.log"
- "!*.tmp"
- "!uv.lock"
- "!poetry.lock"
- "!package-lock.json"
- "!examples/**/*.json"
- "!examples/**/*.html"
- "!examples/**/*.md"
# ---------------------------------------------------------------------------
# Path instructions
# ---------------------------------------------------------------------------
path_instructions:
- path: "**/*"
instructions: |
- Prioritize Critical and Major severity issues. Minimize Minor and Trivial findings.
- Flag bugs, security vulnerabilities, logic errors, and meaningful refactoring opportunities.
- No pure style or formatting suggestions (black/ruff handle this).
- Limit to 3-5 comments max; group similar issues; mention repeated patterns once.
- If nothing is broken, approve briefly.
- path: "src/agentready/assessors/**"
instructions: |
- Verify BaseAssessor pattern compliance.
- Check for proper error handling (return skipped/error Finding, don't crash).
- Ensure proportional scoring using calculate_proportional_score().
- Check for graceful degradation when tools missing.
- path: "src/agentready/models/**"
instructions: |
- Check for breaking changes to data models.
- Verify backwards compatibility.
- Ensure schema version bumps when needed.
- path: "src/agentready/services/**"
instructions: |
- Check for proper error handling.
- Verify performance implications (file I/O, subprocess calls).
- Look for security issues (path traversal, command injection).
- path: "src/agentready/cli/**"
instructions: |
- Check for clear error messages.
- Verify help text is accurate.
- Look for missing error handling for user input.
- path: "tests/**"
instructions: |
- Verify test actually tests the intended behavior.
- Check for missing edge cases.
- Flag overly brittle tests (mocking too much).
- Skip all style comments.
- path: ".github/workflows/**/*.{yml,yaml}"
instructions: |
- Pin action versions to SHA. Verify secrets are not exposed and permissions are scoped.
- path: "scripts/**"
instructions: |
- Check for command injection vulnerabilities.
- Verify error handling for subprocess calls.
- Flag missing input validation.
# ---------------------------------------------------------------------------
# Auto review
# ---------------------------------------------------------------------------
auto_review:
enabled: true
drafts: false
ignore_title_keywords:
- "WIP"
- "DO NOT MERGE"
ignore_usernames:
- "dependabot[bot]"
- "renovate[bot]"
base_branches:
- "main"
# ---------------------------------------------------------------------------
# Finishing touches
# ---------------------------------------------------------------------------
finishing_touches:
docstrings:
enabled: true
unit_tests:
enabled: true
simplify:
enabled: true
# ---------------------------------------------------------------------------
# Pre-merge checks
# ---------------------------------------------------------------------------
pre_merge_checks:
docstrings:
mode: warning
threshold: 80
title:
mode: warning
requirements: >-
Conventional Commits format: type(scope): description.
Types: feat, fix, chore, docs, refactor, test, ci, perf.
description:
mode: warning
issue_assessment:
mode: warning
# ---------------------------------------------------------------------------
# Tools
# ---------------------------------------------------------------------------
tools:
ruff:
enabled: true
flake8:
enabled: false
pylint:
enabled: false
# Not applicable to this project
biome:
enabled: false
oxc:
enabled: false
golangci-lint:
enabled: false
buf:
enabled: false
checkmake:
enabled: false
# Enabled
actionlint:
enabled: true
shellcheck:
enabled: true
yamllint:
enabled: true
markdownlint:
enabled: true
gitleaks:
enabled: true
trufflehog:
enabled: true
github-checks:
enabled: true
timeout_ms: 90000
hadolint:
enabled: true
# =============================================================================
# Chat
# =============================================================================
chat:
auto_reply: false
art: false
# =============================================================================
# Knowledge base
# =============================================================================
knowledge_base:
opt_out: false
web_search:
enabled: false
code_guidelines:
enabled: true
learnings:
scope: global
issues:
scope: auto
pull_requests:
scope: auto