refactor(words): simplify token membership checks - #1926
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 (4)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change replaces manual token membership loops with ChangesWords-to-number converter refactor
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
Four parser membership predicates now use the runtime's allocation-free array lookup instead of hand-written filtering loops. This clears the routed CodeQL findings while preserving ordinal string equality and public behavior; independent A/B validation found identical outputs and allocations on net8, net10, and net11 with zero public API delta.
Related: alert 312, alert 313, alert 321, alert 322
Validation
dotnet format Humanizer.slnx --verify-no-changes --verbosity diagnostictests/verify-packages.ps1Checklist
mainAGENTS.mdpassed