Repository navigation
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
667 lines (621 loc) · 32 KB
/
Copy path.coderabbit.yaml
File metadata and controls
667 lines (621 loc) · 32 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
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
# CodeRabbit configuration — see https://docs.coderabbit.ai/reference/configuration
#
# Until this file existed, every review footer read "Configuration used: Repository UI" —
# the whole review configuration lived in the CodeRabbit dashboard, unversioned and
# unreviewable. The baseline here is the resolved configuration CodeRabbit itself emitted
# via `@coderabbitai generate configuration`, so it is what was already running rather
# than a hand-written guess. Three things are then deliberately different from that
# baseline: the docstring-coverage pre-merge check is off, `path_instructions` encode the
# repo rules a generic reviewer keeps getting wrong, and `path_filters` no longer hide
# `en-US.json`. See the comments at each of those keys.
#
# `inheritance: false` means every value is defined here; nothing is inherited from
# organisation-level settings. Keep it that way so the repo stays the source of truth.
language: en-US
# Max 250 characters — the schema enforces it.
tone_instructions: |
Prettier and ESLint own formatting, import order and quote style; never comment on them.
No docstring or JSDoc requests. One well-evidenced comment beats three speculative
ones: if you cannot point at the line that breaks, say so or stay quiet.
early_access: true
enable_free_tier: true
inheritance: false
reviews:
profile: assertive
request_changes_workflow: false
high_level_summary: false
high_level_summary_instructions: ""
high_level_summary_placeholder: "@coderabbitai summary"
high_level_summary_in_walkthrough: false
auto_title_placeholder: "@coderabbitai"
auto_title_instructions: ""
# On: this is the "review skipped" notice. With incremental review enabled,
# `auto_pause_after_reviewed_commits` actually fires, and with this off a paused
# review looks exactly like a clean one — silence must never stand in for a pass.
review_status: true
review_details: false
review_progress: true
commit_status: true
fail_commit_status: false
collapse_walkthrough: false
changed_files_summary: false
sequence_diagrams: false
estimate_code_review_effort: false
assess_linked_issues: false
related_issues: false
related_prs: false
suggested_labels: false
labeling_instructions: []
mutually_exclusive_groups: {}
auto_apply_labels: false
suggested_reviewers: false
auto_assign_reviewers: false
suggested_reviewers_instructions: []
in_progress_fortune: true
poem: false
enable_prompt_for_ai_agents: true
path_filters:
# Every entry here must stay an exclusion (`!`). One positive pattern turns the whole
# list into an allowlist: CodeRabbit reviews only what a positive pattern matches and
# reports everything else as "excluded by none and included by none". That is what the
# two `en-US.json` re-inclusions did between #8778 and this change — every review on
# `main` silently shrank to those two files (see #8850, "Review skipped due to path
# filters", 67 files dropped). `coderabbit config validate` does **not** catch this:
# the config was schema-valid throughout. The path-filter guard in
# `.github/workflows/coderabbit-config-validation.yml` is what fails the build now.
#
# The locale files are machine-generated by Lingo.dev; en-US.json is hand-written and
# IS reviewed. Because re-inclusion is what broke this, the exclusions are written so
# they never match en-US.json in the first place, rather than relying on a precedence
# rule between an exclusion and a later re-inclusion — the previous comment here
# asserted "later patterns win", and that assertion is unverified.
#
# `!(en-US)` is standard glob negation (minimatch/picomatch both honour it). If a
# future CodeRabbit matcher does not, these patterns match nothing and the generated
# locale files come back into reviews as noise — visible and harmless, unlike an
# allowlist. The fix then is to enumerate the generated locales explicitly.
- "!apps/web/locales/!(en-US).json"
- "!packages/surveys/locales/!(en-US).json"
- "!**/i18n.lock"
# Build output and generated artefacts. Note: openapi.yml and
# docs/api-*-reference/openapi*.{yml,json} are deliberately NOT excluded —
# oasdiff reviews them for breaking API changes.
- "!apps/web/vendor/**"
path_instructions:
- path: "**/*.test.tsx"
instructions: |
AGENTS.md forbids React component unit tests in this repo. If this file is newly added, say
so and ask for the logic under test to move into a `.ts` module with a unit test. Do not ask
for a Playwright spec instead: deleting a `.test.tsx` creates no E2E obligation, and a
component is not an E2E subject. Do not raise this on edits to the handful of `.test.tsx`
files that already exist.
- path: "**/*.tsx"
instructions: |
- Never suggest adding unit tests for `.tsx` files — AGENTS.md forbids them, and their
absence is not a coverage gap to fill somewhere else. Ask for a Playwright spec only when
the diff changes a feature's happy path or a journey across several surfaces, and then ask
for it in that feature's existing spec — or, if the diff opens a feature area the suite does
not cover yet, for one happy-path spec named for that area. Never ask for one to cover
component detail (a
label, a breadcrumb, an ARIA attribute, a keystroke inside one widget, a field's
validation message) — that belongs in a `.ts` unit test or in manual QA.
- New client data flows go through an `/api/v3` route with TanStack Query, not a new Server
Action. Server data lives in the query cache only — flag it being mirrored into
`useState` or Jotai, and flag `router.refresh()` used as a data-refresh mechanism.
- Component props must be `Readonly<>` (e.g. `({ children }: Readonly<Props>)`).
- All user-facing strings must go through `t()` from `react-i18next` with lowercase
dot-nested keys, never hardcoded text.
- Dates and times must use the shared formatting helpers, never ad-hoc `date-fns`, `Intl`,
or `toLocale*` calls, and never an implicit/`undefined` locale.
- Don't ask for `useMemo`/`useCallback` unless there is a measured re-render problem.
- Do scrutinise effects and closures. `apps/web/eslint.config.mjs` turns
`react-hooks/set-state-in-effect`, `incompatible-library`, `error-boundaries`,
`immutability` and `preserve-manual-memoization` off, and leaves `exhaustive-deps` at
`warn` with no `--max-warnings 0`, so none of them can fail CI. Flag state set from an
effect without a guard, missing or lying dependency arrays, stale closures over props
or state, and effects that need cleanup and don't have it.
- path: "**/*.test.ts"
instructions: |
Judge tests by confidence, not coverage (AGENTS.md "Testing Guidelines"):
- Assert on inputs and outputs. Flag tests that lock implementation details, markup, or
snapshots, and tests that cannot fail (no meaningful assertion, everything mocked).
- Do not request extra tests purely to raise coverage, and do not request tests for `.tsx`.
- Network and storage boundaries should be mocked via helpers from `@formbricks/*` and
mocks placed in a `__mocks__` directory.
- path: "apps/web/playwright/**/*.spec.ts"
instructions: |
This suite is the critical path of every PR and every test is paid on every PR forever, so
cost is a review dimension here rather than a nit (AGENTS.md "Testing Guidelines"):
- A new spec file is a finding unless it opens a feature area the suite does not cover yet
(the spec filenames in `apps/web/playwright/` are the inventory — check before claiming an
area is uncovered); the default is assertions or a `test.step` added to that feature's
existing spec. A spec
that asserts component-level detail (a label, a breadcrumb, a sidebar's link list, an ARIA
attribute, a keystroke inside one widget, a field's validation message) is a finding
whatever file it lands in: ask for a `.ts` unit test or manual QA instead.
- Flag variant matrices. A second viewport, theme, locale, role or layout needs its own
stated reason; "the adjacent spec does it" is not one. A11y coverage for the rendered
survey extends `survey-accessibility.spec.ts`; elsewhere it belongs in that feature area's
own spec. Neither case is a per-ticket a11y spec.
- Flag state clicked into existence through the UI where Prisma or `/api/v3` could seed it
(`playwright/utils/accessibility.ts` is the pattern), and a per-test `users.create()` plus
login where a worker-scoped fixture would do.
- Flag timing hacks (`waitForTimeout`, arbitrary sleeps, `slowMo`) and dependencies on data
another spec created — these are the repo's main source of flake.
- Specs stay single-purpose per feature area: flag a spec that walks several unrelated
features, and a spec that exists for one detail of a covered one. `@slow` is metadata that
nothing reads, so a tag is not an answer to a cost finding.
- path: "**/actions.ts"
instructions: |
A **newly added** exported action is itself the finding: Server Actions are legacy here and
no new ones should be added. New backend work belongs in an `/api/v3` route consumed from
the client with TanStack Query. Raise that first, then apply the checks below.
Server actions are the repo's authorization boundary. For every existing exported action
that this PR touches, check that:
- It goes through the shared action client (`authenticatedActionClient` /
`checkAuthorizationUpdated`), and never trusts an id from the client as proof of access.
- Input is validated with a zod schema before use.
- Mutating actions apply `applyRateLimit` and are wrapped in `withAuditLogging`.
- It returns the `{ data }` / `{ error }` shape consistently and does not leak internal
error messages, stack traces, or other tenants' identifiers to the caller.
- Every query is scoped to the caller's organization/workspace.
- path: "apps/web/{lib/**,modules/**/lib/**}"
instructions: |
Data-access layer. Check that:
- Every query is scoped by organization/workspace — this is a multi-tenant product and an
unscoped `where` is a cross-tenant data leak, not a style issue.
- Soft deletion is respected (`deletedAt` / `isActive` filters) where the model has it.
- `skip`/`offset` is never passed to a `count()` call; only `where` is.
- Count and data queries run in parallel via `Promise.all`, not sequentially.
- Large datasets use cursor pagination rather than offset pagination.
- `createdAt` filters are combined with an indexed column (e.g. `surveyId` + `createdAt`).
- Caching uses `cache.withCache()` with a key from `createCacheKey.*`. Next.js
`unstable_cache()` is banned, and cache keys are never built by string concatenation.
- path: "{apps/web,packages}/**/*.{ts,tsx}"
instructions: |
Performance is an explicit review dimension in this repo (AGENTS.md "Performance in Review"):
the patterns below reach `main` when nobody looks for them. Raise one where the diff
introduces it:
- N+1 work: a query, AI call or cross-service fetch issued inside a `for`/`map`/`Promise.all`
over rows. Ask for one `findMany` with an `in` filter, an `include`, or a single grouped
query.
- Unbounded work: a `findMany` with no `take`, a pagination or retry loop with no ceiling, or
a whole table pulled into memory and filtered in JS.
- A new `where`/`orderBy` combination with no index that serves it.
- Expensive calls repeated per request or per row — embeddings, AI calls, cross-service
fetches — that are not behind `cache.withCache()`, batched, or moved into a job.
- Independent queries awaited sequentially instead of `Promise.all`.
- Client-side waterfalls: duplicate fetches of the same data, requests chained that do not
depend on each other, or many calls fired from a loop where one batch request would do.
- Render amplification: one state change or parent update re-rendering a large subtree that
does not depend on it (a context value rebuilt every render, unstable props into a big list).
Name the measured cost, not a missing `useMemo`; AGENTS.md rules out memoization for its
own sake.
- Large lists rendered in full with no pagination or virtualization.
Quantify the cost against the data ("one query per response, ~5k on a 5k-response survey").
If you cannot, ask the author for numbers instead of speculating. Do not raise these on
`*.test.ts`, `*.test.tsx`, `__mocks__`, or seed scripts, where looping over fixtures is expected.
- path: "packages/database/schema/*.prisma"
instructions: |
- Every tenant-owned model needs a workspace/organization scope column, and cross-model
foreign keys between tenant-owned models should be composite (including the scope column)
so the database — not the caller — enforces that both rows belong to the same tenant.
- Flag indexes whose leading column is already the leading column of another index or
unique constraint; a btree on `(a, b)` already serves lookups on `a`.
- Check `onDelete` / `onUpdate` behaviour on new relations.
- path: "packages/database/migration/**/migration.sql"
instructions: |
Migrations are append-only and run against a live multi-tenant Postgres. Check that:
- The migration is idempotent and convergent — re-running it, or running it against a
database created with `db:push`, must not fail.
- `CREATE INDEX` on an existing large table uses `CONCURRENTLY`; a plain `CREATE INDEX`
takes a write lock for the duration.
- Adding a `NOT NULL` column supplies a default or backfills first, and column/table drops
and renames are called out as breaking (they need the PR's breaking-change table).
- Long-running `UPDATE`/`DELETE` over a whole table is batched.
- path: "packages/database/migration/**/migration.ts"
instructions: |
Data migrations must be idempotent, batched (never load a whole table into memory), and
safe to resume after a partial failure. Check transaction boundaries and timeouts.
- path: "apps/web/app/api/v1/**"
instructions: |
API v1 is the legacy public contract used by self-hosted deployments and existing
integrations. Treat any change to a request or response shape, status code, or default as
breaking: it must be intentional, and the PR's "Breaking changes" table must document it.
Prefer adding to v3 over changing v1.
- path: "apps/web/{app/api/v2,modules/api/v2}/**"
instructions: |
Public API v2. Route handlers stay thin; logic lives in `apps/web/modules/api/v2/`. Any
change to a request or response shape must be mirrored in the endpoint's `lib/openapi.ts`,
or the published `openapi.yml` silently goes stale. Response-shape changes are breaking.
- path: "apps/web/app/api/v3/**"
instructions: |
Public API v3 — the surface new backend work targets, so hold it to the strictest bar.
- Handlers go through `withV3ApiWrapper` (`app/api/v3/lib/api-wrapper.ts`), which owns
auth, input parsing, rate limiting and audit logging. A hand-rolled handler that skips
it is a finding, not a style preference.
- Authorization is `requireV3WorkspaceAccess` (`app/api/v3/lib/auth.ts`). Every query is
scoped by the resolved workspace, never fetched by id alone.
- Return **403, not 404**, for a resource the caller may not see — a 404 leaks existence.
- Responses come from the RFC 9457 problem builders in `app/api/v3/lib/response.ts`. No
invented error envelopes, and no internal or database types leaking into a public shape.
- Any change to a request or response shape must be mirrored in the hand-authored spec
under `docs/api-v3-reference/src/**/*.yml`, which CI bundles. A handler change with no
spec change is a bug unless the shape is genuinely unchanged.
- A `/v3` route with no public OpenAPI entry is internal by definition and belongs under
`apps/web/app/api/(internal)/`. Shipping an internal route as public v3 is a finding.
- path: "apps/web/app/api/(internal)/**"
instructions: |
Internal routes, not a public contract — they carry no OpenAPI entry and no compatibility
promise. Check that they are unreachable without the expected internal authentication, and
flag anything here that looks like it should have been a public `/api/v3` route instead.
- path: "apps/web/modules/ee/**"
instructions: |
Enterprise Edition code under a separate licence (`apps/web/modules/ee/LICENSE`). Flag any
change that moves EE code into OSS paths or makes OSS code import from `modules/ee` without
going through the `license-check` gate, and any EE feature reachable without an
entitlement check.
- path: ".github/{workflows,actions}/**"
instructions: |
- `GITHUB_TOKEN` needs an explicit minimal `permissions:` block.
- On `ubuntu-latest`, `step-security/harden-runner` must be the first step.
- Third-party actions should be pinned to a commit SHA, not a tag.
- Flag anything that interpolates untrusted input (PR title, body, branch name) directly
into a `run:` block, and any workflow that exposes secrets to `pull_request_target`.
- path: "docs/**/*.mdx"
instructions: |
Mintlify docs. Frontmatter needs `title`, `description`, and `icon`; the body must not start
with an H1; headings are Camel Case with only the feature name capitalized. Enterprise-only
features need the Enterprise note block. New pages must be added to `docs/docs.json` nav.
- path: "charts/formbricks/**"
instructions: |
Helm chart consumed by self-hosters. Flag changes that alter a `values.yaml` key name or
default, or that require manual action on upgrade, without a breaking-change entry. New
values need a default that keeps existing installs working unchanged.
- path: "apps/web/locales/en-US.json"
instructions: |
Source of truth for all translations — every other locale file is machine-generated by
Lingo.dev from this one. Check key naming (lowercase, dot-nested) and placeholder
consistency. Never suggest editing the other locale files by hand.
- path: "packages/{surveys,js-core,survey-ui}/**"
instructions: |
Ships to end users' websites as an embedded bundle. Be strict about added dependencies and
bundle size, browser compatibility, and anything that leaks respondent data. No Node-only
APIs. Public SDK signatures are a compatibility contract — changes are breaking.
abort_on_close: true
disable_cache: false
slop_detection:
enabled: true
auto_review:
enabled: true
description_keyword: ""
# On, so the commits that fix a review round get reviewed too — with it off,
# `auto_pause_after_reviewed_commits` below was dead config and someone had to
# remember to type `@coderabbitai review`. The pause caps the volume at five
# reviewed commits since the last pause.
auto_incremental_review: true
auto_pause_after_reviewed_commits: 5
ignore_title_keywords: []
labels: []
drafts: false
# Regex, not globs. The dashboard held `epic/*`, which as a regex is "epic"
# followed by zero or more slashes, unanchored — it also matched branches
# merely containing "epic", such as `feat/epicenter-cleanup`. The default
# branch is always reviewed regardless of this list.
base_branches:
- "^epic/"
ignore_usernames: []
finishing_touches:
docstrings:
enabled: false
unit_tests:
enabled: false
simplify:
enabled: false
# Off: both let the reviewer author commits on the branch — autofix through the
# one-click checkboxes under each review comment, not just the chat command. With
# incremental review on it would then review its own work, so that commit gets no
# independent reviewer. Reviewers here are read-only on the code; the human who
# merges owns the diff. Same reasoning as `chat.allow_non_org_members: false`.
autofix:
enabled: false
fix_ci:
enabled: false
# Kept: mechanical, and the resolution is visible in the diff like any other change.
resolve_merge_conflict:
enabled: true
custom: []
pre_merge_checks:
override_requested_reviewers_only: false
# Off, not lowered. The detector is unreliable here — it reports "No functions found in the
# changed files" on PRs that plainly add functions — and the repo does not require docstrings,
# so every result was ignored. Quoted because unquoted `off` is a boolean in YAML 1.1.
docstrings:
mode: "off"
threshold: 80
title:
mode: warning
requirements: |
Conventional Commits: `type(optional-scope): summary`, where type is one of feat, fix,
chore, docs, refactor, perf, test, build, ci, style, or revert. The summary must describe
what the change does, in lower case, without a trailing period. A Linear ticket reference
such as `(ENG-<id>)` or `[ENG-<id>]` may be appended.
description:
mode: warning
issue_assessment:
mode: warning
# `pr-label-sync.yml` reads the checkbox in the Breaking changes section; these check whether
# what the author ticked is true of the diff, and whether the PR's own QA covers every behaviour
# it changes. Both are advisory — nothing here blocks a merge.
custom_checks:
- name: Breaking changes match the diff
mode: warning
instructions: |
Compare the checkbox in the PR description's "## Breaking changes" section against the
actual diff. A ticked box (`- [x] This PR contains breaking changes`) is the author's
declaration that the PR has one; an unticked box declares that it has none. The prose or
table under the checkbox is the explanation and does not change the declaration.
Treat a change as breaking if the diff does any of the following:
- Renames, removes, or retypes a field in an API request or response shape, requires a
field that was optional, or changes an emitted value (for example `EN` becoming
`en-US`).
- Removes or renames an endpoint or route, changes a webhook payload, or changes the
HTTP status code returned for an existing request/response case.
- Changes a default value, or removes or renames an environment variable or config key —
including keys in `charts/formbricks/values.yaml` and `.env.example`. Adding one counts
only when it is required, or has no default that keeps existing installs working.
- Adds a database migration that needs manual action, drops or renames a column or
table, or adds a NOT NULL column with no default and no backfill.
- Changes an exported signature of the public SDK surface in `packages/js-core`,
`packages/survey-ui`, or `packages/surveys`.
Nothing else is breaking. In particular, a purely additive change — a new optional request
or response field, a new endpoint or route, an env var whose default keeps existing installs
working — is not, and neither is any change to code no external consumer reaches: internal
functions, modules, types, and workspace-package exports other than the SDK surface above,
however they change. "Internal API" means internal to this repo, and it is outside this
check. A change that matches one of the bullets above is breaking regardless of how
confident the author is; genuine uncertainty about which bullet applies is what the
inconclusive case below is for.
FAIL if the diff contains at least one of the above and the checkbox is unticked, or the
section is empty or still holds the unedited template comment. Name the specific file and
line that is breaking, and ask the author to tick the box.
FAIL if the checkbox is ticked but no change in the diff matches the list above.
PASS if the checkbox is ticked and the section documents each breaking change present in
the diff, in a table or in prose, or if the checkbox is unticked and the diff contains
none of the above — however the author words the explanation underneath.
Return inconclusive rather than failing when the diff alone does not let you determine
an API response shape — for example when the shape comes from a serializer or type that
this PR does not touch.
- name: Only the ticket line carries a magic word
mode: warning
instructions: |
Linear and GitHub scan the whole PR description for a closing keyword next to an issue
id, so a second one in prose silently links — and on merge closes — an unrelated ticket.
FAIL if a magic word (`Fixes`, `Closes`, `Resolves`, `Ref`) sits next to a ticket id
(`ENG-<number>`) or a GitHub issue reference (`#<number>`) anywhere in the description
other than the ticket line at the top. Inline code and code fences do not exempt it —
the scanners read the raw body. Quote the offending text and suggest rewriting the id as
`ENG-…` or dropping the magic word.
PASS if the only such pair is the ticket line at the top of the description.
- name: Coverage accounts for the whole diff
mode: warning
instructions: |
Check the PR description's "## How this was tested" section. It holds all QA for the
change — there is no separate release QA pass — so it must account for every behaviour
the diff changes.
FAIL if any of the following is true:
- The "Coverage" table is empty, or holds only the unedited template placeholder row.
- A behaviour the diff changes has neither a row in "Coverage" nor an entry under
"Open gaps".
- A row names a behaviour with no verification method, or a method with no observed
outcome.
- A `unit` or `e2e` row names no test or spec. The name may sit in the row or in the
`Rerun:` line above the table, which carries it once for every row — but a bare suite
command such as `pnpm test` names nothing, so those rows name their own. A `manual` row
has no test to name and passes without one.
- A row claims `red on main` and gives nothing to rerun: neither the `Rerun:` line nor a
command of its own where that differs.
- A row claims `mutation` and does not name the mutated `file:line` a reviewer would edit
to turn it red.
- The diff changes rendered UI and the description attaches no screenshot or screencast.
- The "Open gaps" subsection is absent. An explicit "none" passes.
Content inside a `<details>` fold counts as present. The template caps the description at
350 words outside folds and folds the overflow rather than dropping it — long media,
command logs, and Coverage rows past the sixth — while the Coverage table, Open gaps and
Breaking changes stay visible themselves. A collapsed fold is evidence, not a gap: do not
ask for a longer description, ask for the missing behaviour.
PASS if every behaviour the diff changes is either covered by a row stating how it was
verified and what was observed, or listed under "Open gaps" with a reason.
PASS also when the PR changes no product behaviour — for example it only touches CI
configuration, repository tooling, tests, or documentation — and the section says so
explicitly rather than being left empty.
post_merge_actions: []
tools:
ast-grep:
rule_dirs: []
util_dirs: []
essential_rules: true
packages: []
shellcheck:
enabled: true
ruff:
enabled: true
markdownlint:
enabled: true
github-checks:
enabled: true
timeout_ms: 90000
languagetool:
enabled: true
enabled_rules: []
disabled_rules: []
enabled_categories: []
disabled_categories: []
enabled_only: false
level: default
biome:
enabled: true
hadolint:
enabled: true
swiftlint:
enabled: true
phpstan:
enabled: true
level: default
phpmd:
enabled: true
phpcs:
enabled: true
golangci-lint:
enabled: true
yamllint:
enabled: true
gitleaks:
enabled: true
trufflehog:
enabled: true
checkov:
enabled: true
tflint:
enabled: true
detekt:
enabled: true
eslint:
enabled: true
e18e:
enabled: true
flake8:
enabled: true
fbinfer:
enabled: true
enable_java: false
fortitudeLint:
enabled: true
rubocop:
enabled: true
buf:
enabled: true
regal:
enabled: true
actionlint:
enabled: true
zizmor:
enabled: true
pmd:
enabled: true
clang:
enabled: true
cppcheck:
enabled: true
opengrep:
enabled: true
semgrep:
enabled: true
circleci:
enabled: true
clippy:
enabled: true
sqlfluff:
enabled: true
squawk:
enabled: true
trivy:
enabled: true
prismaLint:
enabled: true
pylint:
enabled: true
oxc:
enabled: true
shopifyThemeCheck:
enabled: true
luacheck:
enabled: true
brakeman:
enabled: true
dotenvLint:
enabled: true
htmlhint:
enabled: true
stylelint:
enabled: true
checkmake:
enabled: true
osvScanner:
enabled: true
oasdiff:
enabled: true
reactDoctor:
enabled: true
presidio:
enabled: true
blinter:
enabled: true
smartyLint:
enabled: true
emberTemplateLint:
enabled: true
skillspector:
enabled: true
psscriptanalyzer:
enabled: true
chat:
art: true
# Public repo: only org members may drive the bot with commands. Outside PRs are
# still reviewed automatically — this only stops non-members invoking
# `@coderabbitai` at all. The autofix and fix_ci write recipes are off above, so
# this is defence in depth rather than the thing keeping them out of reach.
allow_non_org_members: false
auto_reply: true
integrations:
jira:
usage: auto
linear:
usage: auto
knowledge_base:
opt_out: false
web_search:
enabled: true
code_guidelines:
enabled: true
filePatterns: []
learnings:
scope: auto
# Not 0. A learning is a durable review rule, and at 0 it applies immediately —
# unversioned, unreviewed, and settable by anyone who replies to the bot. That is
# the same failure this file exists to end. Seven days give an admin time to reject
# one. `scope: auto` resolves to local on a public repo, so it stays in this repo.
approval_delay: 7
issues:
scope: auto
jira:
usage: auto
project_keys: []
excluded_project_keys: []
linear:
usage: auto
team_keys: []
pull_requests:
scope: auto
mcp:
usage: auto
disabled_servers: []
automatic_repository_linking: false
linked_repositories: []
code_generation:
docstrings:
language: en-US
path_instructions: []
unit_tests:
path_instructions: []
issue_enrichment:
auto_enrich:
enabled: false
planning:
enabled: true
auto_planning:
enabled: true
labels: []
labeling:
labeling_instructions: []
auto_apply_labels: false