fix(codegen): escape doc comments#10086
Conversation
|
Parser conformance results onjs/262
jsx/babel
markdown/commonmark
symbols/microsoft
ts/babel
ts/microsoft
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
WalkthroughAdds a new internal helper 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
xtask/codegen/src/generate_bindings.rs (1)
16-18: Consider centralising this helper to avoid drift.Same
escape_jsdoc_comment_textexists incrates/biome_service/src/workspace_types.rs(Line 17-Line 19). Tiny duplication today, subtle divergence tomorrow.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@xtask/codegen/src/generate_bindings.rs` around lines 16 - 18, Two identical helpers named escape_jsdoc_comment_text are duplicated; extract this function into a single shared utility (e.g., a pub fn escape_jsdoc_comment_text in a common utils module or crate) and replace the local duplicates with imports that call the shared function. Specifically, create a single exported function escape_jsdoc_comment_text in a shared module, remove the duplicates in generate_bindings.rs and workspace_types.rs, update their use/imports to reference the shared symbol, and run cargo build to ensure visibility (make it pub and adjust module paths as needed).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@xtask/codegen/src/generate_bindings.rs`:
- Around line 16-18: Two identical helpers named escape_jsdoc_comment_text are
duplicated; extract this function into a single shared utility (e.g., a pub fn
escape_jsdoc_comment_text in a common utils module or crate) and replace the
local duplicates with imports that call the shared function. Specifically,
create a single exported function escape_jsdoc_comment_text in a shared module,
remove the duplicates in generate_bindings.rs and workspace_types.rs, update
their use/imports to reference the shared symbol, and run cargo build to ensure
visibility (make it pub and adjust module paths as needed).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f3347fff-9f67-4935-8495-6d91fc33ea81
⛔ Files ignored due to path filters (1)
packages/@biomejs/backend-jsonrpc/src/workspace.tsis excluded by!**/backend-jsonrpc/src/workspace.tsand included by**
📒 Files selected for processing (2)
crates/biome_service/src/workspace_types.rsxtask/codegen/src/generate_bindings.rs
7b12f67 to
9ea5eff
Compare
Summary
fixes main branch failures
Test Plan
green ci
Docs