Repository navigation
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
60 lines (54 loc) · 1.67 KB
/
Copy path.coderabbit.yaml
File metadata and controls
60 lines (54 loc) · 1.67 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
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-GB"
early_access: false
reviews:
# Review profile: balanced and constructive
profile: "chill"
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: false
# Trigger automatic reviews based on selected branches and ignore drafts/bots
auto_review:
enabled: true
drafts: false
base_branches:
- "main"
- "main-epi-manager"
- "staging"
- "preprod-epi-manager"
ignore_title_keywords:
- "renovate"
- "dependabot"
# Path exclusions for vendor, build artifacts, cache, and lock files
path_filters:
- "!vendor/**"
- "!node_modules/**"
- "!public/build/**"
- "!cache/**"
- "!log/**"
- "!logs/**"
- "!tmp/**"
- "!coverage/**"
- "!phpmetrics/**"
- "!composer.lock"
- "!yarn.lock"
- "!*.min.js"
- "!*.min.css"
# Contextual instructions tailored to Episciences codebase
path_instructions:
- path: "application/**"
instructions: "Ensure Zend Framework 1 legacy architecture patterns, backward compatibility, and security (prevent SQL injections, XSS, CSRF) are properly respected."
- path: "src/**"
instructions: "Ensure modern PHP 8+ standards, strict typing, PSR guidelines, and clean object-oriented architecture."
- path: "tests/**"
instructions: "Review test correctness, assertions accuracy, mock sanity, and ensure edge cases are adequately covered."
# Linters and static analysis integrations
tools:
phpstan:
enabled: true
markdownlint:
enabled: true
chat:
auto_reply: true