|
| 1 | +# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json |
| 2 | +# |
| 3 | +# CodeRabbit configuration for nowo-tech/CodeReviewGuardian. |
| 4 | +# Requires the CodeRabbit GitHub App installed on nowo-tech/CodeReviewGuardian. |
| 5 | +# Manual review: comment `@coderabbitai review` on a pull request. |
| 6 | + |
| 7 | +language: en-US |
| 8 | + |
| 9 | +reviews: |
| 10 | + profile: chill |
| 11 | + request_changes_workflow: false |
| 12 | + high_level_summary: true |
| 13 | + review_status: true |
| 14 | + commit_status: true |
| 15 | + poem: false |
| 16 | + collapse_walkthrough: true |
| 17 | + sequence_diagrams: true |
| 18 | + changed_files_summary: true |
| 19 | + |
| 20 | + auto_review: |
| 21 | + enabled: true |
| 22 | + auto_incremental_review: true |
| 23 | + auto_pause_after_reviewed_commits: 10 |
| 24 | + drafts: false |
| 25 | + base_branches: |
| 26 | + - main |
| 27 | + - master |
| 28 | + ignore_title_keywords: |
| 29 | + - WIP |
| 30 | + - "[skip review]" |
| 31 | + |
| 32 | + path_filters: |
| 33 | + - "!**/vendor/**" |
| 34 | + - "!**/coverage/**" |
| 35 | + - "!**/*.lock" |
| 36 | + - "!phpstan-baseline.neon" |
| 37 | + - "!.cursor/**" |
| 38 | + - "src/**" |
| 39 | + - "tests/**" |
| 40 | + - "docs/**" |
| 41 | + |
| 42 | + - ".github/**" |
| 43 | + - "*.md" |
| 44 | + - "*.yaml" |
| 45 | + - "*.yml" |
| 46 | + - "Makefile" |
| 47 | + |
| 48 | + path_instructions: |
| 49 | + - path: "src/**/*.php" |
| 50 | + instructions: | |
| 51 | + nowo-tech/code-review-guardian — Provider-agnostic code review guardian for PHP projects. Works with any PHP project (Symfony, Laravel, Yii, CodeIgniter, etc.) and any Git provider (GitHub, GitLab, Bitbucket, etc.) |
| 52 | + Follow PSR-12 and `.php-cs-fixer.dist.php`. Prefer PHP 8 attributes over annotations. |
| 53 | + Respect PHP and Symfony ranges in `composer.json` when present. Preserve backward compatibility unless the PR explicitly breaks it. |
| 54 | + Use strict comparison (`===`) where appropriate. Keep changes minimal and consistent with existing patterns. |
| 55 | + Align with `composer cs-check`, `composer phpstan`, and `composer test` when those scripts exist. |
| 56 | +
|
| 57 | + - path: "tests/**/*.php" |
| 58 | + instructions: | |
| 59 | + PHPUnit tests for this package. Add or update tests for new behaviour. |
| 60 | + Match existing test structure (Unit vs Integration). Avoid trivial assertions. |
| 61 | + Ensure changes remain compatible with the CI matrix when one is defined. |
| 62 | +
|
| 63 | + - path: "docs/**/*.md" |
| 64 | + instructions: | |
| 65 | + User-facing documentation in English under `docs/`. Do not invent features, versions, or commands. |
| 66 | + For notable releases, keep CHANGELOG and UPGRADING aligned. Preserve document structure and tone. |
| 67 | +
|
| 68 | +
|
| 69 | + - path: ".github/workflows/**" |
| 70 | + instructions: | |
| 71 | + GitHub Actions workflows for this repository. Match existing workflow style (checkout@v6, matrix exclusions). |
| 72 | + Do not echo secrets. Pin third-party actions to major versions already used in this repo. |
| 73 | +
|
| 74 | + tools: |
| 75 | + phpstan: |
| 76 | + enabled: true |
| 77 | + phpcs: |
| 78 | + enabled: false |
| 79 | + phpmd: |
| 80 | + enabled: false |
| 81 | + yamllint: |
| 82 | + enabled: true |
| 83 | + hadolint: |
| 84 | + enabled: true |
| 85 | + gitleaks: |
| 86 | + enabled: true |
| 87 | + github-checks: |
| 88 | + enabled: true |
| 89 | + timeout_ms: 900000 |
| 90 | + actionlint: |
| 91 | + enabled: true |
| 92 | + zizmor: |
| 93 | + enabled: true |
| 94 | + |
| 95 | +knowledge_base: |
| 96 | + learnings: |
| 97 | + scope: auto |
| 98 | + pull_requests: |
| 99 | + scope: auto |
0 commit comments