fix(generator): simplify locale resolution filters - #1915
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 (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe locale catalog replaces selected explicit loops with LINQ expressions while preserving behavior and diagnostics. Tests cover unsupported properties in ChangesLocale catalog changes
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
|
Safety close: this stale head overlaps the active localization integration and must be serialized. Exact head 820805f was built from stale parent a2a8098. It overlaps #1902 in all three changed paths: src/Humanizer.SourceGenerators/Common/LocaleYamlCatalog.cs, tests/Humanizer.SourceGenerators.Tests/SourceGenerators/CanonicalLocaleSchemaTests.cs, and website/docs/contributing/locale-yaml-reference.mdx. Its fingerprint document also predates the merged #1912 TokenMap fingerprint. Serialize this correction after #1913 reaches its terminal reviewed merge. Then rebuild from fingerprint-current main, reapply the still-needed #345/#360/#654/#764 corrections, regenerate the complete fingerprint block, and restart fresh exact-head CI and review before any reopen/merge. The branch is intentionally retained; no branch edit or deletion is authorized by this close. |
Summary
Closes CodeQL alerts #345, #360, #654, and #764.
Ordering, first-error messages, generated contracts, and incremental dependencies are unchanged.
Validation
dotnet format Humanizer.slnx --verify-no-changes --verbosity diagnosticpwsh -NoLogo -NoProfile -File tools/docs/build.ps1 -Mode Validatedotnet pack src/Humanizer/Humanizer.csproj -c Release -o <temp>pwsh -NoLogo -NoProfile -File tests/verify-packages.ps1 ...Coordination
PR #1902 also changes
LocaleYamlCatalog.cs,CanonicalLocaleSchemaTests.cs, and the fingerprint document. Its current hunks leave all four alert blocks unchanged, but it must rebase this merged implementation and regenerate the complete fingerprint block.