forked from coderabbitai/awesome-coderabbit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoderabbit-default-with-comment.yaml
More file actions
426 lines (357 loc) · 16.8 KB
/
Copy pathcoderabbit-default-with-comment.yaml
File metadata and controls
426 lines (357 loc) · 16.8 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
# Docs: https://docs.coderabbit.ai/getting-started/configure-coderabbit
# Set the language for reviews by using the corresponding ISO language code.
# default: en-US
language: en-US
# Set the tone of reviews and chat. Example: 'You must use talk like Mr. T. I pity the fool who doesn't!'
# default: ''
tone_instructions: ''
# Enable early-access features.
# default: false
early_access: false
# Enable free tier features for users not on a paid plan.
# default: true
enable_free_tier: true
reviews:
# Set the profile for reviews. `assertive` profile yields more feedback, that may be considered nitpick.
# default: chill
profile: chill
# Approve the review once CodeRabbit's comments are resolved. Note: In GitLab, all discussions must be resolved.
# default: false
request_changes_workflow: false
# Generate a high level summary of the changes in the PR/MR description.
# default: true
high_level_summary: true
# Placeholder in the PR/MR description that gets replaced with the high level summary.
# default: '@coderabbitai summary'
high_level_summary_placeholder: '@coderabbitai summary'
# Include the high level summary in the walkthrough comment.
# default: false
high_level_summary_in_walkthrough: false
# Add this keyword in the PR/MR title to auto-generate the title.
# default: '@coderabbitai'
auto_title_placeholder: '@coderabbitai'
# Auto Title Instructions | Custom instructions for auto-generating the PR/MR title.
# default: ''
auto_title_instructions: ''
# Post review details on each review. Additionally, post a review status when a review is skipped in certain cases.
# default: true
review_status: true
# Set the commit status to 'pending' when the review is in progress and 'success' when it is complete.
# default: true
commit_status: true
# Set the commit status to 'failure' when the PR cannot be reviewed by CodeRabbit for any reason.
# default: false
fail_commit_status: false
# Generate walkthrough in a markdown collapsible section.
# default: false
collapse_walkthrough: false
# Generate a summary of the changed files in the walkthrough.
# default: true
changed_files_summary: true
# Generate sequence diagrams in the walkthrough.
# default: true
sequence_diagrams: true
# Generate an assessment of how well the changes address the linked issues in the walkthrough.
# default: true
assess_linked_issues: true
# Include possibly related issues in the walkthrough.
# default: true
related_issues: true
# Related PRs | Include possibly related pull requests in the walkthrough.
# default: true
related_prs: true
# Suggest labels based on the changes in the pull request in the walkthrough.
# default: true
suggested_labels: true
# Automatically apply the suggested labels to the PR/MR.
# default: false
auto_apply_labels: false
# Suggest reviewers based on the changes in the pull request in the walkthrough.
# default: true
suggested_reviewers: true
# Automatically assign suggested reviewers to the pull request
# default: false
auto_assign_reviewers: false
# Generate a poem in the walkthrough comment.
# default: true
poem: true
# Labeling Instructions | Provide guidelines for suggesting labels for the PR/MR. When specific labels or instructions are provided, only those labels are considered, though previous examples are still used to inform the suggestions. If no such labels are provided, suggestions are based solely on previous PR/MRs.
# default: []
labeling_instructions: [ ]
# Specify file patterns to include or exclude in a review using glob patterns (e.g., !dist/**, src/**). These patterns also apply to 'git sparse-checkout', including specified patterns and ignoring excluded ones (starting with '!') when cloning the repository.
# default: []
path_filters: [ ]
# Path Instructions | Provide specific additional guidelines for code review based on file paths.
# default: []
path_instructions: []
# Abort the in-progress review if the pull request is closed or merged.
# default: true
abort_on_close: true
# Disable caching of code and dependencies. This will force CodeRabbit to download the code and dependencies fresh from the repository each time.
# default: false
disable_cache: false
# Settings related to reviews.
auto_review:
# Automatic Review | Automatic code review
# default: true
enabled: true
# Automatic Incremental Review | Automatic incremental code review on each push
# default: true
auto_incremental_review: true
# Ignore reviewing if the title of the pull request contains any of these keywords (case-insensitive).
# default: []
ignore_title_keywords: []
# Restrict automatic reviews to only those pull requests that match one of the specified labels.
# default: []
labels: []
# Review draft PRs/MRs.
# default: false
drafts: false
# Base branches (other than the default branch) to review. Accepts regex patterns.
# default: []
base_branches: []
finishing_touches:
# Docstrings | Options for generating Docstrings for your PRs/MRs.
docstrings:
# Docstrings | Allow CodeRabbit to generate docstrings for PRs/MRs.
# default: true
enabled: true
# Tools that provide additional context to code reviews.
tools:
# Enable ast-grep | ast-grep is a code analysis tool that helps you to find patterns in your codebase using abstract syntax trees patterns. | v0.31.1
ast-grep:
# List of rules directories.
# default: []
rule_dirs: []
# List of utils directories.
# default: []
utils_dirs: []
# Use ast-grep essentials package.
# default: true
essential_rules: true
# Predefined packages to be used.
# default: []
packages: []
# ShellCheck is a static analysis tool that finds bugs in your shell scripts.
shellcheck:
# Enable ShellCheck | ShellCheck is a static analysis tool that finds bugs in your shell. | Enable ShellCheck integration. | v0.10.0
# default: true
enabled: true
# Ruff is a Python linter and code formatter.
ruff:
# Enable Ruff | Ruff is a Python linter and code formatter. | Enable Ruff integration. | v0.8.2
# default: true
enabled: true
# markdownlint-cli2 is a static analysis tool to enforce standards and consistency for Markdown files.
markdownlint:
# Enable markdownlint | markdownlint-cli2 is a static analysis tool to enforce standards and consistency for Markdown files. | Enable markdownlint integration. | v0.17.2
# default: true
enabled: true
# GitHub Checks integration configuration.
github-checks:
# Enable GitHub Checks | Enable integration, defaults to true | Enable GitHub Checks integration.
# default: true
enabled: true
# Time in milliseconds to wait for all GitHub Checks to conclude. >= 0 and <= 300000
# default: 90000
timeout_ms: 90000
# LanguageTool is a style and grammar checker for 30+ languages.
languagetool:
# Enable LanguageTool | Enable LanguageTool integration.
# default: true
enabled: true
# IDs of rules to be enabled. The rule won't run unless 'level' is set to a level that activates the rule.
# default: []
enabled_rules: []
# IDs of rules to be disabled. Note: EN_UNPAIRED_BRACKETS, and EN_UNPAIRED_QUOTES are always disabled.
# default: []
disabled_rules: []
# IDs of categories to be enabled.
# default: []
enabled_categories: []
# IDs of categories to be disabled. Note: TYPOS, TYPOGRAPHY, and CASING are always disabled.
# default: []
disabled_categories: []
# Only the rules and categories whose IDs are specified with 'enabledRules' or 'enabledCategories' are enabled.
# default: false
enabled_only: false
# If set to `picky`, additional rules will be activated, i.e. rules that you might only find useful when checking formal text.
# default: default
level: default
# Biome is a fast formatter, linter, and analyzer for web projects.
biome:
# Enable Biome | Biome is a fast formatter, linter, and analyzer for web projects. | Enable Biome integration. | v1.9.4
# default: true
enabled: true
# Hadolint is a Dockerfile linter.
hadolint:
# Enable Hadolint | Hadolint is a Dockerfile linter. | Enable Hadolint integration. | v2.12.0
# default: true
enabled: true
# SwiftLint integration configuration object.
swiftlint:
# Enable SwiftLint | SwiftLint is a Swift linter. | Enable SwiftLint integration. | v0.57.0
# default: true
enabled: true
# Optional path to the SwiftLint configuration file relative to the repository. This is useful when the configuration file is named differently than the default '.swiftlint.yml' or '.swiftlint.yaml'.
# config_file:
# PHPStan is a tool to analyze PHP code.
phpstan:
# Enable PHPStan | PHPStan requires [config file](https://phpstan.org/config-reference#config-file) in your repository root. Please ensure that this file contains the `paths:` parameter. | v2.0.3
# default: true
enabled: true
# Level | Specify the [rule level](https://phpstan.org/user-guide/rule-levels) to run. This setting is ignored if your configuration file already has a `level:` parameter.
# default: default
level: default
# golangci-lint is a fast linters runner for Go.
golangci-lint:
# Enable golangci-lint | golangci-lint is a fast linters runner for Go. | Enable golangci-lint integration. | v1.64.8
# default: true
enabled: true
# Optional path to the golangci-lint configuration file relative to the repository. Useful when the configuration file is named differently than the default '.golangci.yml', '.golangci.yaml', '.golangci.toml', '.golangci.json'.
# config_file:
# YAMLlint is a linter for YAML files.
yamllint:
# Enable YAMLlint | YAMLlint is a linter for YAML files. | Enable YAMLlint integration. | v1.35.1
# default: true
enabled: true
# Gitleaks is a secret scanner.
gitleaks:
# Enable Gitleaks | Gitleaks is a secret scanner. | Enable Gitleaks integration. | v8.21.2
# default: true
enabled: true
# Checkov is a static code analysis tool for infrastructure-as-code files.
checkov:
# Enable Checkov | Checkov is a static code analysis tool for infrastructure-as-code files. | v3.2.334
# default: true
enabled: true
# Detekt is a static code analysis tool for Kotlin files.
detekt:
# Enable detekt | detekt is a static code analysis tool for Kotlin files. | v1.23.7
# default: true
enabled: true
# Optional path to the detekt configuration file relative to the repository.
# config_file:
# ESLint is a static code analysis tool for JavaScript files.
eslint:
# Enable ESLint | ESLint is a static code analysis tool for JavaScript files. | v8.45.0
# default: true
enabled: true
# RuboCop is a Ruby static code analyzer (a.k.a. linter ) and code formatter.
rubocop:
# Enable RuboCop | RuboCop is a Ruby static code analyzer (a.k.a. linter ) and code formatter. | v1.73
# default: true
enabled: true
# Buf offers linting for Protobuf files.
buf:
# Enable Buf | Buf offers linting for Protobuf files. | v1.47.2
# default: true
enabled: true
# Regal is a linter and language server for Rego.
regal:
# Enable Regal | Regal is a linter and language server for Rego. | v0.29.2
# default: true
enabled: true
# actionlint is a static checker for GitHub Actions workflow files.
actionlint:
# Enable actionlint | is a static checker for GitHub Actions workflow files. | v1.7.4
# default: true
enabled: true
# PMD is an extensible multilanguage static code analyzer. It’s mainly concerned with Java.
pmd:
# Enable PMD | PMD is an extensible multilanguage static code analyzer. It’s mainly concerned with Java. | v7.8.0
# default: true
enabled: true
# Optional path to the PMD configuration file relative to the repository.
# config_file:
# Cppcheck is a static code analysis tool for the C and C++ programming languages.
cppcheck:
# Enable Cppcheck | Cppcheck is a static code analysis tool for the C and C++ programming languages. | v2.10-2
# default: true
enabled: true
# Semgrep is a static analysis tool designed to scan code for security vulnerabilities and code quality issues.
semgrep:
# Enable Semgrep | Semgrep is a static analysis tool designed to scan code for security vulnerabilities and code quality issues. | Enable Semgrep integration. | v1.99.0
# default: true
enabled: true
# Optional path to the Semgrep configuration file relative to the repository.
# config_file:
# CircleCI tool is a static checker for CircleCI config files.
circleci:
# Enable CircleCI | CircleCI tool is a static checker for CircleCI config files. | v0.1.31151
# default: true
enabled: true
# SQLFluff is an open source, dialect-flexible and configurable SQL linter.
sqlfluff:
# Enable SQLFluff | SQLFluff is an open source, dialect-flexible and configurable SQL linter. | v3.3.0
# default: true
enabled: true
# Configuration for Prisma Schema linting to ensure schema file quality
prismaLint:
# Enable Prisma Schema linting | Prisma Schema linting helps maintain consistent and error-free schema files | v0.10.0
# default: true
enabled: true
# OXC is a JavaScript/TypeScript linter written in Rust.
oxc:
# Enable OXC | OXC is a JavaScript/TypeScript linter written in Rust. | v0.16.5
# default: true
enabled: true
# Configuration for Shopify Theme Check to ensure theme quality and best practices
shopifyThemeCheck:
# Enable Shopify Theme Check | A linter for Shopify themes that helps you follow Shopify theme & Liquid best practices | cli 3.77.1 | theme 3.58.2
# default: true
enabled: true
chat:
# Enable the bot to reply automatically without requiring the user to tag it.
auto_reply: true
integrations:
jira:
# Jira | Enable the Jira integration for opening issues, etc. 'auto' disables the integration for public repositories. `auto`, `enabled`, `disabled`
# default: auto
usage: auto
linear:
# Linear | Enable the Linear integration for opening issues, etc. 'auto' disables the integration for public repositories. `auto`, `enabled`, `disabled`
# default: auto
usage: auto
knowledge_base:
# Opt Out | Disable all knowledge base features that require data retention. If you opt out after opting in, all of your existing knowledge base data will be removed from the system.
# default: false
opt_out: false
web_search:
# Web Search | Enable the web search integration.
# default: true
enabled: true
learnings:
# Learnings | Specify the scope of learnings to use for the knowledge base. 'local' uses the repository's learnings, 'global' uses the organization's learnings, and 'auto' uses repository's learnings for public repositories and organization's learnings for private repositories.
# default: auto
scope: auto
issues:
# Issues | Specify the scope of git platform (GitHub/GitLab) issues to use for the knowledge base. 'local' uses the repository's issues, 'global' uses the organization's issues, and 'auto' uses repository's issues for public repositories and organization's issues for private repositories.
# default: auto
scope: auto
jira:
# Jira | Enable the Jira knowledge base integration. 'auto' disables the integration for public repositories. `auto`, `enabled`, `disabled`
# default: auto
usage: auto
# Jira Project Keys | Specify the Jira project keys to use for the knowledge base.
# default: []
project_keys: []
linear:
# Linear | Enable the Linear knowledge base integration. 'auto' disables the integration for public repositories. `auto`, `enabled`, `disabled`
# default: auto
usage: auto
# Linear Team Keys | Specify the Linear team keys (identifiers) to use for the knowledge base. E.g. 'ENG'
# default: []
team_keys: []
pull_requests:
# Pull Requests | Specify the scope of pull requests to use for the knowledge base. 'local' uses the repository's pull requests, 'global' uses the organization's pull requests, and 'auto' uses repository's pull requests for public repositories and organization's pull requests for private repositories.
# default: auto
scope: auto
code_generation:
# Settings related to the generation of docstrings.
docstrings:
# Set the language for docstrings by using the corresponding ISO language code.
language: en-US
# Path Instructions | Provide additional guidelines for docstring generation based on file paths.
# default: []
path_instructions: []