refactor: Move internal polyfills to Internals namespace#250
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR reorganizes internal utilities into a dedicated namespace by moving types from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (25.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #250 +/- ##
==========================================
- Coverage 89.08% 88.88% -0.21%
==========================================
Files 18 19 +1
Lines 1329 1332 +3
Branches 101 101
==========================================
Hits 1184 1184
- Misses 101 104 +3
Partials 44 44 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tests/InterpolationCodeWriter.Tests/InternalSpanLineEnumeratorTest.cs (1)
1-2: LGTM!Test updates correctly reference the renamed
SpanLineEnumeratortype from theInternalsnamespace. The test class nameInternalSpanLineEnumeratorTestremains as a historical artifact—consider renaming it toSpanLineEnumeratorTestin a follow-up for consistency, but this is not blocking.Also applies to: 90-90, 116-116
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@tests/InterpolationCodeWriter.Tests/InternalSpanLineEnumeratorTest.cs` around lines 1 - 2, The test currently references the renamed SpanLineEnumerator type from Internals and passes, but the test class name InternalSpanLineEnumeratorTest is now inconsistent; to clean up, rename the test class InternalSpanLineEnumeratorTest to SpanLineEnumeratorTest and update any references (test class declaration and constructor/method attribute usages) so they match the new name, ensuring SpanLineEnumerator from Raiqub.Generators.InterpolationCodeWriter.Internals remains imported and used unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@tests/InterpolationCodeWriter.Tests/InternalSpanLineEnumeratorTest.cs`:
- Around line 1-2: The test currently references the renamed SpanLineEnumerator
type from Internals and passes, but the test class name
InternalSpanLineEnumeratorTest is now inconsistent; to clean up, rename the test
class InternalSpanLineEnumeratorTest to SpanLineEnumeratorTest and update any
references (test class declaration and constructor/method attribute usages) so
they match the new name, ensuring SpanLineEnumerator from
Raiqub.Generators.InterpolationCodeWriter.Internals remains imported and used
unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 08435335-065f-42ed-a3ab-4a1e51068ed8
📒 Files selected for processing (8)
src/InternalPolyfill/InternalPolyfill.csprojsrc/InternalPolyfill/SpanExtensions.cssrc/InternalPolyfill/SpanLineEnumerator.cssrc/InternalPolyfill/StringBuilderMemory.cssrc/InterpolationCodeWriter/SourceTextWriter.Write.cstests/InterpolationCodeWriter.CSharp10.Tests/InterpolationCodeWriter.CSharp10.Tests.csprojtests/InterpolationCodeWriter.Tests/InternalSpanLineEnumeratorTest.cstests/InterpolationCodeWriter.Tests/StringBuilderMemoryTest.cs
💤 Files with no reviewable changes (1)
- tests/InterpolationCodeWriter.CSharp10.Tests/InterpolationCodeWriter.CSharp10.Tests.csproj
Summary
InternalSpanLineEnumerator→SpanLineEnumeratorandStringBuilderMemoryinto theRaiqub.Generators.InterpolationCodeWriter.InternalsnamespaceSpanExtensionswithEnumerateLines()extension method, unifying the netstandard2.0 and newer-target code paths#if NETSTANDARD2_0guards inSourceTextWriter.Write.csnow that polyfills are always available via theInternalsnamespaceTest plan
InternalSpanLineEnumeratorTest,StringBuilderMemoryTest, and writer tests)🤖 Generated with Claude Code
Summary by CodeRabbit