Skip to content

refactor: consolidate duplicated reactive plumbing#4418

Merged
glennawatson merged 4 commits into
mainfrom
codex/remove-sonar-duplication
Jul 26, 2026
Merged

refactor: consolidate duplicated reactive plumbing#4418
glennawatson merged 4 commits into
mainfrom
codex/remove-sonar-duplication

Conversation

@glennawatson

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Refactor.

What is the new behavior?

Reactive notification initialization, view-contract streams, WinUI host subscriptions, command-binding validation, and observable-property expression validation now reuse shared helpers. Runtime behavior and the public API remain unchanged.

What is the current behavior?

Equivalent implementation blocks are repeated across reactive objects, WPF and WinUI hosts, command-binding overloads, and observable-property helpers. SonarCloud reports those blocks as duplicated new code.

What might this PR break?

None expected. The shared source remains linked into the same WPF and WinUI target-framework paths.

Checklist

  • I have read the Contribute guide
  • Tests have been added or updated (for bug fixes / features)
  • Docs have been added or updated (for bug fixes / features)
  • Changes target the main branch
  • PR title follows Conventional Commits

Additional information

Verification:

  • dotnet build reactiveui.slnx -c Release --no-restore (0 warnings, 0 errors)
  • dotnet test --solution reactiveui.slnx -c Release --no-build (33,404 passed, 0 failed, 0 skipped)

- Share notification, view-contract, and WinUI host subscription mechanics.
- Reuse expression validation and command-binding construction paths.
@glennawatson
glennawatson marked this pull request as ready for review July 25, 2026 23:47
@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.35%. Comparing base (180a40b) to head (1fff99c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4418      +/-   ##
==========================================
+ Coverage   93.15%   93.35%   +0.19%     
==========================================
  Files         345      347       +2     
  Lines       14965    14921      -44     
  Branches     1568     1553      -15     
==========================================
- Hits        13941    13929      -12     
+ Misses        752      731      -21     
+ Partials      272      261      -11     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Centralize WinUI host initialization to remove duplicate blocks.
- Cover view contracts, expression validation, and command overloads.
@glennawatson
glennawatson merged commit 873e9c3 into main Jul 26, 2026
10 of 11 checks passed
@glennawatson
glennawatson deleted the codex/remove-sonar-duplication branch July 26, 2026 02:48
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants