-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
56 lines (51 loc) · 1.76 KB
/
Copy path.coderabbit.yaml
File metadata and controls
56 lines (51 loc) · 1.76 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
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-US"
early_access: false
reviews:
profile: "assertive"
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: true
auto_review:
enabled: true
drafts: false
auto_incremental_review: true
auto_pause_after_reviewed_commits: 5
ignore_title_keywords:
- "WIP"
- "[skip review]"
- "DO NOT MERGE"
ignore_usernames:
- "dependabot[bot]"
- "renovate[bot]"
- "github-actions[bot]"
path_instructions:
- path: "src/**/*.{js,jsx,ts,tsx}"
instructions: "Enforce WordPress Gutenberg Block API v3 standards. Verify useBlockProps() on edit component root. Use @wordpress/components and @wordpress/block-editor. Ensure all translatable strings use __() from @wordpress/i18n with proper text domain."
- path: "**/block.json"
instructions: "Validate block.json schema version 3 ($schema). Ensure all block attributes declare explicit types. Verify script and style asset paths."
- path: "**/*.php"
instructions: "Enforce WordPress Coding Standards (WPCS) and PHPDoc rules. In render callbacks/render.php, verify attribute sanitization and escaping (esc_html, esc_attr, wp_kses_post). Ensure REST API endpoints define permission_callback."
knowledge_base:
opt_out: false
web_search:
enabled: true
code_guidelines:
enabled: true
filePatterns:
- "lightspeedwp/coderabbit:guidelines/block-plugin.md"
- "lightspeedwp/coderabbit:guidelines/block-theme.md"
finishing_touches:
autofix:
enabled: true
fix_ci:
enabled: true
resolve_merge_conflict:
enabled: true
unit_tests:
enabled: true
simplify:
enabled: true
docstrings:
enabled: true