chore: use [GeneratedRegex] source generator (MODERN-001) - #453
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📜 Recent review details⏰ 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). (1)
🔇 Additional comments (5)
📝 WalkthroughWalkthroughThis PR systematically migrates inline ChangesRegex Source Generation Modernization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Co-authored-by: laurentiu021 <laurentiu021@users.noreply.github.com>
Summary
Regexinstantiation and staticRegex.IsMatch/Regex.Replacecalls with[GeneratedRegex]source-generated methodsMarkdownTextBlockandDiskHealthServiceclassespartialto support source generationHelpers/MarkdownTextBlock.cs— 1 regex (inline bold/code formatting)Services/UninstallerService.cs— 3 regex (header detection, summary line, MSI switch replacement)Services/WingetService.cs— 2 regex (upgrade header, summary line)Services/DiskHealthService.cs— 1 regex (objectId format validation)ViewModels/SystemHealthViewModel.cs— 1 regex (drive letter validation)Services/LogService.cs— uses dynamic runtime-interpolated pattern, cannot be source-generatedTest plan
Summary by CodeRabbit