Skip to content

fix(build): support configured collection expressions - #190

Open
ChrisPulman wants to merge 2 commits into
mainfrom
CP_fix-sst2106-collection-expressions
Open

fix(build): support configured collection expressions#190
ChrisPulman wants to merge 2 commits into
mainfrom
CP_fix-sst2106-collection-expressions

Conversation

@ChrisPulman

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Build compatibility fix and centrally managed dependency refresh.

What is the new behavior?

  • Uses C# 15 collection expressions with with(...) for configured List, HashSet, and Dictionary construction required by SST2106.
  • Preserves the existing capacity and comparer semantics in production and test code.
  • Includes the current central package version updates.

What is the current behavior?

The analyzer update reports SST2106 errors for direct collection constructors that specify capacity or comparer arguments, preventing solution builds.

Checklist

  • 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

  • dotnet build "ReactiveUI.Primitives.slnx" -c Debug --no-restore --no-incremental completed with 0 warnings and 0 errors.
  • dotnet build "ReactiveUI.Primitives.slnx" -c Release --no-restore --no-incremental completed with 0 warnings and 0 errors.
  • Independent Debug and Release builds also completed with 0 warnings and 0 errors.

Update capacity- and comparer-based List, HashSet, and Dictionary construction to the C# 15 collection-expression syntax required by SST2106.

Refresh centrally managed dependency versions and align the affected test setup code while preserving comparer and capacity semantics.
Replace the scheduler-sensitive five-second completion wait in the async-enumerable coverage test with TUnit's standard cancellation token and a 30-second per-test timeout.\n\nThis preserves the asynchronous enumeration path while preventing Windows multi-target runner contention from producing false failures.
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.10%. Comparing base (cffbcd1) to head (7dc61c5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #190   +/-   ##
=======================================
  Coverage   99.10%   99.10%           
=======================================
  Files         711      711           
  Lines       22078    22078           
  Branches     2703     2703           
=======================================
  Hits        21881    21881           
  Misses        196      196           
  Partials        1        1           

☔ 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.

@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.

1 participant