chore: seal non-inheritable model and converter classes (MODERN-005)#446
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: 📥 CommitsReviewing files that changed from the base of the PR and between c7043465d595528d545297b60bf34bd9f883f3fe and a6674cc. 📒 Files selected for processing (20)
✅ Files skipped from review due to trivial changes (3)
📜 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). (2)
🔇 Additional comments (17)
📝 WalkthroughWalkthroughThis PR marks 25 public classes as sealed (five WPF converters and twenty ObservableObject model classes). No logic, members, or behavior changed. ChangesClass Inheritance Prevention
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)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
c704346 to
a6674cc
Compare
…446) Co-authored-by: laurentiu021 <laurentiu021@users.noreply.github.com>
Add sealed modifier to 24 classes that are not designed for inheritance:
Converters (5): OutputKindToBrushConverter, FlexibleBoolToVisibilityConverter, BoolToElevationBadgeBrushConverter, HexToBrushConverter, ProcessStatusToBrushConverter
Models (19): AppInstallEntry, AppPackage, BatteryInfo, BlockedApp, BrokenShortcut, CleanupCategory, DiskHealthReport, DiskUsageEntry, DuplicateFileGroup, DuplicateFileEntry, FriendlyEventEntry, HealthDiagnostic, InstalledApp, PerformanceProfile, PingTarget, ProcessEntry, ServiceEntry, StartupEntry, TracerouteHop, WindowsFeature
Sealing prevents unintended inheritance and enables JIT devirtualization optimizations.
Build: 0 errors (main + tests).
Summary by CodeRabbit