Conversation
Reviewer's GuideExtended wrap_text to detect and preserve markdownlint directives as standalone lines, and added integration tests to confirm this behavior alongside regular comment wrapping. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Summary by CodeRabbit
WalkthroughIntroduce a conditional in the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Possibly related issues
Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.rs📄 CodeRabbit Inference Engine (AGENTS.md)
Files:
⚙️ CodeRabbit Configuration File
Files:
🧬 Code Graph Analysis (1)tests/wrap.rs (1)
🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Hey @leynos - I've reviewed your changes and found some issues that need to be addressed.
- Generalize the markdownlint directive detection (e.g. via a regex) to handle optional whitespace or variations like
<!-- markdownlint-disable MD013 --> - Extract the markdownlint directive check into a small helper to keep wrap_text focused and make future rule additions clearer
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Generalize the markdownlint directive detection (e.g. via a regex) to handle optional whitespace or variations like `<!-- markdownlint-disable MD013 -->`
- Extract the markdownlint directive check into a small helper to keep wrap_text focused and make future rule additions clearerHelp me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
Superseded by #129 |
Summary
markdownlintdirectives on a single lineTesting
make lintmake testhttps://chatgpt.com/codex/tasks/task_e_68888eec3afc8322a17eab06cba6d228
Summary by Sourcery
Preserve markdownlint directives on a single line during text wrapping and add tests to verify directive and comment wrapping behaviors
Enhancements:
Tests: