Skip to content

Add a CodeRabbit config tailored to the repo - #13

Merged
Vithanco merged 2 commits into
mainfrom
claude/project-thread-gfyoym
Nov 6, 2026
Merged

Vithanco merged 2 commits into
mainfrom
claude/project-thread-gfyoym

Conversation

@Vithanco

@Vithanco Vithanco commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Requested by Klaus · project thread

Adds .coderabbit.yaml, picking the parts of CodeRabbit's best-practices guide that fit this repo.

What it does

  • Path filters: skips Graphviz.xcframework/, both *.artifactbundle/ and staging/. The binaries aren't reviewable (and make upgrade PRs huge); their integrity is already checked by scripts/check-artifacts.sh.
  • Path instructions: Foundation-free / Embedded-Swift rule and pointer lifetime for Sources/SwiftGraphviz; NULL handling and WASI limits for the C bridge; .serialized root suite for tests; BSD/GNU portability for scripts; token hygiene and checksum-verified downloads for workflows; consistent Graphviz pins and digests for build scripts / artifacts.sha256; the three binary-target paths in Package.swift.
  • Noise trimmed: profile chill, no poem, fortune or sequence diagrams.
  • Pre-merge checks (all advisory): docstring gate off, title/description warnings, and two custom checks: Bundled Graphviz consistency (targets the monthly upgrade PRs) and Public API break disclosure.
  • request_changes_workflow: false (single maintainer), learnings scoped to this repo. CLAUDE.md is read as guidelines automatically.
  • .coderabbit.yaml steers a review agent, so it's added to CODEOWNERS and to the coverage list in scripts/hygiene.test.sh.

Checked: the file validates against CodeRabbit's schema.v2.json with 0 errors; all scripts/*.test.sh pass locally. Custom checks need a Team/Advanced plan; on a lower plan they are expected to be ignored.


Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Updated repository review and ownership settings, including guidance for different project areas. Review settings now specify English-language, advisory reviews and exclude selected bundled and staging content.
  • Tests
    • Adjusted repository hygiene checks to cover the updated review configuration. No changes to app functionality or public APIs were reported.

Skip the prebuilt Graphviz binaries and staging/ in reviews, add per-path review
instructions (Foundation-free Swift layer, C bridge NULL handling and WASI limits,
serialized Swift Testing suites, portable scripts, workflow token hygiene, consistent
Graphviz pins and checksums), drop summary extras, turn the docstring gate off and add
two advisory checks: bundled Graphviz consistency and public API break disclosure.
.coderabbit.yaml steers a review agent, so it joins CODEOWNERS and the hygiene check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QehuQ55Dedo7Xa3rY9xRgA
@Vithanco Vithanco self-assigned this Nov 6, 2026
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PR adds CodeRabbit review settings and path-specific guidance for SwiftGraphviz. It also assigns .coderabbit.yaml in CODEOWNERS and updates the hygiene test to check coverage of that file.

Changes: Review configuration and ownership

Layer / File(s) Summary
Review settings and scope
.coderabbit.yaml
Sets review language, profile, workflow options, and summary and diagram settings. Excludes selected bundled artifacts and staging/** from review. Sets local-scope knowledge-base learning.
Path guidance and warning checks
.coderabbit.yaml
Adds path-specific guidance for Swift, the C bridge, tests, scripts, workflows, Graphviz build inputs, and Package.swift. Disables docstring checks, sets title and description checks to warning, and adds warning checks for bundled Graphviz consistency and disclosure of public API changes.
Configuration ownership and coverage
.github/CODEOWNERS, scripts/hygiene.test.sh
Adds a CODEOWNERS rule for .coderabbit.yaml. Updates the hygiene test to check that file and retains the .github/ coverage check.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Suggested reviewers: claude

Merge Risk: Minimal · up to 9dc9c

The review configuration and ownership coverage appear ready to merge after normal checks.

Pre-merge checks: Passed 6

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: a repository-specific CodeRabbit configuration.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Bundled Graphviz Consistency Passed Not applicable. The PR changes .coderabbit.yaml, .github/CODEOWNERS, and scripts/hygiene.test.sh. It does not change the specified Graphviz artifacts or artifacts.sha256.
Public Api Break Disclosure Passed The PR does not change any files in Sources/SwiftGraphviz. It introduces no public API break covered by this check.
Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between eedb84e and 9dc9c04.

Files selected for processing: 3

  • .coderabbit.yaml
  • .github/CODEOWNERS
  • scripts/hygiene.test.sh

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional comments: 1

.coderabbit.yaml: 1

8-8: Trivial · Maintainability & Code Quality · Low value

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Replace the legacy request_changes_workflow key with auto_approvals.enabled.

The schema marks reviews.request_changes_workflow as deprecated and undocumented. It is a legacy alias for reviews.auto_approvals.enabled. The key still validates, but the schema does not guarantee it will keep working. The default for the new key is already false, so the setting only documents intent.

♻️ Proposed change

-  request_changes_workflow: false   # single maintainer; checks stay advisory
+  auto_approvals:
+    enabled: false   # single maintainer; checks stay advisory
Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between eedb84e and 05c92ea.

Files selected for processing: 3

  • .coderabbit.yaml
  • .github/CODEOWNERS
  • scripts/hygiene.test.sh

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

…est_changes_workflow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QehuQ55Dedo7Xa3rY9xRgA
@Vithanco
Vithanco merged commit 6e79ce8 into main Nov 6, 2026
4 checks passed
@Vithanco
Vithanco deleted the claude/project-thread-gfyoym branch November 6, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants