You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
现有版本在 config.yaml 中为自定义 checker 显式指定 lang 后仍然覆盖成 auto,导致 checker 编译环境不符合预期。
Summary by CodeRabbit
Bug Fixes
Checker files with an extension now use the configured language when available, or automatically detect the language when none is specified. This improves consistency when loading cases and prevents the language from defaulting to automatic detection when a specific language was configured.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
No actionable comments were generated in the recent review.
Walkthrough
When a checker name contains an extension, readYamlCases now passes the checker file name and resolved language to checkFileWithLang. Previously, it passed only the name.
This change makes custom checkers keep the language configured in config.yaml instead of being reset to auto. No merge-blocking risk was found. The CLA signature check still needs to be completed.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "judge: preserve checker language" matches the main change. When a custom checker file with an extension is configured with an explicit lang, readYamlCases now passes cfg.checker.lang (or 'a…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "judge: preserve checker language" matches the main change. When a custom checker file with an extension is configured with an explicit lang, readYamlCases now passes cfg.checker.lang (or 'auto') to checkFileWithLang, so the configured language is no longer overwritten with 'auto'. The title is concise, specific, and follows the conventional scope-prefix style.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Fix failing CI checks
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
ESLint
If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.
packages/common/cases.ts
ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 96c2ff98-99ea-4273-9f24-4ae5187cdec9
Commits
Reviewing files that changed from the base of the PR and between 80e1541 and 6ec9271.
Files selected for processing: 1
packages/common/cases.ts
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
现有版本在
config.yaml中为自定义 checker 显式指定lang后仍然覆盖成auto,导致 checker 编译环境不符合预期。Summary by CodeRabbit