|
| 1 | +language: en-GB |
| 2 | +tone_instructions: '' |
| 3 | +early_access: false |
| 4 | +enable_free_tier: true |
| 5 | +reviews: |
| 6 | + profile: chill |
| 7 | + request_changes_workflow: true |
| 8 | + high_level_summary: true |
| 9 | + high_level_summary_placeholder: '@coderabbitai summary' |
| 10 | + auto_title_placeholder: '@coderabbitai' |
| 11 | + review_status: true |
| 12 | + commit_status: true |
| 13 | + poem: false |
| 14 | + collapse_walkthrough: true |
| 15 | + sequence_diagrams: false |
| 16 | + changed_files_summary: true |
| 17 | + labeling_instructions: [] |
| 18 | + path_filters: |
| 19 | + - '**/*' |
| 20 | + - '**/gen/**' |
| 21 | + - '!**/test/**/gen/**' |
| 22 | + - '!**/.git/**' |
| 23 | + - '!**/target/**' |
| 24 | + path_instructions: |
| 25 | + - path: '**/*.java' |
| 26 | + instructions: | |
| 27 | + - Review code using Java 21 standards, taking into account the rules defined by `src/main/checkstyle/checkstyle.xml`. |
| 28 | + - Validate that code indentation uses spaces, not tabs, with an indent of multiple of 4. |
| 29 | + - Validate that immutable local variables are not annotated with `final` unless the variable is required for use in an inner class. |
| 30 | + - Allow use of `var` keyword when value is a cast `null`. |
| 31 | + - Use a coding standard where multi-line expressions have operators and tenary separators at the end of line. |
| 32 | + - Propose changes that only use the Java 21 API, not the API of Guava. |
| 33 | + - The pattern matching `instanceof` expression safely handles `null`, returning `false`. |
| 34 | + - path: '**/main/java/**/*.java' |
| 35 | + instructions: | |
| 36 | + - This project is mature and must provide a stable backwards-compatible public Java API. |
| 37 | + - In the 'Summary by CodeRabbit' section, you must always provide a list of up to 25 changes to the public Java API that will affect end users. |
| 38 | + If there are no changes, you must explicitly state that there are no changes to the public Java API in this PR. |
| 39 | + The public Java API is defined as public and protected methods on public classes, plus the file `module-info.java`. |
| 40 | + Provide the list by deeply analysing code flow, which incudes analysing code flow through private methods and calls to Guava and Java 21. |
| 41 | + Changes to be reported on include: |
| 42 | + - New or removed methods in the public Java API |
| 43 | + - Changes to method return types or parameter types in the public Java API |
| 44 | + - Changes to method behaviour in the public Java API that might affect consumers |
| 45 | + - This project uses `System.out.println` instead of logging |
| 46 | + - This project tends to prefer `for` loops to streams for performance reasons, however either form is acceptable. |
| 47 | + Do not make suggestions to change between streams and for loops or vice versa. |
| 48 | + - path: '**/test/java/**/*.java' |
| 49 | + instructions: | |
| 50 | + For test code, focus on: |
| 51 | + - Correctness of test assertions |
| 52 | + - Test coverage of edge cases |
| 53 | + - Clear test naming and documentation |
| 54 | + - Be more lenient with code style and minor optimisations |
| 55 | + abort_on_close: true |
| 56 | + auto_review: |
| 57 | + enabled: true |
| 58 | + auto_incremental_review: true |
| 59 | + ignore_title_keywords: [] |
| 60 | + labels: [] |
| 61 | + drafts: false |
| 62 | + base_branches: |
| 63 | + - 'main' |
| 64 | + tools: |
| 65 | + shellcheck: |
| 66 | + enabled: true |
| 67 | + ruff: |
| 68 | + enabled: false |
| 69 | + markdownlint: |
| 70 | + enabled: true |
| 71 | + github-checks: |
| 72 | + enabled: true |
| 73 | + timeout_ms: 90000 |
| 74 | + languagetool: |
| 75 | + enabled: true |
| 76 | + enabled_only: false |
| 77 | + level: default |
| 78 | + enabled_rules: [] |
| 79 | + disabled_rules: |
| 80 | + - EN_UNPAIRED_BRACKETS |
| 81 | + enabled_categories: [] |
| 82 | + disabled_categories: |
| 83 | + - TYPOS |
| 84 | + - TYPOGRAPHY |
| 85 | + - CASING |
| 86 | + biome: |
| 87 | + enabled: true |
| 88 | + hadolint: |
| 89 | + enabled: false |
| 90 | + swiftlint: |
| 91 | + enabled: true |
| 92 | + phpstan: |
| 93 | + enabled: false |
| 94 | + level: default |
| 95 | + golangci-lint: |
| 96 | + enabled: false |
| 97 | + yamllint: |
| 98 | + enabled: true |
| 99 | + gitleaks: |
| 100 | + enabled: true |
| 101 | + checkov: |
| 102 | + enabled: false |
| 103 | + detekt: |
| 104 | + enabled: false |
| 105 | + eslint: |
| 106 | + enabled: true |
| 107 | + rubocop: |
| 108 | + enabled: false |
| 109 | + buf: |
| 110 | + enabled: false |
| 111 | + regal: |
| 112 | + enabled: false |
| 113 | + actionlint: |
| 114 | + enabled: true |
| 115 | + pmd: |
| 116 | + enabled: true |
| 117 | + cppcheck: |
| 118 | + enabled: false |
| 119 | + semgrep: |
| 120 | + enabled: true |
| 121 | + circleci: |
| 122 | + enabled: true |
| 123 | + ast-grep: |
| 124 | + packages: [] |
| 125 | + rule_dirs: [] |
| 126 | + util_dirs: [] |
| 127 | + essential_rules: true |
| 128 | +chat: |
| 129 | + auto_reply: true |
| 130 | +knowledge_base: |
| 131 | + opt_out: false |
| 132 | + learnings: |
| 133 | + scope: auto |
| 134 | + issues: |
| 135 | + scope: auto |
| 136 | + jira: |
| 137 | + project_keys: [] |
| 138 | + linear: |
| 139 | + team_keys: [] |
| 140 | + pull_requests: |
| 141 | + scope: auto |
0 commit comments