refactor: a little matcher readability cleanup#286
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR refactors regex construction in three data-sanitization matchers by centralizing flag management and extracting intermediate regex components for readability, while preserving masking and removal behaviour. A planning document outlines the approach and verification constraints. ChangesMatcher Readability Cleanup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Overview
Refactors matcher regular expression construction into named local fragments while preserving the existing matcher API and behavior.
Details
src/matchers.tswith local field, value, removal, and masking fragments inside each matcher.yarn test,yarn test:coverage,yarn lint,yarn format:check,yarn build, and workspace diagnostics.Related Tickets and/or Pull Requests
N/A
Summary by CodeRabbit
Refactor
Documentation