Repository navigation
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
68 lines (66 loc) · 3.26 KB
/
Copy path.coderabbit.yaml
File metadata and controls
68 lines (66 loc) · 3.26 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
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
knowledge_base:
code_guidelines:
enabled: true
filePatterns:
- files: "AGENTS.md"
applyTo: "**/*"
reviews:
profile: chill
request_changes_workflow: false
# Keep generated prose in the bot's comment so the contributor's description stays clear.
high_level_summary_in_walkthrough: true
poem: false
path_instructions:
- path: "modules/**/*.rb"
instructions: >-
Apply AGENTS.md's Reuse Before Implementing guidance on separating
module workflow from supporting capabilities. Base extraction
suggestions on clear responsibilities and opportunities for reuse.
A library may initially have one caller.
- path: "spec/**/*.rb"
instructions: >-
For new or updated RSpec tests, follow https://www.betterspecs.org/
and AGENTS.md's Testing guidance. Every example must produce a meaningful,
human-readable description. RSpec-generated descriptions are acceptable
when they clearly describe the expected behavior; otherwise, provide an
explicit description. Apply this to library, module, and acceptance specs.
Keep examples focused and deterministic and cover relevant valid,
invalid, and boundary cases. Follow the existing test requirements;
do not require module or application tests unless requested.
auto_review:
enabled: true
auto_incremental_review: true
drafts: false
pre_merge_checks:
docstrings:
mode: "off"
title:
mode: warning
requirements: "Describe the actual change and affected component; no fixed length or prefix is required."
# The custom content check accepts linked evidence and alternative headings.
description:
mode: "off"
issue_assessment:
mode: warning
# Custom checks require CodeRabbit Team or above; results appear in the walkthrough comment.
custom_checks:
- name: "PR description and verification"
mode: warning
instructions: >-
Pass when contributor content explains what changes and why, with
concrete verification commands/actions, expected outcomes, actual
checks/results and relevant untested limits. Accept linked
issues/docs/discussion. Empty template text, placeholder tasks, generic
"tested/works", and bot summaries are not evidence. For behavior changes
require only necessary setup (OS/target versions, configuration, lab
authentication); reproducible bug fixes need original failure steps.
For changed module behavior include check output (if supported) and
run/exploit output. For typo/comment/docs-only changes, inspection/preview and its
result suffice; require no runtime lab or automated tests. Fail only for
missing applicable information and state exactly what to add. Accept
any headings or checkbox state. Unchecked verification steps are
expected: reviewers perform and check them off during review. Assess
author testing from separately supplied results/evidence. If required
linked evidence is inaccessible, return Inconclusive and name it.
Assess supplied evidence; do not execute code or invent results.