Skip to content

chore: update coderabbit instructions - #3199

Merged
lemagnetic merged 1 commit into
devfrom
chore/coderabbit-add-readability-instruction
Feb 4, 2026
Merged

lemagnetic merged 1 commit into
devfrom
chore/coderabbit-add-readability-instruction

Conversation

@lemagnetic

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

Adds a CodeRabbit instruction so reviews encourage flat conditionals (early returns / &&) instead of nested ifs across all packages.

How it works?

New rule in path_instructions in .coderabbit.yaml, under the packages/**/*.ts block: prefer flat conditionals over nested ifs.

Starters Deploy Preview

N/A

@lemagnetic
lemagnetic requested a review from a team as a code owner February 4, 2026 14:43
@lemagnetic
lemagnetic requested review from hellofanny and lariciamota and removed request for a team February 4, 2026 14:43
@coderabbitai

coderabbitai Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • .coderabbit.yaml is excluded by none and included by none

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/coderabbit-add-readability-instruction

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • ✨ 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codesandbox-ci

codesandbox-ci Bot commented Feb 4, 2026

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@lemagnetic lemagnetic added the enhancement New feature or request label Feb 4, 2026
@lemagnetic lemagnetic changed the title coderabbit: add flat conditionals instruction for all packages chore(coderabbit): add flat conditionals instruction for all packages Feb 4, 2026
@lemagnetic lemagnetic changed the title chore(coderabbit): add flat conditionals instruction for all packages chore: update coderabbit instructions Feb 4, 2026
@lemagnetic
lemagnetic merged commit 46dd621 into dev Feb 4, 2026
3 of 7 checks passed
@lemagnetic
lemagnetic deleted the chore/coderabbit-add-readability-instruction branch February 4, 2026 18:37
thiagopereira-vtex pushed a commit that referenced this pull request Mar 10, 2026
## What's the purpose of this pull request?

Adds a CodeRabbit instruction so reviews encourage flat conditionals
(early returns / `&&`) instead of nested ifs across all packages.

## How it works?

New rule in `path_instructions` in `.coderabbit.yaml`, under the
`packages/**/*.ts` block: prefer flat conditionals over nested ifs.

### Starters Deploy Preview

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants