Skip to content

Conversation

@Bill-hbrhbr
Copy link
Collaborator

@Bill-hbrhbr Bill-hbrhbr commented Aug 13, 2025

Description

As title.

Checklist

  • The PR satisfies the contribution guidelines.
  • This is a breaking change and that has been indicated in the PR title, OR this isn't a
    breaking change.
  • Necessary docs have been updated, OR no docs need to be updated.

Validation performed

  • Existing CI workflows pass.

Summary by CodeRabbit

  • Chores
    • Updated an internal reference to the testing framework script to match a new directory layout; no impact on behaviour.
    • Extended repository ignore rules to exclude lint configuration files (clang-format, clang-tidy), keeping working trees cleaner.
    • Advanced developer utilities submodule to a newer revision to align tooling; no functional changes for end users.

@Bill-hbrhbr Bill-hbrhbr requested a review from a team as a code owner August 13, 2025 13:39
@coderabbitai
Copy link

coderabbitai bot commented Aug 13, 2025

Walkthrough

Relocates the Catch2 Catch.cmake path in .gersemirc, adds .clang-format and .clang-tidy to .gitignore, and updates the tools/yscope-dev-utils submodule pointer. No API, logic, or runtime control-flow changes.

Changes

Cohort / File(s) Summary of changes
Build/config scripts
.gersemirc
Updated Catch2 include path: build/deps/Catch2-src/extras/Catch.cmakebuild/deps/Catch2-extracted/extras/Catch.cmake.
Repo housekeeping
.gitignore
Added "Lint config files" section to ignore /.clang-format and /.clang-tidy.
Submodule updates
tools/yscope-dev-utils
Advanced submodule from 15df087… to e121a57…; no functional changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • kirkrodrigues
  • davidlion
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4ede2e5 and 693204e.

📒 Files selected for processing (3)
  • .gersemirc (1 hunks)
  • .gitignore (1 hunks)
  • tools/yscope-dev-utils (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: Bill-hbrhbr
PR: y-scope/ystdlib-cpp#32
File: CMakeLists.txt:0-0
Timestamp: 2025-02-28T05:04:33.616Z
Learning: Bill-hbrhbr uses a maximum line length of 100 characters in CMake files and prefers to use backslash line continuations to maintain this limit.
📚 Learning: 2025-03-06T20:42:41.772Z
Learnt from: Bill-hbrhbr
PR: y-scope/ystdlib-cpp#0
File: :0-0
Timestamp: 2025-03-06T20:42:41.772Z
Learning: In the y-scope/ystdlib-cpp project, the linting scope is limited to .h, .hpp, and .cpp files, and the header-only detection logic in CMake checks for .h, .hpp, and .inc extensions.

Applied to files:

  • .gitignore
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-ystdlib-cpp (ubuntu-24.04, debug)
  • GitHub Check: build-ystdlib-cpp (ubuntu-24.04, release)
  • GitHub Check: build-ystdlib-cpp (macos-14, release)
  • GitHub Check: build-ystdlib-cpp (ubuntu-22.04, release)
  • GitHub Check: build-ystdlib-cpp (ubuntu-22.04, debug)
  • GitHub Check: build-ystdlib-cpp (macos-15, release)
  • GitHub Check: build-ystdlib-cpp (macos-15, debug)
  • GitHub Check: build-ystdlib-cpp (macos-14, debug)
  • GitHub Check: lint-check (macos-15)
  • GitHub Check: lint-check (ubuntu-24.04)
🔇 Additional comments (2)
tools/yscope-dev-utils (1)

1-1: Submodule pointer bump looks good

The pointer update to e121a57… is straightforward. No API or runtime impact within this repo. CI passing is sufficient signal for this change.

.gersemirc (1)

6-6: Add fallback Catch2 path in .gersemirc

To support both bootstrap flows (where Catch2 may be placed under Catch2-extracted or under Catch2-src), include both paths in the definitions array. Gersemi will pick up whichever file exists; please verify it ignores the missing entry without error.

In .gersemirc (around line 6):

 definitions:
-  - "cmake/ystdlib-helpers.cmake"
-  - "build/deps/Catch2-extracted/extras/Catch.cmake"
+  - "cmake/ystdlib-helpers.cmake"
+  - "build/deps/Catch2-extracted/extras/Catch.cmake"
+  - "build/deps/Catch2-src/extras/Catch.cmake"

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 693204e and b5c85e4.

📒 Files selected for processing (1)
  • .gitignore (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: Bill-hbrhbr
PR: y-scope/ystdlib-cpp#32
File: CMakeLists.txt:0-0
Timestamp: 2025-02-28T05:04:33.616Z
Learning: Bill-hbrhbr uses a maximum line length of 100 characters in CMake files and prefers to use backslash line continuations to maintain this limit.
📚 Learning: 2025-03-06T20:42:41.772Z
Learnt from: Bill-hbrhbr
PR: y-scope/ystdlib-cpp#0
File: :0-0
Timestamp: 2025-03-06T20:42:41.772Z
Learning: In the y-scope/ystdlib-cpp project, the linting scope is limited to .h, .hpp, and .cpp files, and the header-only detection logic in CMake checks for .h, .hpp, and .inc extensions.

Applied to files:

  • .gitignore
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-ystdlib-cpp (ubuntu-22.04, release)
  • GitHub Check: build-ystdlib-cpp (macos-14, debug)
  • GitHub Check: build-ystdlib-cpp (ubuntu-22.04, debug)
  • GitHub Check: build-ystdlib-cpp (ubuntu-24.04, debug)
  • GitHub Check: build-ystdlib-cpp (ubuntu-24.04, release)
  • GitHub Check: build-ystdlib-cpp (macos-15, release)
  • GitHub Check: build-ystdlib-cpp (macos-14, release)
  • GitHub Check: build-ystdlib-cpp (macos-15, debug)
  • GitHub Check: lint-check (macos-15)
  • GitHub Check: lint-check (ubuntu-24.04)
🔇 Additional comments (2)
.gitignore (2)

8-10: Anchored ignore patterns LGTM; this aligns with best practice and prior feedback

Using "/.clang-format" and "/.clang-tidy" confines the ignore to the repo root, preserving any nested, project-scoped configs under version control. No further action needed here.


8-10: All set: .clang-format and .clang-tidy are untracked
The new .gitignore entries will now prevent these files from being added to the index.

Comment on lines +8 to +10
# Lint config files
/.clang-format
/.clang-tidy
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Optional: Add ignores for local override files to support per-developer tweaks

If you want to allow local overrides without affecting CI or shared formatting, consider ignoring conventional local variants.

 # Lint config files
 /.clang-format
 /.clang-tidy
+/.clang-format.local
+/.clang-tidy.local
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Lint config files
/.clang-format
/.clang-tidy
# Lint config files
/.clang-format
/.clang-tidy
/.clang-format.local
/.clang-tidy.local
🤖 Prompt for AI Agents
In .gitignore around lines 8 to 10, add ignores for per-developer local override
files so developers can keep local tweaks out of commits; append entries such as
"/.clang-format.local" and "/.clang-tidy.local" (or a single pattern like
"/.clang-format.*" and "/.clang-tidy.*" if you want to cover other variants) to
the file and commit the change.

@Bill-hbrhbr Bill-hbrhbr merged commit 49d5713 into y-scope:main Aug 13, 2025
12 checks passed
@Bill-hbrhbr Bill-hbrhbr deleted the update-yscope-dev-utils branch August 13, 2025 19:34
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