-
-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
51 lines (49 loc) · 1.52 KB
/
Copy path.coderabbit.yaml
File metadata and controls
51 lines (49 loc) · 1.52 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
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-US"
early_access: false
tone_instructions: >-
Expert PHP reviewer. Focus on type safety, PSR-12, PHP 7.2
compatibility, and security. XOOPS Core supports PHP 7.2-8.5;
avoid PHP 8.0+ language features.
reviews:
profile: "assertive"
request_changes_workflow: true
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: false
auto_review:
enabled: true
drafts: false
path_instructions:
- path: "xoops_lib/**/*.php"
instructions: >-
Review for PHP 7.2 compatibility (no union types, named arguments,
match expressions, enums, readonly, constructor promotion, fibers,
intersection types, never return type, or first-class callable syntax).
Check for proper use of declare(strict_types=1), self:: for class
constants, and PSR-12 code style.
- path: "htdocs/kernel/**/*.php"
instructions: >-
Review legacy kernel code for PHP 7.2 compatibility and security.
Check for SQL injection, XSS, and proper input sanitization.
- path: "tests/**/*.php"
instructions: >-
Review test code for proper assertions, test isolation, and edge
case coverage.
tools:
phpcs:
enabled: true
phpstan:
enabled: true
gitleaks:
enabled: true
markdownlint:
enabled: true
yamllint:
enabled: true
github-checks:
enabled: true
timeout_ms: 90000
chat:
auto_reply: true