| 1 |
# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json |
| 2 |
language: "en" |
| 3 |
chat: |
| 4 |
auto_reply: true |
| 5 |
reviews: |
| 6 |
request_changes_workflow: true |
| 7 |
high_level_summary: true |
| 8 |
poem: false |
| 9 |
review_status: true |
| 10 |
collapse_walkthrough: true |
| 11 |
path_filters: |
| 12 |
- "!build/**" |
| 13 |
auto_review: |
| 14 |
enabled: true |
| 15 |
drafts: false |
| 16 |
base_branches: |
| 17 |
- "develop" |
| 18 |
- "add/.*" |
| 19 |
- "fix/.*" |
| 20 |
- "update/.*" |
| 21 |
path_instructions: |
| 22 |
- path: "**/*.{js,ts,tsx,jsx}" |
| 23 |
instructions: | |
| 24 |
"Perform a detailed review of the provided code with following key aspects in mind: |
| 25 |
- Review the code to ensure it is well-structured and adheres to best practices. |
| 26 |
- Verify compliance with WordPress coding standards. |
| 27 |
- Ensure the code is well-documented. |
| 28 |
- Check for security vulnerabilities and confirm the code is secure. |
| 29 |
- Optimize the code for performance, removing any unnecessary elements. |
| 30 |
- Validate JSDoc comments for accuracy, currency, and adherence to WordPress coding standards. |
| 31 |
- Ensure each line comment concludes with a period. |
| 32 |
- Confirm every JSDoc comment includes a @since tag indicating the next version of the plugin to include the code. |
| 33 |
- Guarantee compatibility with the latest version of WordPress, avoiding deprecated functions or features." |
| 34 |
- path: "**/*.{css,scss}" |
| 35 |
instructions: | |
| 36 |
"Perform a detailed review of the provided code with following key aspects in mind: |
| 37 |
- Review the SCSS code to ensure it is well-structured and adheres to best practices. |
| 38 |
- Convert dimensions greater than or equal to 3px to rem units using the to_rem function. |
| 39 |
- Utilize variables for sizes and colors defined in src/content-helper/common/css/variables.scss instead of hardcoding values." |
| 40 |
- path: "**/*.{html,php}" |
| 41 |
instructions: | |
| 42 |
"Perform a detailed review of the provided code with following key aspects in mind: |
| 43 |
- Review the HTML and PHP code to ensure it is well-structured and adheres to best practices. |
| 44 |
- Ensure the code follows WordPress coding standards and is well-documented. |
| 45 |
- Confirm the code is secure and free from vulnerabilities. |
| 46 |
- Optimize the code for performance, removing any unnecessary elements. |
| 47 |
- Validate comments for accuracy, currency, and adherence to WordPress coding standards. |
| 48 |
- Ensure each line comment concludes with a period. |
| 49 |
- Verify code compatibility with the latest version of WordPress, avoiding deprecated functions or features." |
| 50 |
|