Skip to content

Commit a19e2b7

Browse files
Merge pull request #23 from vijaykhollam/AICodeReview
Configure Coderabbit for Auto Code Review
2 parents ccafbba + 7e41a94 commit a19e2b7

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

.coderabbit.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
language: "en"
2+
3+
early_access: false
4+
5+
reviews:
6+
request_changes_workflow: true
7+
high_level_summary: true
8+
poem: false
9+
review_status: true
10+
collapse_walkthrough: false
11+
path_filters:
12+
# Exclude XML files for manifest and configuration
13+
- "!**/*.xml"
14+
# Exclude language files (translations)
15+
- "!**/language/**/*.ini"
16+
# Exclude asset files that don’t need review
17+
- "!**/*.svg"
18+
- "!**/*.png"
19+
- "!**/*.jpg"
20+
- "!**/*.jpeg"
21+
- "!**/*.gif"
22+
- "!**/*.ico"
23+
# Exclude compiled and minified files
24+
- "!**/*.min.js"
25+
- "!**/*.min.css"
26+
# Exclude SCSS files if they are intermediate and do not need review
27+
- "!**/templates/**/*.scss"
28+
# Exclude libraries and vendor code (third-party dependencies)
29+
- "!**/node_modules/**"
30+
- "!**/vendor/**"
31+
# Exclude build files
32+
- "!**/build/**"
33+
# Exclude configuration files that are environment-specific
34+
- "!**/configuration.php"
35+
path_instructions:
36+
# JavaScript files: front-end interactivity and functionality
37+
- path: "**/*.js"
38+
instructions: |
39+
"Review JavaScript code to ensure:
40+
- Adherence to Google JavaScript style guide.
41+
- Efficient DOM manipulation suitable for Joomla’s frontend.
42+
- Use of Joomla’s core JavaScript libraries where applicable (e.g., jQuery compatibility).
43+
- Best practices for asynchronous requests if AJAX is used."
44+
- path: "**/*.php"
45+
instructions: |
46+
"Review the PHP code for Joomla coding standards compliance, ensuring:
47+
- Code follows Joomla's coding standards, validated using PHPCS with the Joomla standard.
48+
- Adherence to Joomla’s MVC structure for extensions.
49+
- Proper use of Joomla’s built-in functions (e.g., Input, Factory).
50+
- SQL queries use Joomla’s database API to prevent SQL injection.
51+
- Code is well-documented, with clear function and class descriptions."
52+
- path: "**/*.ts"
53+
instructions: |
54+
"Review the JavaScript code for conformity with the Google JavaScript style guide, highlighting any deviations. Ensure that:
55+
- The code adheres to best practices associated with nodejs.
56+
- The code adheres to best practices associated with nestjs framework.
57+
- The code adheres to best practices recommended for performance.
58+
- The code adheres to similar naming conventions for controllers, models, services, methods, variables."
59+
auto_review:
60+
enabled: true
61+
ignore_title_keywords:
62+
- "WIP"
63+
- "DO NOT MERGE"
64+
drafts: false
65+
base_branches:
66+
- "master"
67+
- "dev"
68+
- "j4x"
69+
- "feat/*"
70+
- "feat-*"
71+
- "release-*"
72+
73+
chat:
74+
auto_reply: true

0 commit comments

Comments
 (0)