Public report of dotnet/reactive, published 12 November 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.3). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 12 November 2026, 02:47 UTC · Survey ID cd_e437e3c9d9fe48ada830c994c2ad5cd8
dotnet/reactive
Measured 12 November 2026, 02:44 UTC, at code version d257d1b
Code coverage is not measured: No coverage collector is wired up.
Boundary Type-Coupling is not measured: Bounded contexts not declared.
CAI scoreProvisionalUp 2 since the last survey
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A large codebase: 229,354 lines of product code in 186 projects, tests not counted · Estimated rebuild effort: about 4.4 person-years · Weakest lens: Production Readiness, 45
Findings by how serious they are
131 critical1069 serious649 minor
5 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
12 November 2026, 02:44 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that
implements it, and today the Canine Code Analyzer is the only one that does.
The code didn't build, so the score is provisional
We couldn't build the code: the build stopped with 121 errors. The dimensions that need a working build, such as complexity, duplication and dead code, were measured on an incomplete picture of the code, so their grades and the score are provisional. Fix the build errors and run the survey again for a final score. The first errors: CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.; CS9202: Feature 'unbound generic types in nameof operator' is not available in C# 12.0. Please use language version 14.0 or greater.; MSB3644: The reference assemblies for UAP,Version=v10.0.18362 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks; CS0234: The type or namespace name 'Reactive' does not exist in the namespace 'System' (are you missing an assembly reference?); CS0246: The type or namespace name 'Timestamped<>' could not be found (are you missing a using directive or an assembly reference?); MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Portable/$(TargetFrameworkVersion)/Microsoft.Portable.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets", is correct, and that the file exists on disk.; MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Silverlight/v4.0/Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Silverlight/$(SilverlightVersion)/Microsoft.Silverlight.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Silverlight/v4.0/Microsoft.Silverlight.CSharp.targets", is correct, and that the file exists on disk.; MSB3073: The command "mono --runtime=v4.0.30319 Rx.NET/Samples/Portable/.nuget/NuGet.exe install "packages.config" -source "" -RequireConsent -solutionDir "Rx.NET/Samples/Portable/"" exited with code 127.; MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Portable/$(TargetFrameworkVersion)/Microsoft.Portable.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets", is correct, and that the file exists on disk.; CS0246: The type or namespace name 'CommonCodeInPcl' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'Subject<>' could not be found (are you missing a using directive or an assembly reference?); CS0234: The type or namespace name 'Kinect' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
60of 60 dimensions measured by tools.
1837of 1849 findings point to an exact file and line, so you can open each one in the code. The other 12 concern the repository as a whole, such as missing documentation.
60dimensions across 6 lenses, read from 229,354 lines of product code in 186 projects.
dotnet/reactive has a provisional result, because the code didn't build. Its score is held back because three passwords or keys sit in the current code and we found no working pipeline that builds or tests changes to the code. It scores 57 out of 100, and the ratings may change once the code builds. Eight of its 131 critical findings are security problems.
Production Readiness, at 45, is the weakest lens and counts most in the score. The best first step is replacing the three exposed passwords or keys and switching the old ones off, worth about 12 points. Making the tests check their results comes next, worth about 6 points. Raising Production Readiness to 70 would lift the score to about 68.
Four passwords or keys in the code's history and three in the code are open to anyone who can read the repository. One automatic update takes new releases before a bad one can be spotted, and fifty-eight parts of the code are no longer understood by anyone working on it. Replacing each exposed password or key, setting a waiting period for automatic updates and having someone learn the forgotten files would close these risks. The 35 sets of compiler warnings switched off in projects need turning back on in the build file.
The product code is 229,354 lines, about €640,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Production Readiness rose from 45 to 70, the lowest score rated Strong, the score would rise from 57 to about 68.
Code composition: what the lines of code are
Business logic 13%Supporting code 31%Tests 43%Generated by tools 13%Code analyzers 0%
New since the last survey: 413 findings
These 413 critical or serious findings weren't in the previous survey, on 23 October 2026. The first 100 are listed here, and the findings file in the download package lists them all.
God Classes · TooManyMethods: AsyncObserver AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs
God Classes · TooManyMethods: Seq AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs
God Classes · FileTooLong: Operators/SelectMany.cs AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs
God Classes · MethodTooLong: AsyncObserver.DelayCore AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs
Code Duplication · Edited copy of a member (52 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs
Code Duplication · Members sharing a duplicated core (15 members, 50+ identical tokens) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs
Code Duplication · Members sharing a duplicated core (13 members, 50+ identical tokens) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs
Code Duplication · Members sharing a duplicated core (10 members, 50+ identical tokens) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs
Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs
Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs
Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs
Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs
Code Duplication · Edited copies of one member (3 members, 48+ corresponding lines) Ix.NET/Source/FasterLinq/Program.cs
Code Duplication · Edited copy of a member (70 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs
Code Duplication · Edited copy of a member (60 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs
Code Duplication · Edited copy of a member (65 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs
Code Duplication · Edited copies of one member (3 members, 64+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs
Code Duplication · Edited copy of a member (63 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Code Duplication · Edited copy of a member (65 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/MaxBy.cs
Code Duplication · Edited copy of a member (42 corresponding lines) AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs
Code Duplication · Edited copy of a member (35 corresponding lines) AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs
Code Duplication · Edited copy of a member (51 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs
Code Duplication · Edited copy of a member (53 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs
Code Duplication · Edited copy of a member (17 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs
Code Duplication · Edited copies of one member (4 members, 53+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs
Code Duplication · Edited copy of a member (45 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs
Code Duplication · Edited copy of a member (51 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Do.cs
Code Duplication · Edited copy of a member (53 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/DistinctUntilChanged.cs
Code Duplication · Edited copy of a member (52 corresponding lines) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs
Code Duplication · Edited copies of one member (4 members, 53+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs
Code Duplication · Edited copy of a member (25 corresponding lines) AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs
Code Duplication · Edited copy of a member (37 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Code Duplication · Edited copy of a member (31 corresponding lines) Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs
Code Duplication · Edited copy of a member (34 corresponding lines) AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs
Code Duplication · Edited copy of a member (22 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs
Code Duplication · Edited copy of a member (44 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Using.cs
Code Duplication · Edited copy of a member (38 corresponding lines) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs
Code Duplication · Edited copy of a member (36 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs
Code Duplication · Edited copies of one member (4 members, 45+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs
Code Duplication · Edited copies of one member (3 members, 37+ corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs
Code Duplication · Edited copies of one member (4 members, 52+ corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs
Code Duplication · Edited copy of a member (48 corresponding lines) AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs
Code Duplication · Edited copy of a member (43 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs
Code Duplication · Edited copy of a member (32 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs
Code Duplication · Edited copies of one member (3 members, 31+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Subjects/ReplayAsyncSubject.cs
Code Duplication · Edited copy of a member (28 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs
Code Duplication · Edited copy of a member (32 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs
Code Duplication · Edited copy of a member (27 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/For.cs
Code Duplication · Edited copies of one member (4 members, 40+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs
Code Duplication · Edited copy of a member (28 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs
Code Duplication · Edited copies of one member (4 members, 35+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/All.cs
Code Duplication · Edited copy of a member (45 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/MaxBy.cs
Code Duplication · Edited copy of a member (44 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs
Code Duplication · Edited copies of one member (3 members, 40+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs
Code Duplication · Edited copies of one member (3 members, 40+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs
Code Duplication · Edited copy of a member (27 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs
Code Duplication · Edited copy of a member (39 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLastBuffer.cs
Code Duplication · Edited copy of a member (31 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/RepeatWhenAsyncObservable.cs
Code Duplication · Edited copies of one member (4 members, 21+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs
Code Duplication · Edited copy of a member (27 corresponding lines) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/AsyncInfoObservable.cs
Code Duplication · Edited copy of a member (17 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs
Code Duplication · Edited copies of one member (4 members, 27+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs
Code Duplication · Edited copy of a member (27 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs
Code Duplication · Edited copy of a member (26 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Code Duplication · Edited copy of a member (36 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs
Code Duplication · Edited copy of a member (26 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs
Code Duplication · Edited copy of a member (21 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs
Code Duplication · Edited copy of a member (17 corresponding lines) AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs
Code Duplication · Edited copies of one member (5 members, 24+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Amb.cs
We compare every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 215 findings
These 215 critical or serious findings were in the previous survey, on 23 October 2026, and are gone from this one. The first 100 are listed here.
Async correctness · Sync-over-async (deadlock risk) through `.Result` AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs
Cancellation propagation · Async method without CancellationToken: ForEachAsync Rx.NET/Source/src/System.Reactive/Linq/Observable.Imperative.cs
Cancellation propagation · Async method without CancellationToken: ForEachAsync Rx.NET/Source/src/System.Reactive/Linq/Observable.Imperative.cs
Cancellation propagation · Async method without CancellationToken: ForEachAsync Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Imperative.cs
Cancellation propagation · Async method without CancellationToken: ForEachAsync Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Imperative.cs
Cancellation propagation · Async method without CancellationToken: ToTask Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs
Cancellation propagation · Async method without CancellationToken: SkipBeforeAsync Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs
Cancellation propagation · Async method without CancellationToken: SkipAndCountAsync Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerator.cs
Cancellation propagation · Async local function without CancellationToken: Core Ix.NET/Source/System.Linq.Async/System/Linq/AsyncListPartition.cs
Cancellation propagation · Async method without CancellationToken: Sort Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Cancellation propagation · Async method without CancellationToken: Sort Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Cancellation propagation · Async method without CancellationToken: ElementAt Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Cancellation propagation · Async method without CancellationToken: ComputeMap Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Cancellation propagation · Async method without CancellationToken: ComputeKeys Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Cancellation propagation · Async method without CancellationToken: ComputeKeys Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs
Cancellation propagation · Async local function without CancellationToken: Core Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Range.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Repeat.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs
Cancellation propagation · Async method without CancellationToken: MoveNextCore Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs
Cancellation propagation · Async method without CancellationToken: AsyncLinq Ix.NET/Source/Playground/Program.cs
Rebuild cost: about €640,000 · Estimate
Cost to rebuild
€210,000 to €1,100,000, for 3,539 to 11,310 hours of work, about 4.4 person-years for 2 to 9 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.8 at a score of 57. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Large: 229,354 lines of product code, of which 25% is declarations and boilerplate, 46% straight logic and 29% logic with branches
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Resolve the 3 Leaked secret finding(s) in Secret Scanning — start with REDACTED (3).
Raises the score by about 12 points · Low effort · Secret Scanning
2
Resolve the 1 Tests excluded from compilation finding(s) in Test Quality — start with LicenseHeaderTest.cs.
Raises the score by about 6 points · Low effort · Test Quality
3
Add a CI workflow that builds and runs the test suite on every push/PR.
Raises the score by about 9 points · Medium effort · CI/CD gates
Diagnosis: what the measurements show together
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
If you do one thing first · First action
Fix the build. The code didn't build, so the dimensions that need a working build were measured on an incomplete picture of the code, and every grade in this report is provisional. Once the build works, the next survey gives a final score. The compiler's first errors: CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.; CS9202: Feature 'unbound generic types in nameof operator' is not available in C# 12.0. Please use language version 14.0 or greater.; MSB3644: The reference assemblies for UAP,Version=v10.0.18362 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks; CS0234: The type or namespace name 'Reactive' does not exist in the namespace 'System' (are you missing an assembly reference?); CS0246: The type or namespace name 'Timestamped<>' could not be found (are you missing a using directive or an assembly reference?); MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Portable/$(TargetFrameworkVersion)/Microsoft.Portable.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets", is correct, and that the file exists on disk.; MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Silverlight/v4.0/Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Silverlight/$(SilverlightVersion)/Microsoft.Silverlight.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Silverlight/v4.0/Microsoft.Silverlight.CSharp.targets", is correct, and that the file exists on disk.; MSB3073: The command "mono --runtime=v4.0.30319 Rx.NET/Samples/Portable/.nuget/NuGet.exe install "packages.config" -source "" -RequireConsent -solutionDir "Rx.NET/Samples/Portable/"" exited with code 127.; MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Portable/$(TargetFrameworkVersion)/Microsoft.Portable.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets", is correct, and that the file exists on disk.; CS0246: The type or namespace name 'CommonCodeInPcl' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'Subject<>' could not be found (are you missing a using directive or an assembly reference?); CS0234: The type or namespace name 'Kinect' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Based on: Solution Shape
Where the investment is most exposed · Value at risk
This code would cost about €640,000 to build again, about 4.4 person-years of work. Its weakest lens is Production Readiness, at 45 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
Architecture — bounded-context dependency graph
Each box is a bounded context (its layer projects grouped, or a project count when large); arrows show dependencies between contexts. A shared kernel is where many arrows converge.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
44 modules, with 59 dependencies between them. 2 loops run through 11 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 4 more are left out to keep it readable.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
System.Linq.Internal uses System.Linq, so a change to System.Linq can break System.Linq.Internal, while a change to System.Linq.Internal can't break System.Linq.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
22→29 System.Linq.Internal uses System.Collections.Genericpart of a loop✕
Connections
5 pairs of types, where a type in System.Linq.Internal uses a type in System.Collections.Generic.
System.Linq.Internal uses System.Collections.Generic, so a change to System.Collections.Generic can break System.Linq.Internal, while a change to System.Linq.Internal can't break System.Collections.Generic.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
System.Reactive.Disposables uses System, so a change to System can break System.Reactive.Disposables, while a change to System.Reactive.Disposables can't break System.
Position
Below the diagonal: System.Reactive.Disposables uses a module listed above it, which is the healthy direction.
23→32 System.Reactive.Disposables uses System.Reactive.Concurrencypart of a loop✕
Connections
1 pair of types, where a type in System.Reactive.Disposables uses a type in System.Reactive.Concurrency.
System.Reactive.Disposables uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Reactive.Disposables, while a change to System.Reactive.Disposables can't break System.Reactive.Concurrency.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
System.Linq uses System.Linq.Internal, so a change to System.Linq.Internal can break System.Linq, while a change to System.Linq can't break System.Linq.Internal.
Position
Below the diagonal: System.Linq uses a module listed above it, which is the healthy direction.
25→29 System.Linq uses System.Collections.Genericpart of a loop✕
Connections
87 pairs of types, where a type in System.Linq uses a type in System.Collections.Generic. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
System.Linq uses System.Collections.Generic, so a change to System.Collections.Generic can break System.Linq, while a change to System.Linq can't break System.Collections.Generic.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
System.Reactive.Disposables.Fluent uses System.Reactive.Disposables, so a change to System.Reactive.Disposables can break System.Reactive.Disposables.Fluent, while a change to System.Reactive.Disposables.Fluent can't break System.Reactive.Disposables.
Position
Below the diagonal: System.Reactive.Disposables.Fluent uses a module listed above it, which is the healthy direction.
System.Reactive.Joins uses System.Reactive.Disposables, so a change to System.Reactive.Disposables can break System.Reactive.Joins, while a change to System.Reactive.Joins can't break System.Reactive.Disposables.
Position
Below the diagonal: System.Reactive.Joins uses a module listed above it, which is the healthy direction.
System.Reactive.Joins uses System.Threading, so a change to System.Threading can break System.Reactive.Joins, while a change to System.Reactive.Joins can't break System.Threading.
Position
Below the diagonal: System.Reactive.Joins uses a module listed above it, which is the healthy direction.
27→36 System.Reactive.Joins uses System.Reactivepart of a loop✕
Connections
4 pairs of types, where a type in System.Reactive.Joins uses a type in System.Reactive.
System.Reactive.Joins uses System.Reactive, so a change to System.Reactive can break System.Reactive.Joins, while a change to System.Reactive.Joins can't break System.Reactive.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
System.Reactive.PlatformServices uses System.Reactive.Disposables, so a change to System.Reactive.Disposables can break System.Reactive.PlatformServices, while a change to System.Reactive.PlatformServices can't break System.Reactive.Disposables.
Position
Below the diagonal: System.Reactive.PlatformServices uses a module listed above it, which is the healthy direction.
28→32 System.Reactive.PlatformServices uses System.Reactive.Concurrencypart of a loop✕
Connections
1 pair of types, where a type in System.Reactive.PlatformServices uses a type in System.Reactive.Concurrency.
System.Reactive.PlatformServices uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Reactive.PlatformServices, while a change to System.Reactive.PlatformServices can't break System.Reactive.Concurrency.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
System.Collections.Generic uses System, so a change to System can break System.Collections.Generic, while a change to System.Collections.Generic can't break System.
Position
Below the diagonal: System.Collections.Generic uses a module listed above it, which is the healthy direction.
System.Collections.Generic uses System.Linq, so a change to System.Linq can break System.Collections.Generic, while a change to System.Collections.Generic can't break System.Linq.
Position
Below the diagonal: System.Collections.Generic uses a module listed above it, which is the healthy direction.
28 pairs of types, where a type in System.Labs.Linq uses a type in System.Collections.Generic. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
System.Labs.Linq uses System.Collections.Generic, so a change to System.Collections.Generic can break System.Labs.Linq, while a change to System.Labs.Linq can't break System.Collections.Generic.
Position
Below the diagonal: System.Labs.Linq uses a module listed above it, which is the healthy direction.
System.Threading.Tasks uses System, so a change to System can break System.Threading.Tasks, while a change to System.Threading.Tasks can't break System.
Position
Below the diagonal: System.Threading.Tasks uses a module listed above it, which is the healthy direction.
System.Threading.Tasks uses System.Collections.Generic, so a change to System.Collections.Generic can break System.Threading.Tasks, while a change to System.Threading.Tasks can't break System.Collections.Generic.
Position
Below the diagonal: System.Threading.Tasks uses a module listed above it, which is the healthy direction.
31→32 System.Threading.Tasks uses System.Reactive.Concurrencypart of a loop✕
Connections
6 pairs of types, where a type in System.Threading.Tasks uses a type in System.Reactive.Concurrency.
System.Threading.Tasks uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Threading.Tasks, while a change to System.Threading.Tasks can't break System.Reactive.Concurrency.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
31→36 System.Threading.Tasks uses System.Reactivepart of a loop✕
Connections
1 pair of types, where a type in System.Threading.Tasks uses a type in System.Reactive.
System.Threading.Tasks uses System.Reactive, so a change to System.Reactive can break System.Threading.Tasks, while a change to System.Threading.Tasks can't break System.Reactive.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
System.Reactive.Concurrency uses System, so a change to System can break System.Reactive.Concurrency, while a change to System.Reactive.Concurrency can't break System.
Position
Below the diagonal: System.Reactive.Concurrency uses a module listed above it, which is the healthy direction.
System.Reactive.Concurrency uses System.Reactive.Disposables, so a change to System.Reactive.Disposables can break System.Reactive.Concurrency, while a change to System.Reactive.Concurrency can't break System.Reactive.Disposables.
Position
Below the diagonal: System.Reactive.Concurrency uses a module listed above it, which is the healthy direction.
System.Reactive.Concurrency uses System.Reactive.PlatformServices, so a change to System.Reactive.PlatformServices can break System.Reactive.Concurrency, while a change to System.Reactive.Concurrency can't break System.Reactive.PlatformServices.
Position
Below the diagonal: System.Reactive.Concurrency uses a module listed above it, which is the healthy direction.
System.Reactive.Concurrency uses System.Threading.Tasks, so a change to System.Threading.Tasks can break System.Reactive.Concurrency, while a change to System.Reactive.Concurrency can't break System.Threading.Tasks.
Position
Below the diagonal: System.Reactive.Concurrency uses a module listed above it, which is the healthy direction.
32→36 System.Reactive.Concurrency uses System.Reactivepart of a loop✕
Connections
9 pairs of types, where a type in System.Reactive.Concurrency uses a type in System.Reactive.
System.Reactive.Concurrency uses System.Reactive, so a change to System.Reactive can break System.Reactive.Concurrency, while a change to System.Reactive.Concurrency can't break System.Reactive.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
37 pairs of types, where a type in System.Reactive.Subjects uses a type in System. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
System.Reactive.Subjects uses System, so a change to System can break System.Reactive.Subjects, while a change to System.Reactive.Subjects can't break System.
Position
Below the diagonal: System.Reactive.Subjects uses a module listed above it, which is the healthy direction.
System.Reactive.Subjects uses System.Threading, so a change to System.Threading can break System.Reactive.Subjects, while a change to System.Reactive.Subjects can't break System.Threading.
Position
Below the diagonal: System.Reactive.Subjects uses a module listed above it, which is the healthy direction.
System.Reactive.Subjects uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Reactive.Subjects, while a change to System.Reactive.Subjects can't break System.Reactive.Concurrency.
Position
Below the diagonal: System.Reactive.Subjects uses a module listed above it, which is the healthy direction.
33→36 System.Reactive.Subjects uses System.Reactivepart of a loop✕
Connections
14 pairs of types, where a type in System.Reactive.Subjects uses a type in System.Reactive.
System.Reactive.Subjects uses System.Reactive, so a change to System.Reactive can break System.Reactive.Subjects, while a change to System.Reactive.Subjects can't break System.Reactive.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
System.Reactive.Uwp uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Reactive.Uwp, while a change to System.Reactive.Uwp can't break System.Reactive.Concurrency.
Position
Below the diagonal: System.Reactive.Uwp uses a module listed above it, which is the healthy direction.
59 pairs of types, where a type in System.Reactive.Linq uses a type in System. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
System.Reactive.Linq uses System.Reactive.Disposables, so a change to System.Reactive.Disposables can break System.Reactive.Linq, while a change to System.Reactive.Linq can't break System.Reactive.Disposables.
Position
Below the diagonal: System.Reactive.Linq uses a module listed above it, which is the healthy direction.
System.Reactive.Linq uses System.Threading, so a change to System.Threading can break System.Reactive.Linq, while a change to System.Reactive.Linq can't break System.Threading.
Position
Below the diagonal: System.Reactive.Linq uses a module listed above it, which is the healthy direction.
System.Reactive.Linq uses System.Reactive.Joins, so a change to System.Reactive.Joins can break System.Reactive.Linq, while a change to System.Reactive.Linq can't break System.Reactive.Joins.
Position
Below the diagonal: System.Reactive.Linq uses a module listed above it, which is the healthy direction.
System.Reactive.Linq uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Reactive.Linq, while a change to System.Reactive.Linq can't break System.Reactive.Concurrency.
Position
Below the diagonal: System.Reactive.Linq uses a module listed above it, which is the healthy direction.
System.Reactive.Linq uses System.Reactive.Subjects, so a change to System.Reactive.Subjects can break System.Reactive.Linq, while a change to System.Reactive.Linq can't break System.Reactive.Subjects.
Position
Below the diagonal: System.Reactive.Linq uses a module listed above it, which is the healthy direction.
35→36 System.Reactive.Linq uses System.Reactivepart of a loop✕
Connections
75 pairs of types, where a type in System.Reactive.Linq uses a type in System.Reactive. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
System.Reactive.Linq uses System.Reactive, so a change to System.Reactive can break System.Reactive.Linq, while a change to System.Reactive.Linq can't break System.Reactive.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
System.Reactive uses System.Reactive.Disposables, so a change to System.Reactive.Disposables can break System.Reactive, while a change to System.Reactive can't break System.Reactive.Disposables.
Position
Below the diagonal: System.Reactive uses a module listed above it, which is the healthy direction.
System.Reactive uses System.Threading, so a change to System.Threading can break System.Reactive, while a change to System.Reactive can't break System.Threading.
Position
Below the diagonal: System.Reactive uses a module listed above it, which is the healthy direction.
System.Reactive uses System.Reactive.PlatformServices, so a change to System.Reactive.PlatformServices can break System.Reactive, while a change to System.Reactive can't break System.Reactive.PlatformServices.
Position
Below the diagonal: System.Reactive uses a module listed above it, which is the healthy direction.
System.Reactive uses System.Threading.Tasks, so a change to System.Threading.Tasks can break System.Reactive, while a change to System.Reactive can't break System.Threading.Tasks.
Position
Below the diagonal: System.Reactive uses a module listed above it, which is the healthy direction.
System.Reactive uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Reactive, while a change to System.Reactive can't break System.Reactive.Concurrency.
Position
Below the diagonal: System.Reactive uses a module listed above it, which is the healthy direction.
System.Reactive uses System.Reactive.Subjects, so a change to System.Reactive.Subjects can break System.Reactive, while a change to System.Reactive can't break System.Reactive.Subjects.
Position
Below the diagonal: System.Reactive uses a module listed above it, which is the healthy direction.
System.Reactive uses System.Reactive.Linq, so a change to System.Reactive.Linq can break System.Reactive, while a change to System.Reactive can't break System.Reactive.Linq.
Position
Below the diagonal: System.Reactive uses a module listed above it, which is the healthy direction.
System.Reactive.Linq.ObservableImpl uses System.Reactive.Disposables, so a change to System.Reactive.Disposables can break System.Reactive.Linq.ObservableImpl, while a change to System.Reactive.Linq.ObservableImpl can't break System.Reactive.Disposables.
Position
Below the diagonal: System.Reactive.Linq.ObservableImpl uses a module listed above it, which is the healthy direction.
39 pairs of types, where a type in System.Reactive.Linq.ObservableImpl uses a type in System.Reactive.Concurrency. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
System.Reactive.Linq.ObservableImpl uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Reactive.Linq.ObservableImpl, while a change to System.Reactive.Linq.ObservableImpl can't break System.Reactive.Concurrency.
Position
Below the diagonal: System.Reactive.Linq.ObservableImpl uses a module listed above it, which is the healthy direction.
System.Reactive.Linq.ObservableImpl uses System.Reactive.Subjects, so a change to System.Reactive.Subjects can break System.Reactive.Linq.ObservableImpl, while a change to System.Reactive.Linq.ObservableImpl can't break System.Reactive.Subjects.
Position
Below the diagonal: System.Reactive.Linq.ObservableImpl uses a module listed above it, which is the healthy direction.
System.Reactive.Linq.ObservableImpl uses System.Reactive.Linq, so a change to System.Reactive.Linq can break System.Reactive.Linq.ObservableImpl, while a change to System.Reactive.Linq.ObservableImpl can't break System.Reactive.Linq.
Position
Below the diagonal: System.Reactive.Linq.ObservableImpl uses a module listed above it, which is the healthy direction.
187 pairs of types, where a type in System.Reactive.Linq.ObservableImpl uses a type in System.Reactive. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
System.Reactive.Linq.ObservableImpl uses System.Reactive, so a change to System.Reactive can break System.Reactive.Linq.ObservableImpl, while a change to System.Reactive.Linq.ObservableImpl can't break System.Reactive.
Position
Below the diagonal: System.Reactive.Linq.ObservableImpl uses a module listed above it, which is the healthy direction.
System.Reactive.Threading.Tasks uses System.Reactive.Concurrency, so a change to System.Reactive.Concurrency can break System.Reactive.Threading.Tasks, while a change to System.Reactive.Threading.Tasks can't break System.Reactive.Concurrency.
Position
Below the diagonal: System.Reactive.Threading.Tasks uses a module listed above it, which is the healthy direction.
System.Reactive.Threading.Tasks uses System.Reactive, so a change to System.Reactive can break System.Reactive.Threading.Tasks, while a change to System.Reactive.Threading.Tasks can't break System.Reactive.
Position
Below the diagonal: System.Reactive.Threading.Tasks uses a module listed above it, which is the healthy direction.
System.Reactive.WindowsRuntime uses System.Reactive.Subjects, so a change to System.Reactive.Subjects can break System.Reactive.WindowsRuntime, while a change to System.Reactive.WindowsRuntime can't break System.Reactive.Subjects.
Position
Below the diagonal: System.Reactive.WindowsRuntime uses a module listed above it, which is the healthy direction.
System.Reactive.WindowsRuntime uses System.Reactive, so a change to System.Reactive can break System.Reactive.WindowsRuntime, while a change to System.Reactive.WindowsRuntime can't break System.Reactive.
Position
Below the diagonal: System.Reactive.WindowsRuntime uses a module listed above it, which is the healthy direction.
System.Runtime.CompilerServices uses System, so a change to System can break System.Runtime.CompilerServices, while a change to System.Runtime.CompilerServices can't break System.
Position
Below the diagonal: System.Runtime.CompilerServices uses a module listed above it, which is the healthy direction.
System.Runtime.CompilerServices uses System.Reactive.Subjects, so a change to System.Reactive.Subjects can break System.Runtime.CompilerServices, while a change to System.Runtime.CompilerServices can't break System.Reactive.Subjects.
Position
Below the diagonal: System.Runtime.CompilerServices uses a module listed above it, which is the healthy direction.
System.Runtime.CompilerServices uses System.Reactive, so a change to System.Reactive can break System.Runtime.CompilerServices, while a change to System.Runtime.CompilerServices can't break System.Reactive.
Position
Below the diagonal: System.Runtime.CompilerServices uses a module listed above it, which is the healthy direction.
At a glance — Code Health · 63% · Adequate · gated by D18 ·
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A07:2025 — Authentication Failures
8
High / Critical
A05:2025 — Injection
1
High / Critical
Roadmap
Top priorities: Resolve the 3 Leaked secret finding(s) in Secret Scanning — start with REDACTED (3); Add a CI workflow that builds and runs the test suite on every push/PR; Resolve the 1 Tests excluded from compilation finding(s) in Test Quality — start with LicenseHeaderTest.cs.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 3 Leaked secret finding(s) in Secret Scanning — start with REDACTED (3).
Resolve the 9 FileScopedPragmaDisable finding(s) in Explicit Debt — start with RxFromAsyncPatternTests.cs, RxManySelectTests.cs, FromAsyncPatternTests.cs.
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 131
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 1069
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 649
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 5
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 60 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.
Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.
What we checked — 60 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 1837 of 1849 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Coverage NOT MEASURED: `--collect:"XPlat Code Coverage"` names a data collector that ships in the `coverlet.collector` package, and this repository wires up none — no test project references it and no runsettings declares one. The absence of coverage here is therefore not evidence about the suite or about our analyzer environment: without a collector, `--collect` produces nothing even from a suite that builds and passes. Add a `coverlet.collector` PackageReference to the test project(s) (or commit the Cobertura/OpenCover/lcov report your CI produces) and real coverage will be measured. It is excluded from the score rather than counted as a near-zero defect. You can widen what we reach: add the `coverlet.collector` package to the test projects to enable coverage (or commit the Cobertura/OpenCover/lcov report your CI produces).
D11 Test Reliability — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Test reliability is scored on the 1 tier(s) that produced comparable repeat runs; 1 tier(s) did not, and are excluded from the measurement rather than counted (unit: measured (0 flaky); other: not included — too large to re-run within its budget). This is OUR limitation, not a defect in the repository.
D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: error: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/WindowsXaml/v18.0/Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath)/Microsoft/WindowsXaml/v$(VisualStudioVersion)/Microsoft.Windows.UI.Xaml.CSh….
D17 Explicit Debt — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The C# workspace loaded this repository's projects but reported a load failure, and the dead-code reference search is unreliable over a graph that did not load cleanly, so it was skipped. The other debt markers on this row were read; dead symbols were not, and their absence from the score is not a finding that the code has none. First load diagnostic: Failure: Msbuild failed when processing the file 'Rx.NET/Source/src/System.Reactive.MakeRefAssemblies/System.Reactive.MakeRefAssemblies.csproj' with message: The reference assemblies for UAP,Version=v10.0.18362 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application….
D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
D21 Naming Consistency — evaluation did not complete — Naming Consistency not included (check did not complete) — excluded from the score.
D22 Internal API Consistency — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The loaded project set declares no packable project and no `.Contracts` project, so there is no intentionally-exposed surface for API consistency to be judged over.
D23 Boundary Type-Coupling — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Large codebase (229,354 production LoC in the .NET projects) with no declared bounded contexts — cross-boundary type coupling is unassessed Bounded contexts cannot be inferred from a codebase that is not physically organised by them (D-321), so with none declared there are no boundaries for the coupling pass to measure across. You can widen what we reach: name this codebase's bounded contexts (≥2 module groups, e.g. per subsystem) so cross-boundary type coupling can be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D28 Secrets (history) — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. D28's config-credential rule (WD-SECRET-0002) parses each committed `.json` config as a document and reads credential-named values; `Ix.NET/Integration/Uwp/project.json`, `Rx.NET/Integration/Installation/Uwp/project.json` did not parse (JSON5, a template, several concatenated documents), so a credential bound there is UNMEASURED by that rule. gitleaks still scanned the same files as text.
D30 Dependency Vulnerabilities — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. The solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan. 1 of 2 declared ecosystem(s) (nuget packages.config) WERE scanned and every vulnerability they reported is included in this result; nuget was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that nuget is free of known-vulnerable dependencies.
D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `Ix.NET/Source/ApiCompare/Program.cs`, `Ix.NET/Source/Playground/DemoAttribute.cs`, `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Never.cs`, `Ix.NET/Source/System.Interactive/System/Linq/Operators/Create.cs`, `Ix.NET/Source/System.Interactive/System/Linq/Operators/Share.cs`, … (+49 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
AXB1 Runtime evidence locked — no reproducible boot — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: a native UI project (Rx.NET/Test/Rx/WpfXbapApp45_NuGet/App.xaml). The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. We then boot it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
IC1 Incompleteness & stubs — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 26 further occurrence(s) are not listed individually; the score already reflects all 66.
M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
X18 Disposal-pattern correctness — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 59 further occurrence(s) are not listed individually; the score already reflects all 99.
X2 Cancellation propagation — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 231 further occurrence(s) are not listed individually; the score already reflects all 271.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D11 Test Reliability: Flakiness is inferred from history/markers — we run the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
D25 ADR Conformance: ADR conformance checks only decisions stated in a checkable form (a ruled-out element, package or dependency, an adr-rules block, a declared delivery status): a decision written only as prose is unverifiable, and decisions never written down are not checked.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
39 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was Program.Generate at 73. A further 9 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being ActivePlan.Match at 33 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs (ActivePlan.Match at 33). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 26 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 1 body over 60 down to 60 or less in Cyclomatic Complexity — start with Program.Generate (cyclomatic 73). — Refactoring it lifts Cyclomatic Complexity from 6.3 to about 6.5/10.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 84 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 1 body over 120 down to 120 or less in Cognitive Complexity — start with Program.Generate (cognitive 141). — Refactoring it lifts Cognitive Complexity from 5.7 to about 5.8/10.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes9.5 / 10Stronggated by 23 serious findings✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 10 FileTooLong finding(s) in God Classes — start with Program.cs (2), SelectMany.cs (2), ActivePlan.cs. — One of this dimension's main actionable groups (10 warning-level).
Resolve the 8 TooManyMethods finding(s) in God Classes — start with QueryLanguage.Aggregates.cs, FromEventPattern.cs, SelectMany.cs. — One of this dimension's main actionable groups (8 warning-level).
Resolve the 4 MethodTooLong finding(s) in God Classes — start with Program.cs (2), Delay.cs, GroupByUntil.cs. — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
297 duplicated block group(s) detected. A further 477 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 89 of the 774 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
Edited copy of a member (3 corresponding lines) · ×14AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:930
Edited copy of a member (2 corresponding lines) · ×14AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:380
Members sharing a duplicated core (4 members, 50+ identical tokens) · ×12AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:90
+ 231 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 14 Edited copy of a member (3 corresponding lines) finding(s) in Code Duplication — start with Seq.CombineLatest.cs (8), Seq.ToAsync.cs (3), TimeoutAbsoluteOtherSeq.cs. — One of this dimension's main actionable groups (14 warning-level).
Resolve the 14 Edited copy of a member (2 corresponding lines) finding(s) in Code Duplication — start with Seq.FromAsyncPattern.cs (10), SeqEx.cs (2), Seq.CombineLatest.cs (2). — One of this dimension's main actionable groups (14 warning-level).
Resolve the 12 Members sharing a duplicated core (4 members, 50+ identical tokens) finding(s) in Code Duplication — start with SelectMany.cs (4), GroupBy.cs (2), GroupByUntil.cs (2). — One of this dimension's main actionable groups (12 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling9.9 / 10Stronggated by 2 serious findings✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
Off the main sequence: System.Interactive.Async(net48) (Ix.NET/Source/System.Interactive.Async)Ix.NET/Source/System.Interactive.Async/System.Interactive.Async.csproj:1
Off the main sequence: CommonCodeInPclRx.NET/Integration/BindingRedirects/CommonCodeInPcl/CommonCodeInPcl.csproj:1
What to do
Resolve the 1 Unstable project System.Reactive.Observable.Aliases finding(s) in Coupling — start with System.Reactive.Observable.Aliases.csproj. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Off the main sequence finding(s) in Coupling — start with System.Interactive.Async.csproj. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
What it measures: Whether the code respects its intended layering / architecture rules.
Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.
All 12 mechanizable ADR(s) are enforced: 12 by analyzers, 0 by tests. Cycles found: 0.
✓ On the Gold path — maintain.
Detailed fixes: d7_recommendation.md.
Do you agree with this assessment?
D10 · Test Quality9.9 / 10Adequategated by 1 critical finding✓ Tool-verified
What it measures: Whether the tests truly assert behaviour rather than just running the code.
Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.
0 skipped, 47 zero-assertion, 1 excluded from compilation in 1 file(s), 10 whose failure is swallowed by a catch-all, no mocking-framework packages referenced (hand-written doubles or no mocking) across 10734 tests.
Tests excluded from compilation: Rx.NET/Source/tests/Tests.System.Reactive/Tests/LicenseHeaderTest.csRx.NET/Source/tests/Tests.System.Reactive/Tests/LicenseHeaderTest.cs:29
No assertions: Stopwatch · ×47Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/EventLoopSchedulerTest.cs:298
Test cannot fail: ScheduleAction · ×10Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/DefaultSchedulerTest.cs:35
What to do
Resolve the 1 Tests excluded from compilation finding(s) in Test Quality — start with LicenseHeaderTest.cs. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 47 No assertions finding(s) in Test Quality — start with QbservableTest.cs (33), Program.cs (6), QbservableExTest.cs (2). — One of this dimension's main actionable groups (47 warning-level).
Resolve the 10 Test cannot fail finding(s) in Test Quality — start with ThreadPoolSchedulerTest.cs (4), DefaultSchedulerTest.cs (2), NewThreadSchedulerTest.cs (2). — One of this dimension's main actionable groups (10 warning-level).
Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the tests pass reliably, with no flakiness.
Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.
Only 1 of 2 test tiers measured — the score covers those alone. 0 flaky across 1 measured tier(s). unit: measured (0 flaky); other: not included — too large to re-run within its budget.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 340 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 43 direct `PackageReference`(s), and 200 further package(s) were reached beyond them by closing the graph over nuget.org's own nuspec dependency graph — so a banned licence pulled in only by a dependency's OWN dependencies is inside this verdict. A package whose licence nuget.org could not be asked for is not graded, and version ranges are taken at their lower bound, so this is the closure as that graph states it rather than a restored consumer's exact resolution.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
No source file's living knowledge is concentrated in a single author. Counted over 738 of the 1814 production source files in this repository: 978 are under the ~2,400-byte size floor this dimension measures over, and the remaining 98 have no attributable history left to measure.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
1228 deducted debt markers + unmeasured dead symbols across 229354 LoC in the .NET projects (2.5/KLoC) → score 5.0. Dead code not measured: the solution did not load cleanly, so the reference search was skipped.
NoWarnInCsproj — 6 warning codes suppressed in one element · ×34Ix.NET/Source/FasterLinq/FasterLinq.csproj:8
+ 11 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 34 NoWarnInCsproj finding(s) in Explicit Debt — start with Directory.Build.props (8), System.Linq.Async.Tests.csproj (4), Directory.build.props (4). — One of this dimension's main actionable groups (34 issue-level).
Resolve the 10 EmptyCatchBlock finding(s) in Explicit Debt — start with ReactiveAssert.cs (2), ColdAsyncObservable.cs, HotAsyncObservable.cs. — One of this dimension's main actionable groups (10 issue-level).
Resolve the 9 FileScopedPragmaDisable finding(s) in Explicit Debt — start with RxFromAsyncPatternTests.cs, RxManySelectTests.cs, FromAsyncPatternTests.cs. — One of this dimension's main actionable groups (9 issue-level).
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D18 · Solution Shape3.0 / 10Weak✓ Tool-verified
What it measures: Whether the solution is laid out in a sensible, conventional structure.
Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.
186 projects, 9408 source files, 458449 hand-written lines of code (229354 production / 229095 test — the split is derived per file: test is what its project, its own path, or a compile-guarded region marks as test, and a file carrying no test signal counts as production), plus 71012 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 146 inter-project edges (build failed). Measured across 11 solutions loaded as one workspace: `AsyncRx.NET/AsyncRx.NET.slnx`, `Rx.NET/Source/System.Reactive.slnx`, `Ix.NET/Source/Ix.NET.sln`, `Rx.NET/Samples/HOL/CS/RxHOL.sln`, `Rx.NET/Samples/Portable/Portable.sln`, `Rx.NET/Samples/RxRemoteMouseMoves/RxRemoteMouseMoves.sln`, `Rx.NET/Integration/BindingRedirects/BindingRedirects.sln`, `Rx.NET/Samples/EventCorrelationSample/EventCorrelationSample.sln`, `Rx.NET/Samples/HistoricalScheduling/HistoricalScheduling.sln`, `Rx.NET/Samples/RxKinect/RxKinect.sln`, `Rx.NET/tools/HomoIcon/HomoIcon.slnx`.
Build failed
Thin analysable surface across projects: Android · ×22Ix.NET/Integration/Android/Android.csproj
What to do
Resolve the 22 Thin analysable surface across projects finding(s) in Solution Shape — start with Android.csproj (2), Pcl259.csproj (2), Uwp.csproj (2). — One of this dimension's main actionable groups (22 recommendation-level).
Resolve the 1 Build failed finding(s) in Solution Shape. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d18_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
1 of 2 documentation facets pass in full; short on: F2 example. 40 document(s) read across 55 unit(s).
Documentation: no build, run or usage exampleRx.NET/tools/HomoIcon/README.md:1
What to do
Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D20 · ADR Quality9.8 / 10Exemplary✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.
1 of 13 evaluated ADRs have a defect readable from the log itself (a missing or empty section, no title, a single option, consequences with no cost, no status, a missing enforcement field, a status the log contradicts, a dangling link, an unlinked second decision on one question, a date that is no calendar day). How well each record argues its case is not measured.
ADR declares no statusRx.NET/Documentation/adr/0009-nbgv-usage.md:1detected by adr-integrity
✓ On the Gold path — maintain.
Detailed fixes: d20_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).
Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.
doc comments repeat the names · ×7Rx.NET/Source/src/Microsoft.Reactive.Testing/Recorded.cs:75
What to do
Resolve the 82 redundant comment finding(s) in Comment Value — start with AssemblyInfo.cs (78), Program.cs (2), AsyncRxTarget.cs. — One of this dimension's main actionable groups (82 recommendation-level).
Detailed fixes: d24_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the code actually follows the decisions recorded in the project's ADRs.
Method: Each binding ADR read for checkable forms: a backticked element its Decision section rules out, a ruled-out package the manifests declare, a forbidden module dependency, an opt-in adr-rules block, and a declared delivery status the code does not yet carry. A prose decision with no checkable form is unverifiable, neither a finding nor a pass. Deterministic, no model. Advisory.
0 of 1 checkable records are broken by the code or by their own declared delivery (1 of 4 binding records state a rule in checkable form or declare their delivery; prose decisions are unverifiable).
3 of 128 projects flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion · ×3Rx.NET/Source/src/System.Reactive/System.Reactive.csproj:1
✓ On the Gold path — maintain.
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D27 · Navigability1.4 / 10Critical✓ Tool-verified
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
59 % of calls cross a namespace and 10 % go through an interface, but 19 % of collaborators are co-located — so following a call takes several hops. Baseline: large — vertical-slice locality expected.
Resolve the 8 Pass-through layer finding(s) in Navigability — start with RedoAsyncSink.cs, Scheduler.Async.cs, SchedulerQueue.cs. — One of this dimension's main actionable groups (8 recommendation-level).
Resolve the 1 Scattered collaborators finding(s) in Navigability. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d27_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
4 finding(s): 0 critical, 4 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 4 High secret finding(s) in Secrets (history) — start with REDACTED (3), REDACTED. — One of this dimension's main actionable groups (4 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. semgrep hit a parse error in 826 file(s) — `AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs` (lines 79–80, line 87, line 113), `AsyncRx.NET/Microsoft.Reactive.Testing.Async/HotAsyncObservable.cs` (line 87, line 89), `AsyncRx.NET/Microsoft.Reactive.Testing.Async/MockAsyncObserver.cs` (line 9), `AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs` (lines 812–813, line 818, line 829, …), `AsyncRx.NET/Tests.System.Reactive.Async/AsyncRxMySubject.cs` (line 16), … (+821 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. In 763 of those file(s) — `AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs`, `AsyncRx.NET/Microsoft.Reactive.Testing.Async/HotAsyncObservable.cs`, `AsyncRx.NET/Microsoft.Reactive.Testing.Async/MockAsyncObserver.cs`, `AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs`, `AsyncRx.NET/Tests.System.Reactive.Async/AsyncRxMySubject.cs`, … (+758 more) — the break is a C# primary constructor, which semgrep's grammar cannot parse and which hides the type from every rule scoped to it; those files were re-scanned from a shadow copy with the constructor's parameter list blanked (line and column preserving), which restores the type to the rules, and 0 additional row(s) came from that pass. Only the header's own parameter list is unread in them. In 135 of those file(s) — `AsyncRx.NET/Tests.System.Reactive.Async/Tests/AsyncRxAggregateTests.cs`, `AsyncRx.NET/Tests.System.Reactive.Async/Tests/AsyncRxAllTests.cs`, `AsyncRx.NET/Tests.System.Reactive.Async/Tests/AsyncRxAmbTests.cs`, `AsyncRx.NET/Tests.System.Reactive.Async/Tests/AsyncRxAndTests.cs`, `AsyncRx.NET/Tests.System.Reactive.Async/Tests/AsyncRxAnyTests.cs`, … (+130 more) — the break is at a TYPE DECLARATION (a C# primary constructor semgrep's grammar cannot parse), so the loss is wider than the named lines: rules scoped to that type see no type to scope to and are blind over its whole body, while rules matching statements keep working there. Absence of a type-scoped finding in those types is not evidence of anything.
REDACTED
What to do
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.
No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (nuget packages.config). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (nuget packages.config), and the findings above are real and complete for them. nuget was not scanned (nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan), so this is not the whole dependency surface and the result is reported at reduced confidence.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
395 of 836 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is Rx.NET/Source/src/System.Reactive/Linq/Observable.Async.cs. Counted over 836 of the 1814 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Resolve the 337 Orphaned file finding(s) in Knowledge Freshness — start with Max.cs (4), Min.cs (4), DistinctUntilChanged.cs (4). — One of this dimension's main actionable groups (337 recommendation-level).
Resolve the 58 Orphaned knowledge finding(s) in Knowledge Freshness — start with Program.cs (3), GroupBy.cs (2), SelectMany.cs (2). — One of this dimension's main actionable groups (58 issue-level).
Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 1 Change coupling finding(s) in Change Coupling — start with IQueryLanguage.cs. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 62 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.
Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.
`PriorityQueue` is not registered, but `LocalScheduler` creates it and keeps it in the static `LongTerm`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_items, _size, _count; e.g. `_items` at line 98). — Rx.NET/Source/src/System.Reactive/Internal/PriorityQueue.cs:9
`CompositeEnumerator` is not registered, but `CompositeDisposable` creates it and keeps it in the static `EmptyEnumerator`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_index; e.g. `_index` at line 555). — Rx.NET/Source/src/System.Reactive/Disposables/CompositeDisposable.cs:524
`ObservableQueryProvider` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_staticAsQueryable; e.g. `_staticAsQueryable` at line 80). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Rx.NET/Source/src/System.Reactive/ObservableQuery.cs:19
`PlatformEnlightenmentProvider` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_current; e.g. `_current` at line 58). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Rx.NET/Source/src/System.Reactive/Internal/PlatformEnlightenmentProvider.cs:34
`Qbservable` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_provider; e.g. `s_provider` at line 27). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Rx.NET/Source/src/System.Reactive/Linq/Observable.Queryable.cs:14
`CurrentThreadScheduler` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_threadLocalQueue, _clock, _running; e.g. `_threadLocalQueue` at line 39). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Rx.NET/Source/src/System.Reactive/Concurrency/CurrentThreadScheduler.cs:13
`TypeErasedEqualityComparer` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (equalsMethod; e.g. `equalsMethod` at line 297). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/AssertEqualityComparer_reflection.cs:257
`AsyncEnumerableRewriter` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_methods; e.g. `_methods` at line 399). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs:16
What to do
Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
A `static` field is one slot for the whole process, however its type is created: back it with a thread-safe type (ConcurrentDictionary, Interlocked), take a lock around every write, or move it into a registered singleton that does.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
The namespaces System.Collections.Generic ↔ System.Linq ↔ System.Linq.Internal depend on each other. The lightest dependency in the cycle is System.Collections.Generic → System.Linq (System.Collections.Generic.AnonymousAsyncIterator → System.Linq.AsyncIterator, 3 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerator.cs:5
The namespaces System.Reactive ↔ System.Reactive.Concurrency ↔ System.Reactive.Disposables ↔ System.Reactive.Joins ↔ System.Reactive.Linq ↔ System.Reactive.PlatformServices ↔ System.Reactive.Subjects ↔ System.Threading.Tasks depend on each other. The lightest dependency in the cycle is System.Reactive → System.Reactive.PlatformServices (System.Reactive.ExceptionHelpers → System.Reactive.PlatformServices.IExceptionServices, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.cs:7
What to do
Break namespace cycles inside a project by moving the shared type to a namespace both sides can use, or by inverting the back edge behind an interface.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`IRxTarget` declares 54 members: `CreateTestScheduler`, `DisableOptimizations`, `ImmediateScheduler`, `DefaultScheduler`, `ThreadPoolScheduler`, `ToListAsync`, `ToEvent`, `ToEventPattern`, `ForEachAsync`, `ForEachAsync`, `GetAwaiter`, `RunSynchronously`, `GetAwaiter`, `RunAsync`, `RunAsync`, `CreateSubject`, `CreateSubject`, `CreateAsyncSubject`, `SubscribeAsync`, `CreateRefCountTestConnectable`, `CreateScheduler`, `CreateMySubject`, `CreateRefCountTestConnectableIgnoringConnect`, `CreateReplaySubject`, `CreateReplaySubject`, `CreateReplaySubject`, `CreateReplaySubject`, `CreateReplaySubject`, `CreateBehaviorSubject`, `CreateHotObservable`, `CreateColdObservable`, `Start`, `ScheduledAt`, `Clock`, `ScheduleAbsolute`, `CreateObserver`, `CreateObserver`, `CreateObserver`, `SubscribeAsync`, `SubscribeAsync`, and 14 more. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. Those 54 declarations carry 36 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 36 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — AsyncRx.NET/Tests.System.Reactive.Shared/Harness/IRxTarget.cs:28
`ISeqVisitor` declares 573 members: `Aggregate`, `AggregateSeed`, `AggregateSeedResult`, `All`, `Amb`, `AmbParams`, `AmbEnumerable`, `And2`, `And3`, `And4`, `And5`, `And6`, `And7`, `And8`, `And9`, `And10`, `And11`, `And12`, `And13`, `And14`, `And15`, `And16`, `Any`, `AnyPredicate`, `Append`, `AppendScheduler`, `AsObservable`, `AutoConnect`, `AverageInt32`, `AverageInt32Selector`, `AverageInt64`, `AverageInt64Selector`, `AverageSingle`, `AverageSingleSelector`, `AverageDouble`, `AverageDoubleSelector`, `AverageDecimal`, `AverageDecimalSelector`, `AverageNullableInt32`, `AverageNullableInt32Selector`, and 533 more. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Aggregate/ISeqVisitor.Aggregate.cs:7
`DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×21) — Rx.NET/Samples/HOL/CS/Excercise7/Step02/Service References/DictionarySuggestService/Reference.cs:14, Rx.NET/Samples/HOL/CS/Excercise7/Step03/Service References/DictionarySuggestService/Reference.cs:14, Rx.NET/Samples/HOL/CS/Excercise7/Step04/Service References/DictionarySuggestService/Reference.cs:14, …
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface. (×13) — AsyncRx.NET/Tests.System.Reactive.Shared/Harness/SchedulerDouble.cs:73, AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ContainsTests.cs:277, AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ContainsTests.cs:282, …
What to do
Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords: members that only throw a "not implemented" exception, methods that take inputs and return a constant, async methods that never await, dead `if (false)` / `#if false` branches, and skeleton types most of whose members are holes. A real, objective slice of technical debt.
Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.
`Main` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — AsyncRx.NET/Playground/Program.cs:22
`GetDisposableAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — AsyncRx.NET/System.Reactive.Async/Disposables/RefCountAsyncDisposable.cs:24
`GetHashCode` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ThrowComparer.cs:18
`MovedTypeDetails` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Rx.NET/Source/src/System.Reactive.Analyzers/Analyzers/UiFrameworkPackages/UiFrameworkSpecificTypes.cs:56
Control only reaches here when `cancel.IsDisposed` is false, because the guard on line 89 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test. — Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:111
A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). (×32) — AsyncRx.NET/Playground/Program.cs:24, AsyncRx.NET/Playground/Program.cs:25, AsyncRx.NET/Playground/Program.cs:26, …
`Reset`'s body only throws NotSupportedException — sometimes a deliberate contract, often an unfinished stub. Confirm it's intentional. (×3) — Ix.NET/Source/FasterLinq/Program.cs:259, Ix.NET/Source/System.Interactive/System/Linq/Operators/Share.cs:143, Ix.NET/Source/System.Interactive/System/Linq/Yielder.cs:75
What to do
Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Describe the projects a newcomer cannot place from the root README: 110 of 112 have no README of their own, in their folder or in their family's project (`AsyncRx.NET/ApiCompare`, `AsyncRx.NET/Playground`, `AsyncRx.NET/Microsoft.Reactive.Testing.Async`, `AsyncRx.NET/System.Reactive.Async`, `Rx.NET/Source/src/System.Reactive.Analyzers` and 105 more).
Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.
Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.
Rx.NET/Test/Gauntlet/Checks/PlugIns/Readme.md names .NET 5, but the projects target .NET 6, 8, 9, 10. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — Rx.NET/Test/Gauntlet/Checks/PlugIns/Readme.md:74
What to do
Reconcile the README with reality: Rx.NET/Test/Gauntlet/Checks/PlugIns/Readme.md names .NET 5, but the projects target .NET 6, 8, 9, 10.
Do you agree with this assessment?
P1 · CI/CD gates0.0 / 10Critical✓ Tool-verified
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
Add a CI workflow that builds and runs the test suite on every push/PR.
Readiness · Readiness — Whether behaviour is captured as executable Gherkin specifications (a plus for shared understanding) — only assessed when a BDD framework is present.
Method: Filesystem scan: BDD framework presence (SpecFlow, Gherkin files) when a project references a BDD tool. Exhaustive, deterministic.
Do you agree with this assessment?
P2 · Observability6.0 / 10Adequate✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
Only 2/3 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 3, 1 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.
What to do
Extend structured logging across the projects you operate, and give the library ones a diagnostics seam instead — an `EventSource`/`ActivitySource` the host can subscribe to, or an optional logger on your options object — rather than taking a logging dependency on your consumers' behalf.
For more than a log file, an `ActivitySource`/`EventSource` the user can switch on gives you a structured trace to attach to a bug report. A health-check endpoint does not apply here: nothing orchestrates or load-balances a binary the user launches.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
What to do
The .NET analyzers are running but not blocking — tighten them (set <AnalysisMode>All</AnalysisMode>, or treat analyzer warnings as errors on CI) so a security/quality regression fails the build rather than scrolling past as a warning.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
33 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
`.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×15) — AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs:564, AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:76, AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:123, …
`adapter.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — AsyncRx.NET/System.Reactive.Async/NotificationAsyncExtensions.cs:31
`e.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×2) — AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:178, Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:427
`.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×6) — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:727, AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:281, AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:289, …
`t.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:437
`_evt.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×2) — Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs:293, Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs:305
`_dispatcherEvent.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). — Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:109
`consumer.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×3) — Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Blocking.cs:78, Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Blocking.cs:166, Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Blocking.cs:243
`sink.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×2) — Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Blocking.cs:101, Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Blocking.cs:113
What to do
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult().
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process. (×12) — AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:72, AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:123, AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:45, …
Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout. (×16) — AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:430, AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1273, AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:141, …
`async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained. — AsyncRx.NET/System.Reactive.Async/Runtime/CompilerServices/AsyncObservableMethodBuilder.cs:259
`Thread.Sleep` parks the thread for the whole delay: no other work runs on it, and under load the pool must grow to make up for it. `await Task.Delay(…)` suspends only this method. (×2) — Rx.NET/Samples/EventCorrelationSample/EventCorrelationSample/Program.cs:123, Rx.NET/Samples/EventCorrelationSample/EventCorrelationSample/Program.cs:172
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
`cancellation` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 34). Every use of it in `SubscribeAsyncCore` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cancellation = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/System.Reactive.Async/Linq/CallbackAsyncObservable.cs:34
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 410). Every use of it in `Merge` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:410
`cancel` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 1214). Every use of it in `SelectMany` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cancel = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1214
`queueLock` is a `AsyncQueueLock`, which implements `IDisposable`, and it is created here (line 774). Every use of it in `Window` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var queueLock = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:774
`e` is a `ManualResetEventSlim`, which implements `IDisposable`, and it is created here (line 174). Every use of it in `GetResult` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:174
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 524). Every use of it in `CreateAsync_Task_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:524
`stopped` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 567). Every use of it in `CreateAsync_IDisposable_Simple` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var stopped = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:567
`stopped` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 596). Every use of it in `CreateAsync_IDisposable_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var stopped = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:596
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 603). Every use of it in `CreateAsync_IDisposable_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:603
`stopped` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 638). Every use of it in `CreateAsync_Action_Simple` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var stopped = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:638
`stopped` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 663). Every use of it in `CreateAsync_Action_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var stopped = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:663
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 666). Every use of it in `CreateAsync_Action_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:666
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 44). Every use of it in `DeferAsync_WithCancel_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DeferAsyncTests.cs:44
`next` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 1577). Every use of it in `Delay_TimeSpan_Real_Error2_Impl` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var next = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DelayTests.cs:1577
`next` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 1617). Every use of it in `Delay_TimeSpan_Real_Error3_Impl` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var next = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DelayTests.cs:1617
`ack` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 1618). Every use of it in `Delay_TimeSpan_Real_Error3_Impl` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var ack = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DelayTests.cs:1618
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 42). Every use of it in `ForEachAsync_Never` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:42
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 76). Every use of it in `ForEachAsync_Completed` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:76
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 112). Every use of it in `ForEachAsync_Error` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:112
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 149). Every use of it in `ForEachAsync_Throw` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:149
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 191). Every use of it in `ForEachAsync_CancelDuring` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:191
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 224). Every use of it in `ForEachAsync_CancelBefore` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:224
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 255). Every use of it in `ForEachAsync_CancelAfter` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:255
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 300). Every use of it in `ForEachAsync_Default_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:300
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 362). Every use of it in `ForEachAsync_Index_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:362
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 130). Every use of it in `FromAsync_FuncWithCancel_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncTests.cs:130
`f` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 131). Every use of it in `FromAsync_FuncWithCancel_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var f = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncTests.cs:131
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 166). Every use of it in `FromAsync_Func_Scheduler1` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncTests.cs:166
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 191). Every use of it in `FromAsync_Func_Scheduler2` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncTests.cs:191
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 310). Every use of it in `FromAsync_ActionWithCancel_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncTests.cs:310
`f` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 311). Every use of it in `FromAsync_ActionWithCancel_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var f = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncTests.cs:311
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 349). Every use of it in `FromAsync_Action_Scheduler1` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncTests.cs:349
`e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 371). Every use of it in `FromAsync_Action_Scheduler2` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncTests.cs:371
`hundred` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 176). Every use of it in `Generate_LongRunning2` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var hundred = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/GenerateTests.cs:176
`_enumerator` is never created by `MockEnumerator` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 70). Its declared type `IEnumerator` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/MockEnumerable.cs:70
`resume` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 333). Every use of it in `ObserveOn_RealScheduler_HoldUpDuringDispatchAndFail` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var resume = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ObserveOnTests.cs:333
`hundred` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 167). Every use of it in `Range_LongRunning2` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var hundred = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/RangeTests.cs:167
`hundred` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 187). Every use of it in `Repeat_Count_LongRunning2` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var hundred = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/RepeatTests.cs:187
`hundred` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 208). Every use of it in `Repeat_Inf_LongRunning` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var hundred = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/RepeatTests.cs:208
`cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 55). Every use of it in `RunAsync_Cancelled` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw. — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/RunAsyncTests.cs:55
What to do
Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
Other · Code Health — Whether async methods accept a CancellationToken so work can be cancelled (adoption curve).
Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.
Only 530/800 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
No CancellationToken parameter — this work can't be stopped early once started. (×36) — AsyncRx.NET/Playground/Program.cs:50, AsyncRx.NET/Playground/Program.cs:55, AsyncRx.NET/Playground/Program.cs:60, …
No CancellationToken parameter — the body observes an ambient token instead (a field or a context object), so the work does stop on cancellation, but a caller cannot cancel this call independently of the owner that created that token. (×3) — AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs:832, AsyncRx.NET/System.Reactive.Async/Internal/FastImmediateAsyncObserver.cs:26, AsyncRx.NET/System.Reactive.Async/Internal/ScheduledAsyncObserver.cs:30
What to do
Thread a CancellationToken through async methods so work stops promptly on cancellation.
Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `ArgumentNullException` tells the caller a parameter was null when it provably was not.
Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `foreach` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is enumerating invalidates the enumerator it is holding, so the next `MoveNext` throws `InvalidOperationException` and the remaining items are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×8) — AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:67, AsyncRx.NET/Microsoft.Reactive.Testing.Async/HotAsyncObservable.cs:53, AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1265, …
`catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. — Ix.NET/Source/System.Interactive/System/Linq/Operators/OnErrorResumeNext.cs:74
Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
24/27 NRT-eligible project(s) enable <Nullable>enable</Nullable> (projects targeting a pre-C#-8 framework are excluded — NRTs aren't available there). NRTs catch a whole class of null-deref bugs at compile time.
~1.5 `!` suppressions per 1k syntax nodes — 1015 suppression(s) across the 672585 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a `!` can suppress anything in (a `!` under `#nullable disable` is inert and is not counted, and its file's nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.
What to do
Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 3 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X10 Duplicated predicate — 15 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 53 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — no DI registrations detected
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
D12 Dependency Hygiene — Dependency hygiene not measured
D21 Naming Consistency — Naming Consistency not included (check did not complete)
D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
D23 Boundary Type-Coupling — Cross-context type coupling could not be assessed — this codebase's bounded contexts are neither declared nor inferable.
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — 54 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D8 Code Coverage — Coverage not measured — no coverage collector is wired up
DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
P12 CI test-gate honesty — no CI workflow found
P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
P8 Schema migrations — no EF Core usage detected
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
S1 Web-Security Posture — No web surface detected in the analyzed source — no HTTP API or web-UI project (no controllers/minimal-API endpoints, no Razor/Blazor views) and no web middleware (HTTPS redirection, HSTS, security headers, cookies). Transport security, security headers, secure cookies, CSRF/input-validation and middleware-order controls are therefore N/A here — this is a library/CLI/worker, not a web app. Crypto hygiene was still checked and found nothing to flag. If this codebase becomes web-facing, the dimension reactivates automatically.
X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X24 Document value interpolated into markup unescaped — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X28 Index access outside its own emptiness guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X30 Support guard that admits what it rejects — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X32 Type resolved by simple name across every loaded assembly — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's C# was read, and every log call in it goes through a logger that takes one finished message — its own wrapper, log4net, Console or Debug — so an interpolated message there loses nothing the API could have kept. Calls through Microsoft.Extensions.Logging, Serilog, NLog or ZLogger, or any logger with a message-template overload, would be judged.
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.Async.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.Aggregates.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.Time.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.StandardSequenceOperators.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.Events.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/IQueryLanguage.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.Binding.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.Single.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Ix.NET/Source/FasterLinq/Program.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Linq/Observable.Creation.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/tools/HomoIcon/Program.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive.Observable.Aliases/Observable.Aliases.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Services.Emulation.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge Rx.NET/Source/src/System.Reactive/Subjects/ReplaySubject.cs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
NoWarnInCsproj — 6 warning codes suppressed in one element Ix.NET/Source/FasterLinq/FasterLinq.csproj:8— A single <NoWarn> suppresses 6 warning codes (IDE0007;IDE0034;IDE0040;IDE0063;IDE0090;IDE1006) in one stroke — one team-wide decision, not 6 independent debts. Review the set centrally rather than code-by-code; each code you can re-enable is one less blanket suppression. (Every code still counts toward the score and metrics.)
NoWarnInCsproj — 27 warning codes suppressed in one element Rx.NET/Source/src/Microsoft.Reactive.Testing/Microsoft.Reactive.Testing.csproj:12— A single <NoWarn> suppresses 27 warning codes (IDE0054;IDE0066;CA1305;CA1307;CA1032;CA1064;CA1704;CA1822;CA1812;CA1820;CA1823;CA1825;CA1845;CA2249;IDE0016;IDE0018;IDE0019;IDE0020;IDE0028;IDE0031;IDE0039;IDE0044;IDE0059;IDE0074;IDE0090;IDE0270;IDE0300) in one stroke — one team-wide decision, not 27 independent debts. Review the set centrally rather than code-by-code; each code you can re-enable is one less blanket suppression. (Every code still counts toward the score and metrics.)
NoWarnInCsproj — 9 warning codes suppressed in one element Rx.NET/Source/tests/Tests.System.Reactive.Uwp.DeviceRunner/Tests.System.Reactive.Uwp.DeviceRunner.csproj:27— A single <NoWarn> suppresses 9 warning codes (CA1001;CA2213;CA1510;CA1513;CS0618;IDE0056;IDE0057;IDE0290;IDE0305) in one stroke — one team-wide decision, not 9 independent debts. Review the set centrally rather than code-by-code; each code you can re-enable is one less blanket suppression. (Every code still counts toward the score and metrics.)
NoWarnInCsproj — 9 warning codes suppressed in one element Rx.NET/Source/tests/Tests.System.Reactive.Uwp.DeviceRunner/Tests.System.Reactive.Uwp.DeviceRunner.csproj:38— A single <NoWarn> suppresses 9 warning codes (CA1001;CA2213;CA1510;CA1513;CS0618;IDE0056;IDE0057;IDE0290;IDE0305) in one stroke — one team-wide decision, not 9 independent debts. Review the set centrally rather than code-by-code; each code you can re-enable is one less blanket suppression. (Every code still counts toward the score and metrics.)
NoWarnInCsproj — 34 warning codes suppressed in one element Rx.NET/Source/tests/Tests.System.Reactive.Uwp.DeviceRunner/Tests.System.Reactive.Uwp.DeviceRunner.csproj:93— A single <NoWarn> suppresses 34 warning codes (IDE0003;IDE0016;IDE0017;IDE0018;IDE0019;IDE0020;IDE0031;IDE0032;IDE0034;IDE0037;IDE0038;IDE0039;IDE0040;IDE0044;IDE0051;IDE0052;IDE0056;IDE0057;IDE0059;IDE0060;IDE0062;IDE0063;IDE0071;IDE0074;IDE0075;IDE0076;IDE0077;IDE0079;IDE0083;IDE0090;IDE0180;IDE1006;IDE1056;MSTEST0049) in one stroke — one team-wide decision, not 34 independent debts. Review the set centrally rather than code-by-code; each code you can re-enable is one less blanket suppression. (Every code still counts toward the score and metrics.)
NoWarnInCsproj Ix.NET/Source/System.Interactive.Async.Providers.Tests/System.Interactive.Async.Providers.Tests.csproj:5— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Interactive.Async.Tests/System.Interactive.Async.Tests.csproj:11— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Interactive.Tests/System.Interactive.Tests.csproj:10— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Linq.Async.Queryable.Tests/System.Linq.Async.Queryable.Tests.csproj:5— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Linq.Async.Tests/System.Linq.Async.Tests.csproj:11— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Rx.NET/Integration/LinuxTests/LinuxTests.csproj:4— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Rx.NET/Integration/WindowsDesktopTests/WindowsDesktopTests.csproj:4— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Rx.NET/Source/tests/Tests.System.Reactive/Tests.System.Reactive.csproj:9— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Rx.NET/Source/tests/Tests.System.Reactive.ApiApprovals/Tests.System.Reactive.ApiApprovals.csproj:5— CS0618 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Interactive.Async.Tests/System.Interactive.Async.Tests.csproj:11— CS8603 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Interactive.Tests/System.Interactive.Tests.csproj:10— CS8603 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Linq.Async.Tests/System.Linq.Async.Tests.csproj:11— CS8603 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Interactive.Async.Tests/System.Interactive.Async.Tests.csproj:11— CS8625 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Interactive.Tests/System.Interactive.Tests.csproj:10— CS8625 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Linq.Async.Tests/System.Linq.Async.Tests.csproj:11— CS8625 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/System.Linq.Async.Tests/System.Linq.Async.Tests.csproj:11— CA1822 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Rx.NET/Source/benchmarks/Benchmarks.System.Reactive/Benchmarks.System.Reactive.csproj:19— IDE1006 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj AsyncRx.NET/Directory.Build.props:13— 1701 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Ix.NET/Source/Directory.Build.props:17— 1701 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Rx.NET/Source/Directory.build.props:12— 1701 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
EmptyCatchBlock AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:67— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock AsyncRx.NET/Microsoft.Reactive.Testing.Async/HotAsyncObservable.cs:53— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1265— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/OnErrorResumeNext.cs:130— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Rx.NET/Samples/Portable/SilverlightApplication/App.xaml.cs:63— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Rx.NET/Source/src/Microsoft.Reactive.Testing/ReactiveAssert.cs:219— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Rx.NET/Source/src/Microsoft.Reactive.Testing/ReactiveAssert.cs:253— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Rx.NET/Source/src/System.Reactive/Concurrency/CatchScheduler.cs:89— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Rx.NET/Source/src/System.Reactive/Linq/Observable/ResetExceptionDispatchState.cs:44— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Rx.NET/tools/HomoIcon/Program.cs:113— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
FileScopedPragmaDisable AsyncRx.NET/Tests.System.Reactive.Shared.Rx/Tests/RxFromAsyncPatternTests.cs:8— #pragma warning disable CS0618 — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
FileScopedPragmaDisable AsyncRx.NET/Tests.System.Reactive.Shared.Rx/Tests/RxManySelectTests.cs:13— #pragma warning disable IDE0039 // Use local function — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
FileScopedPragmaDisable AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncPatternTests.cs:8— #pragma warning disable IDE0039 // Use local function — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
FileScopedPragmaDisable Rx.NET/Source/src/System.Reactive/Linq/ObservableEx.cs:17— #pragma warning disable IDE1006 // Naming Styles: 3rd party code is known to reflect for this specific field name — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
FileScopedPragmaDisable Rx.NET/Source/src/System.Reactive/Linq/Observable_.cs:12— #pragma warning disable IDE1006 // Naming Styles: 3rd party code is known to reflect for this specific field name — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
FileScopedPragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/ControlSchedulerTest.cs:9— #pragma warning disable IDE0034 // (Simplify 'default'.) Want to be explicit about overload being tested. — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
FileScopedPragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/DispatcherSchedulerTest.cs:8— #pragma warning disable IDE0034 // (Simplify 'default'.) Want to be explicit about overload being tested. — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
FileScopedPragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/CatchTest.cs:18— #pragma warning disable IDE0300 // Simplify collection initialization. We want to be clear about what kinds of collections are in use in these tests. — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
FileScopedPragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/SubscribeTest.cs:5— #pragma warning disable IDE0350 // Use implicitly typed lambda - we want to be explicit here for clarity — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
AnalyzerSeverityNone .editorconfig:262— IDE0290 — this rule is switched off for every file the section matches, in every project under this directory, and the only record that it was ever switched off is this line: nothing at the sites it would have reported says so, so a reader of that code has no reason to look here, and code added years from now inherits the decision silently. Fix what the rule reports and delete the entry, or — where some sites really are legitimate — leave the rule on and suppress it at those sites with their reasons, so it keeps protecting the rest of the tree. If the rule is genuinely unwanted here, say why — on this line after the entry, or in the comment run directly above it: a comment that only repeats the rule's own title is read as no explanation at all and leaves this row in place.
AnalyzerSeverityNone Rx.NET/Test/Gauntlet/.editorconfig:4— IDE0290 — this rule is switched off for every file the section matches, in every project under this directory, and the only record that it was ever switched off is this line: nothing at the sites it would have reported says so, so a reader of that code has no reason to look here, and code added years from now inherits the decision silently. Fix what the rule reports and delete the entry, or — where some sites really are legitimate — leave the rule on and suppress it at those sites with their reasons, so it keeps protecting the rest of the tree. If the rule is genuinely unwanted here, say why — on this line after the entry, or in the comment run directly above it: a comment that only repeats the rule's own title is read as no explanation at all and leaves this row in place.
AnalyzerSeverityNone .editorconfig:267— IDE0090 — this rule is switched off for every file the section matches, in every project under this directory, and the only record that it was ever switched off is this line: nothing at the sites it would have reported says so, so a reader of that code has no reason to look here, and code added years from now inherits the decision silently. Fix what the rule reports and delete the entry, or — where some sites really are legitimate — leave the rule on and suppress it at those sites with their reasons, so it keeps protecting the rest of the tree. If the rule is genuinely unwanted here, say why — on this line after the entry, or in the comment run directly above it: a comment that only repeats the rule's own title is read as no explanation at all and leaves this row in place.
AnalyzerSeverityNone Rx.NET/Test/Gauntlet/.editorconfig:10— IDE0028 — this rule is switched off for every file the section matches, in every project under this directory, and the only record that it was ever switched off is this line: nothing at the sites it would have reported says so, so a reader of that code has no reason to look here, and code added years from now inherits the decision silently. Fix what the rule reports and delete the entry, or — where some sites really are legitimate — leave the rule on and suppress it at those sites with their reasons, so it keeps protecting the rest of the tree. If the rule is genuinely unwanted here, say why — on this line after the entry, or in the comment run directly above it: a comment that only repeats the rule's own title is read as no explanation at all and leaves this row in place.
AnalyzerSeverityNone Rx.NET/Test/Gauntlet/.editorconfig:11— IDE0305 — this rule is switched off for every file the section matches, in every project under this directory, and the only record that it was ever switched off is this line: nothing at the sites it would have reported says so, so a reader of that code has no reason to look here, and code added years from now inherits the decision silently. Fix what the rule reports and delete the entry, or — where some sites really are legitimate — leave the rule on and suppress it at those sites with their reasons, so it keeps protecting the rest of the tree. If the rule is genuinely unwanted here, say why — on this line after the entry, or in the comment run directly above it: a comment that only repeats the rule's own title is read as no explanation at all and leaves this row in place.
AnalyzerSeverityNone Rx.NET/Test/Gauntlet/.editorconfig:12— IDE0306 — this rule is switched off for every file the section matches, in every project under this directory, and the only record that it was ever switched off is this line: nothing at the sites it would have reported says so, so a reader of that code has no reason to look here, and code added years from now inherits the decision silently. Fix what the rule reports and delete the entry, or — where some sites really are legitimate — leave the rule on and suppress it at those sites with their reasons, so it keeps protecting the rest of the tree. If the rule is genuinely unwanted here, say why — on this line after the entry, or in the comment run directly above it: a comment that only repeats the rule's own title is read as no explanation at all and leaves this row in place.
Namespace dependency cycle Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerator.cs:5— The namespaces System.Collections.Generic ↔ System.Linq ↔ System.Linq.Internal depend on each other. The lightest dependency in the cycle is System.Collections.Generic → System.Linq (System.Collections.Generic.AnonymousAsyncIterator → System.Linq.AsyncIterator, 3 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
Namespace dependency cycle Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.cs:7— The namespaces System.Reactive ↔ System.Reactive.Concurrency ↔ System.Reactive.Disposables ↔ System.Reactive.Joins ↔ System.Reactive.Linq ↔ System.Reactive.PlatformServices ↔ System.Reactive.Subjects ↔ System.Threading.Tasks depend on each other. The lightest dependency in the cycle is System.Reactive → System.Reactive.PlatformServices (System.Reactive.ExceptionHelpers → System.Reactive.PlatformServices.IExceptionServices, 1 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
D10 · Test Quality· Tests excluded from compilation · ×1
Tests excluded from compilation: Rx.NET/Source/tests/Tests.System.Reactive/Tests/LicenseHeaderTest.cs Rx.NET/Source/tests/Tests.System.Reactive/Tests/LicenseHeaderTest.cs:29— 1 test method(s) in this file, but `Tests.System.Reactive.Uwp.DeviceRunner.csproj` drops it from the build with `<Compile Remove="..\Tests.System.Reactive\Tests\LicenseHeaderTest.cs" />`. It never compiles, never runs, and never reports as skipped — unlike a `Skip = "..."` attribute, nothing in a green test run says these tests are gone. Restore it to the compilation, or delete the file so the tree stops implying coverage that isn't there.
WriteOnlyPrivateField Rx.NET/Integration/BindingRedirects/CommonCodeInPcl/Class1.cs:14— private IDisposable disposable — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
D17 · Explicit Debt· NoWarnInCsproj repeated 42 times in 8 files · ×1
NoWarnInCsproj repeated 42 times in 8 files Ix.NET/Integration/Uwp/Uwp.csproj:44— The identical NoWarnInCsproj (`2008`) appears 42 times in 8 files — one decision applied repeatedly (e.g. the same rule silenced on every overload of a fluent API), not 42 independent debts. Decide it once — at the type or project level, or by fixing the underlying pattern — rather than occurrence-by-occurrence. (Every occurrence still counts toward the score and metrics.)
BlanketAnalyzerSeverityNone Rx.NET/Source/tests/.editorconfig:5— dotnet_analyzer_diagnostic.category-Design.severity = none — every rule in the Design category — this is not one rule switched off, it is a whole set the file never lists: every rule the entry covers is silenced for every file the section matches, in every project under this directory, and any rule added to that set by a future analyzer upgrade is silenced too, without anybody deciding so. It reads as narrower than it is — the analyzers still run and the build still looks configured — and because no rule is named there is nothing for a reader to look up and no list that will ever disclose what is covered. Replace it with the rules you actually mean to switch off, each on its own line, so the set is finite, visible and reviewable, and the ones nobody chose keep protecting the tree. If the blanket entry is genuinely right, link the decision from a comment above it: a comment that only restates the entry is what the editor generates when it writes this line, so it is a reference to the decision — an issue or a ticket — that clears this row.
DeadPreprocessorBranch Ix.NET/Source/Playground/Program.cs:84— #if USE_AWAIT_FOREACH — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/Playground/Program.cs:114— #if USE_AWAIT_FOREACH — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/Playground/Program.cs:144— #if USE_AWAIT_FOREACH — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/Playground/Program.cs:163— #if USE_AWAIT_FOREACH — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Interactive.Async/System/Diagnostics/CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs:5— #if NO_CODE_COVERAGE_ATTRIBUTE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Linq.Async/System/Diagnostics/CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs:5— #if NO_CODE_COVERAGE_ATTRIBUTE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Merge.cs:28— #if USE_FAIR_AND_CHEAPER_MERGE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Interactive.Async/TaskExt.cs:22— #if USE_FAIR_AND_CHEAPER_MERGE — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Throw.cs:25— #if NO_TASK_FROMEXCEPTION — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Linq.Async.Tests/System/Linq/AsyncEnumerableTests.cs:73— #if NO_TASK_FROMEXCEPTION — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:155— #if NOTYET — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Linq.Async/System/Linq/AsyncListPartition.cs:60— #if NOT_YET — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Ix.NET/Source/System.Linq.Async/System/Linq/EmptyArray.cs:5— #if NO_ARRAY_EMPTY — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:22— #if PRODUCTION — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Samples/HOL/CS/Excercise9/Step02/Program.cs:22— #if PRODUCTION — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:22— #if PRODUCTION — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Samples/HOL/CS/Excercise9/Step04/Program.cs:22— #if PRODUCTION — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Samples/HOL/CS/Excercise9/Step04/Program.cs:52— #if PRODUCTION — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Source/src/System.Reactive/Internal/PushPullAdapter.cs:5— #if NO_PERF — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Source/tests/Tests.System.Reactive/Stress/Core/Disposables/Composite.cs:5— #if STRESS — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Source/tests/Tests.System.Reactive/Stress/Core/Disposables/RefCount.cs:5— #if STRESS — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Source/tests/Tests.System.Reactive/Stress/Core/Disposables/Serial.cs:5— #if STRESS — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Source/tests/Tests.System.Reactive/Stress/Core/Disposables/SingleAssignment.cs:5— #if STRESS — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Source/tests/Tests.System.Reactive/Stress/Core/Schedulers/EventLoop.cs:5— #if STRESS — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Rx.NET/Source/tests/Tests.System.Reactive/Stress/Helpers.cs:5— #if STRESS — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
No assertions: Stopwatch Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/EventLoopSchedulerTest.cs:298— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Stopwatch Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/NewThreadSchedulerTest.cs:61— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Scheduler_Periodic_HostLifecycleManagement Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:393— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Stopwatch Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/TaskPoolSchedulerTest.cs:128— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: SingleAssignmentDisposable_SetNull Rx.NET/Source/tests/Tests.System.Reactive/Tests/Disposables/DisposableTests.cs:69— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: ForkJoin Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableExTest.cs:33— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Let Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableExTest.cs:64— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Amb Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:100— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: And Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:129— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Any Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:143— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Average Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:165— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: BufferWithCount Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:187— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: BufferWithTime Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:205— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Cast Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:246— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Catch Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:265— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: CombineLatest Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:282— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Count Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:309— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Delay Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:384— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Dematerialize Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:399— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: DistinctUntilChanged Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:418— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Finally Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:495— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Interval Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:649— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: IsEmpty Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:662— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: LongCount Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:687— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: Max Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/QbservableTest.cs:723— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
TodoComment AsyncRx.NET/Playground/Program.cs:82— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/Playground/Program.cs:93— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/Playground/Program.cs:104— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/Playground/Program.cs:116— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/Playground/Program.cs:127— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/Playground/Program.cs:177— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/Playground/Program.cs:243— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/Playground/Program.cs:248— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/Playground/Program.cs:255— // TODO: Use ForEachAsync. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncSchedulerBase.cs:44— // TODO: Support clock drift and clock changes. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Concurrency/TaskPoolAsyncScheduler.cs:46— // TODO: Call event handler. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Linq/Operators/For.cs:14— // TODO: Add IAsyncEnumerable<T> based overlaod. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Linq/Operators/ForEachAsync.cs:69— // TODO: Trace? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:13— // TODO: Add SequenceEqual<T>(IAsyncObservable<T>, IAsyncEnumerable<T>). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timer.cs:142— // TODO: Compensate for drift by adding stopwatch functionality. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timer.cs:171— // TODO: Compensate for drift by adding stopwatch functionality. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:15— // TODO: Add Zip<T>(IAsyncObservable<T>, IAsyncEnumerable<T>) overload when we have reference to IAsyncEnumerable<T>. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Subjects/ReplayAsyncSubject.cs:126— // TODO: immutable array — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:12— // TODO: Add ToTask. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Ix.NET/Source/System.Interactive.Async.Providers.Tests/AssertEx.cs:41— // TODO: proper assert; unfortunately there's not always a good call stack — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Ix.NET/Source/System.Interactive.Tests/AssertEx.cs:47— // TODO: proper assert; unfortunately there's not always a good call stack — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Ix.NET/Source/System.Linq.Async.Queryable.Tests/AssertEx.cs:41— // TODO: proper assert; unfortunately there's not always a good call stack — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/ToAsyncEnumerable.cs:459— // TODO: Add more tests for Observable conversion. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:54— // TODO: Use buffer. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:933— // TODO: Use buffer. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
+ 20 more in this group — see findings.md.
X18 · Disposal-pattern correctness· Disposable created and abandoned in the method that made it · ×39
Disposable created and abandoned in the method that made it AsyncRx.NET/System.Reactive.Async/Linq/CallbackAsyncObservable.cs:34— `cancellation` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 34). Every use of it in `SubscribeAsyncCore` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cancellation = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:410— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 410). Every use of it in `Merge` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1214— `cancel` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 1214). Every use of it in `SelectMany` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cancel = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:774— `queueLock` is a `AsyncQueueLock`, which implements `IDisposable`, and it is created here (line 774). Every use of it in `Window` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var queueLock = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:174— `e` is a `ManualResetEventSlim`, which implements `IDisposable`, and it is created here (line 174). Every use of it in `GetResult` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:524— `e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 524). Every use of it in `CreateAsync_Task_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:567— `stopped` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 567). Every use of it in `CreateAsync_IDisposable_Simple` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var stopped = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:596— `stopped` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 596). Every use of it in `CreateAsync_IDisposable_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var stopped = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:603— `e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 603). Every use of it in `CreateAsync_IDisposable_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:638— `stopped` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 638). Every use of it in `CreateAsync_Action_Simple` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var stopped = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:663— `stopped` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 663). Every use of it in `CreateAsync_Action_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var stopped = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:666— `e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 666). Every use of it in `CreateAsync_Action_Token` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DeferAsyncTests.cs:44— `e` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 44). Every use of it in `DeferAsync_WithCancel_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var e = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DelayTests.cs:1577— `next` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 1577). Every use of it in `Delay_TimeSpan_Real_Error2_Impl` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var next = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DelayTests.cs:1617— `next` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 1617). Every use of it in `Delay_TimeSpan_Real_Error3_Impl` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var next = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DelayTests.cs:1618— `ack` is a `ManualResetEvent`, which implements `IDisposable`, and it is created here (line 1618). Every use of it in `Delay_TimeSpan_Real_Error3_Impl` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var ack = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:42— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 42). Every use of it in `ForEachAsync_Never` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:76— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 76). Every use of it in `ForEachAsync_Completed` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:112— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 112). Every use of it in `ForEachAsync_Error` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:149— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 149). Every use of it in `ForEachAsync_Throw` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:191— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 191). Every use of it in `ForEachAsync_CancelDuring` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:224— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 224). Every use of it in `ForEachAsync_CancelBefore` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:255— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 255). Every use of it in `ForEachAsync_CancelAfter` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:300— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 300). Every use of it in `ForEachAsync_Default_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:362— `cts` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 362). Every use of it in `ForEachAsync_Index_Cancel` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var cts = …;`), which releases it at the end of the scope on every path including a throw.
+ 14 more in this group — see findings.md.
X2 · Cancellation propagation· Async method without CancellationToken · ×36
Async method without CancellationToken: AggregateAsync AsyncRx.NET/Playground/Program.cs:50— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: AllAsync AsyncRx.NET/Playground/Program.cs:55— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: AnyAsync AsyncRx.NET/Playground/Program.cs:60— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: AppendAsync AsyncRx.NET/Playground/Program.cs:65— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: BufferTimeHoppingAsync AsyncRx.NET/Playground/Program.cs:75— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: BufferTimeSlidingAsync AsyncRx.NET/Playground/Program.cs:85— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: CombineLatestAsync AsyncRx.NET/Playground/Program.cs:96— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: ConcatAsync AsyncRx.NET/Playground/Program.cs:107— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: DelayAsync AsyncRx.NET/Playground/Program.cs:119— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: GroupByAsync AsyncRx.NET/Playground/Program.cs:130— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: GroupBySelectManyAsync AsyncRx.NET/Playground/Program.cs:143— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: MergeAsync AsyncRx.NET/Playground/Program.cs:154— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: PrependAsync AsyncRx.NET/Playground/Program.cs:170— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: RangeAsync AsyncRx.NET/Playground/Program.cs:175— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: ReplaySubjectAsync AsyncRx.NET/Playground/Program.cs:180— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: SelectManyAsync AsyncRx.NET/Playground/Program.cs:216— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: SubjectAsync AsyncRx.NET/Playground/Program.cs:225— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: TakeUntilAsync AsyncRx.NET/Playground/Program.cs:241— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: TimerAsync AsyncRx.NET/Playground/Program.cs:246— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: WhileAsync AsyncRx.NET/Playground/Program.cs:251— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: SubscribeAsync AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:25— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: DeliverAsync AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:60— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: SubscribeAsync AsyncRx.NET/System.Reactive.Async/AsyncObservableBase.cs:11— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: OnCompletedAsyncCore AsyncRx.NET/System.Reactive.Async/AsyncObservableBase.cs:118— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: OnErrorAsyncCore AsyncRx.NET/System.Reactive.Async/AsyncObservableBase.cs:140— No CancellationToken parameter — this work can't be stopped early once started.
Sync-over-async blocking — 33 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs:564— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:76— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:123— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:49— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:94— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToAsyncObservable.cs:161— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToAsyncObservable.cs:163— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToAsyncObservable.cs:165— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/NotificationAsyncExtensions.cs:31— `adapter.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:178— `e.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/CreateAsyncTests.cs:727— `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:281— `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:289— `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ForEachAsyncTests.cs:437— `t.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromEventTests.cs:251— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromEventTests.cs:271— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ZipTests.cs:8989— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs:293— `_evt.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs:305— `_evt.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:87— `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:109— `_dispatcherEvent.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Rx.NET/Source/src/System.Reactive/Internal/SystemClock.Default.cs:107— `.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Blocking.cs:78— `consumer.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Blocking.cs:101— `sink.Wait()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async (deadlock risk) through `.Result` AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:430— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1273— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:141— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs:318— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:607— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:765— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1548— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1683— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:329— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:504— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Ix.NET/Source/FasterLinq/Program.cs:98— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Ix.NET/Source/FasterLinq/Program.cs:99— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Ix.NET/Source/FasterLinq/Program.cs:100— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Ix.NET/Source/FasterLinq/Program.cs:148— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Ix.NET/Source/FasterLinq/Program.cs:149— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
Sync-over-async (deadlock risk) through `.Result` Ix.NET/Source/FasterLinq/Program.cs:150— Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
D4 · Code Duplication· Edited copy of a member (3 corresponding lines) · ×14
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:930— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:930-932 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:958-961 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:553— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:553-557 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:570-572 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:821— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:821-823 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:848-850 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:499— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:499-503 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:518-520 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:719— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:719-721 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:745-747 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:451— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:451-453 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:470-472 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:405— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:405-407 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:426-428 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:361— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:361-363 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:384-386 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:321— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:321-323 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:344-346 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:283— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:283-285 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:306-308 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:247— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:247-249 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:270-272 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Timeout/TimeoutAbsoluteOtherSeq.cs:46— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Timeout/TimeoutAbsoluteOtherSeq.cs:46-48 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Timeout/TimeoutTimeOtherSeq.cs:42-44 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/DelaySubscription/DelaySubscriptionAbsoluteSeq.cs:35— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/DelaySubscription/DelaySubscriptionAbsoluteSeq.cs:35-37 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/DelaySubscription/DelaySubscriptionTimeSeq.cs:35-37 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Timeout/TimeoutAbsoluteSeq.cs:41— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Timeout/TimeoutAbsoluteSeq.cs:41-43 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Timeout/TimeoutTimeSeq.cs:37-39 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (2 corresponding lines) · ×14
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:380— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:380-381 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:648-649 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:305— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:305-306 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:516-517 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:329— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:329-330 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:557-558 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:258— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:258-259 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:434-435 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:281— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:281-282 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:473-474 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:213— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:213-214 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:356-357 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:235— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:235-236 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:393-394 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/SeqEx.cs:163— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/SeqEx.cs:163-164 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/SeqEx.Zip.cs:167-168 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:171— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:171-172 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:282-283 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:183— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:183-184 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:206-207 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:191— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:191-192 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:317-318 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/SeqEx.cs:132— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/SeqEx.cs:132-133 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/SeqEx.Zip.cs:140-141 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:154— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:154-155 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:177-178 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:131— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:131-132 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:214-215 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Harness/SchedulerDouble.cs:73— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ContainsTests.cs:277— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ContainsTests.cs:282— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/DelayTests.cs:1461— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncPatternTests.cs:1219— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncPatternTests.cs:1224— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncPatternTests.cs:1229— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromAsyncPatternTests.cs:1234— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ObserveOnTests.cs:61— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ThrowComparer.cs:18— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ZipTests.cs:9076— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException Rx.NET/Samples/RxRemoteMouseMoves/RxMouseServer/MouseService.cs:47— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
Unfinished stub — throws NotImplementedException Rx.NET/Samples/RxRemoteMouseMoves/RxMouseServer/MouseService.cs:52— A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×12
Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:90— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:90-104 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:107-121 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:218-232 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:235-249 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:32— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:32-46 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:49-63 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:176-190 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:193-207 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:102— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:102-118 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:121-137 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:246-262 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:265-281 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:162— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:162-250 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:402-494 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:550-666 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1204-1342 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:25— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:25-45 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:48-68 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:399-419 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:422-442 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:71— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:71-93 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:96-118 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:445-467 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:470-492 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:231— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:231-248 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:251-268 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:271-288 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:291-308 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:311— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:311-330 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:333-352 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:355-374 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:377-396 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:419— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:419-440 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:509-530 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:692-713 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:784-805 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:110— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:110-126 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:152-168 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:128-160 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:186-218 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:239— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:239-263 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:300-324 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:362-386 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:427-451 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:38— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:38-47 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:74-83 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:112-121 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:138-147 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Duplicated block (9 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Buffer.cs:88— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Buffer.cs:88-96 | Ix.NET/Source/System.Interactive/System/Linq/Operators/Buffer.cs:60-68 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:112— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:112-120 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:154-162 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:112` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `innerKeySelector` to `Func<TInner, ValueTask<TKey>>` in one and `Func<TInner, CancellationToken, ValueTask<TKey>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (9 lines × 2) Rx.NET/tools/HomoIcon/Program.cs:629— Rx.NET/tools/HomoIcon/Program.cs:629-637 | Rx.NET/tools/HomoIcon/Program.cs:757-765 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:89— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:89-97 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleOrDefault.cs:90-98 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:89` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:138— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:138-146 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleOrDefault.cs:139-147 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:138` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:177— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:177-185 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleOrDefault.cs:178-186 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:177` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/GroupedAsyncObservable.cs:35— AsyncRx.NET/System.Reactive.Async/Linq/GroupedAsyncObservable.cs:35-43 | AsyncRx.NET/System.Reactive.Async/Linq/WindowAsyncObservable.cs:24-32 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `observer` to `IAsyncObserver<TElement>` in one and `IAsyncObserver<TSource>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (9 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:500— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:500-508 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:522-530 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:500` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:90— AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:90-98 | AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:69-77 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs` and `AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:311— Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:311-319 | Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:272-280 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs` and `Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:326` calls `ThrowDisposed`, `ObjectDisposedException` and `Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:290` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:311— Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:311-319 | Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:272-280 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs` and `Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:326` calls `ThrowDisposed`, `ObjectDisposedException` and `Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:290` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:33— Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:33-41 | Rx.NET/Samples/HOL/CS/Excercise9/Step02/Program.cs:35-43 — `Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise9/Step02/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 54 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (5 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:131— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:131-135 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:166-170 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:131` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:70— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:70-74 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:70-74 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:70` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:173— Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:173-177 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLastBuffer.cs:103-109 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:181` calls `DisposeUpstream` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLastBuffer.cs:113` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:237— Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:237-241 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLastBuffer.cs:129-133 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (5 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:173— Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:173-177 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLastBuffer.cs:103-109 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:181` calls `DisposeUpstream` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLastBuffer.cs:113` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:237— Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:237-241 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLastBuffer.cs:129-133 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (5 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs:148— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs:148-152 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxByWithTies.cs:147-151 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs` and `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxByWithTies.cs` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs:155— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs:155-159 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxByWithTies.cs:154-158 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs` and `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxByWithTies.cs` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs:163— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs:163-167 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxByWithTies.cs:162-166 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxBy.cs` and `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MaxByWithTies.cs` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs:148— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs:148-152 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinByWithTies.cs:147-151 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs` and `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinByWithTies.cs` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs:155— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs:155-159 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinByWithTies.cs:154-158 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs` and `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinByWithTies.cs` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs:163— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs:163-167 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinByWithTies.cs:162-166 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinBy.cs` and `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinByWithTies.cs` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Sync-over-async (deadlock risk) AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:72— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:123— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:45— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:94— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToAsyncObservable.cs:161— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToAsyncObservable.cs:163— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToAsyncObservable.cs:165— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Rx.NET/Source/src/System.Reactive/Internal/SystemClock.Default.cs:107— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:154— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToEnumerable.cs:67— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToEnumerable.cs:80— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Ix.NET/Source/Playground/Program.cs:255— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
BarePragmaDisable AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/FromEventPattern_VarianceCheck.cs:15— #pragma warning disable 67 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/FromEventPatternTest.cs:877— #pragma warning disable 67 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/FromEventPatternTest.cs:889— #pragma warning disable 67 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/src/System.Reactive/Notification.cs:14— #pragma warning disable CS0661 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/ScheduledItemTest.cs:93— #pragma warning disable 1718 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/CombineLatestTest.cs:16— #pragma warning disable IDE0039 // Use local function — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/FromAsyncPatternTest.cs:17— #pragma warning disable IDE0039 // Use local function — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/ManySelectTest.cs:16— #pragma warning disable IDE0039 // Use local function — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/ZipTest.cs:22— #pragma warning disable IDE0039 // Use local function — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/TaskLikeSupportTest.cs:25— #pragma warning disable 1998 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Rx.NET/Source/tests/Tests.System.Reactive/Tests/TaskLikeSupportTest.cs:38— #pragma warning disable 1998 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
Test cannot fail: ScheduleAction Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/DefaultSchedulerTest.cs:35— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: ScheduleActionDue Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/DefaultSchedulerTest.cs:45— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: Immediate_ArgumentChecking_More Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/ImmediateSchedulerTest.cs:115— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 6 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: NewThread_ScheduleAction Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/NewThreadSchedulerTest.cs:40— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: NewThread_ScheduleActionDue Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/NewThreadSchedulerTest.cs:50— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: Scheduler_Periodic2 Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:371— This test's act runs inside `SchedulePeriodic` at line 983 of this file, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: ScheduleAction Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/ThreadPoolSchedulerTest.cs:35— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: ScheduleActionDueRelative Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/ThreadPoolSchedulerTest.cs:100— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: ScheduleActionDue0 Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/ThreadPoolSchedulerTest.cs:110— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
Test cannot fail: ScheduleActionDueAbsolute Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/ThreadPoolSchedulerTest.cs:120— This test's act runs inside `Schedule` at Rx.NET/Source/tests/Tests.System.Reactive/Tests/Concurrency/SchedulerTest.cs:933, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
FileTooLong: Joins/ActivePlan.cs Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs— FileTooLong — 1133 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 633 over it, 2.27× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Linq/QueryLanguage.Async.cs Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs— FileTooLong — 897 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 397 over it, 1.79× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Joins/Plan.cs Rx.NET/Source/src/System.Reactive/Joins/Plan.cs— FileTooLong — 817 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 317 over it, 1.63× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: FasterLinq/Program.cs Ix.NET/Source/FasterLinq/Program.cs— FileTooLong — 802 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 302 over it, 1.60× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Observable/SelectMany.cs Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs— FileTooLong — 783 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 283 over it, 1.57× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Operators/SelectMany.cs AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs— FileTooLong — 708 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 208 over it, 1.42× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Operators/GroupBy.cs Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs— FileTooLong — 649 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 149 over it, 1.30× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: HomoIcon/Program.cs Rx.NET/tools/HomoIcon/Program.cs— FileTooLong — 620 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 120 over it, 1.24× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Operators/OrderedAsyncEnumerable.cs Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs— FileTooLong — 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 over it, 1.15× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Operators/GroupByUntil.cs AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs— FileTooLong — 545 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 45 over it, 1.09× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
D4 · Code Duplication· Edited copy of a member (4 corresponding lines) · ×10
Edited copy of a member (4 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToLookup.cs:56— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToLookup.cs:56-59 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToLookup.cs:177-180 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/Range.cs:41— Rx.NET/Source/src/System.Reactive/Linq/Observable/Range.cs:41-44 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Repeat.cs:143-146 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1529— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1529-1532 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1569-1572 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1605— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1605-1608 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1644-1647 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1381— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1381-1384 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1420-1423 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1454— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1454-1457 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1492-1495 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1308— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1308-1311 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1345-1348 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1170— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1170-1173 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1203-1206 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1044— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1044-1047 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1074-1077 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Ix.NET/Source/Benchmarks.System.Interactive/BufferCountBenchmark.cs:21— Ix.NET/Source/Benchmarks.System.Interactive/BufferCountBenchmark.cs:21-25 | Ix.NET/Source/Benchmarks.System.Interactive/RetryBenchmark.cs:22-25 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (12 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sample.cs:137— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sample.cs:137-148 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sample.cs:169-180 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sample.cs:137` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:566— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:566-577 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:737-748 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:566` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:736` calls `Clear` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:565` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:57— AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:57-68 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:59-70 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:57` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:29— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:29-40 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:157-168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:44— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:44-55 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:172-183 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:76— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:76-87 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:204-215 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:18— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:18-29 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:162-173 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:91— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:91-102 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:155-166 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) Rx.NET/Samples/HOL/CS/Excercise4/Step03/Program.cs:12— Rx.NET/Samples/HOL/CS/Excercise4/Step03/Program.cs:12-23 | Rx.NET/Samples/HOL/CS/Excercise4/Step04/Program.cs:12-23 — `Rx.NET/Samples/HOL/CS/Excercise4/Step03/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise4/Step04/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 12 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (12 lines × 2) Rx.NET/Samples/HOL/CS/Excercise6/Step02/Program.cs:12— Rx.NET/Samples/HOL/CS/Excercise6/Step02/Program.cs:12-23 | Rx.NET/Samples/HOL/CS/Excercise6/Step03/Program.cs:12-23 — `Rx.NET/Samples/HOL/CS/Excercise6/Step02/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise6/Step03/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 12 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication· Edited copy of a member (20 corresponding lines) · ×9
Edited copy of a member (20 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sample.cs:41— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sample.cs:41-60 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sample.cs:63-84 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:35— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:35-54 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:77-96 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs:201— Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs:201-222 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Window.cs:69-88 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:74— Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:74-99 | Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:108-127 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs:131— Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs:131-150 | Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:141-160 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/DefaultIfEmpty.cs:40— AsyncRx.NET/System.Reactive.Async/Linq/Operators/DefaultIfEmpty.cs:40-63 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:186-205 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/DefaultIfEmpty.cs:40— AsyncRx.NET/System.Reactive.Async/Linq/Operators/DefaultIfEmpty.cs:40-63 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:245-264 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) AsyncRx.NET/System.Reactive.Async/AsyncObservableBase.cs:42— AsyncRx.NET/System.Reactive.Async/AsyncObservableBase.cs:42-61 | AsyncRx.NET/System.Reactive.Async/Disposables/CompositeAsyncDisposable.cs:39-61 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Rx.NET/Samples/HOL/CS/Excercise6/Step02/Program.cs:11— Rx.NET/Samples/HOL/CS/Excercise6/Step02/Program.cs:11-30 | Rx.NET/Samples/HOL/CS/Excercise6/Step03/Program.cs:11-30 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (6 corresponding lines) · ×9
Edited copy of a member (6 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/First.cs:65— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/First.cs:65-70 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Last.cs:65-70 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/First.cs:36— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/First.cs:36-41 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Last.cs:36-41 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/FirstOrDefault.cs:35— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/FirstOrDefault.cs:35-40 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/LastOrDefault.cs:35-40 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Cast.cs:10— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Cast.cs:10-15 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/OfType.cs:10-15 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Any.cs:12— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Any.cs:12-17 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/IsEmpty.cs:10-15 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:74— AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:74-79 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:132-137 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:16— AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:16-21 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:18-23 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:24— AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:24-29 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:26-31 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:609— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:609-614 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:624-629 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (23 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:169— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:169-191 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:169-191 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:169` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:211— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:211-233 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:211-233 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:211` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:253— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:253-275 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:253-275 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:253` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:295— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:295-317 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:295-317 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:295` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:337— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:337-359 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:337-359 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:337` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:130— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:130-152 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:188-210 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:130` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `innerKeySelector` to `Func<TInner, ValueTask<TKey>>` in one and `Func<TInner, CancellationToken, ValueTask<TKey>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (23 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Last.cs:69— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Last.cs:69-91 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Single.cs:78-100 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Last.cs:69` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/RefCount.cs:56— AsyncRx.NET/System.Reactive.Async/Linq/Operators/RefCount.cs:56-78 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/RefCount.cs:193-215 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/RefCount.cs:56` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 2) Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:14— Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:14-36 | Rx.NET/Samples/HOL/CS/Excercise8/Step11/Program.cs:14-36 — `Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step11/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 68 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
TooManyMethods: QueryLanguage Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Aggregates.cs— TooManyMethods — 2286 significant lines (blank, comment-only and punctuation-only lines excluded), 733 methods, declared across 17 files: Linq/QueryLanguage.Aggregates.cs (133), Linq/QueryLanguage.Async.cs (122), Linq/QueryLanguage.Time.cs (104), Linq/QueryLanguage.StandardSequenceOperators.cs (67), +13 more file(s). The bar is 30 methods; this is 703 over it, 24.43× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: AsyncObservable AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs— TooManyMethods — 5197 significant lines (blank, comment-only and punctuation-only lines excluded), 576 methods, declared across 112 files: Operators/FromEventPattern.cs (25), Operators/Replay.cs (24), Operators/SelectMany.cs (23), Operators/GroupBy.cs (17), +108 more file(s). The bar is 30 methods; this is 546 over it, 19.20× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: AsyncObserver AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs— TooManyMethods — 5940 significant lines (blank, comment-only and punctuation-only lines excluded), 352 methods, declared across 71 files: Operators/SelectMany.cs (22), Operators/GroupBy.cs (16), Operators/GroupByUntil.cs (16), Operators/Do.cs (14), +67 more file(s). The bar is 30 methods; this is 322 over it, 11.73× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: Seq AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs— TooManyMethods — 938 significant lines (blank, comment-only and punctuation-only lines excluded), 208 methods, declared across 20 files: ToAsync/Seq.ToAsync.cs (68), FromAsyncPattern/Seq.FromAsyncPattern.cs (30), FromEventPattern/Seq.FromEventPattern.cs (22), Creation/Seq.cs (19), +16 more file(s). The bar is 30 methods; this is 178 over it, 6.93× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: Observable Rx.NET/Source/src/System.Reactive/Linq/Observable.Creation.cs— TooManyMethods — 460 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods, declared across 3 files: Linq/Observable.Creation.cs (35), Linq/Observable.Events.cs (30), Linq/Observable.Imperative.cs (13). The bar is 30 methods; this is 48 over it, 2.60× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: EnumerableEx Ix.NET/Source/System.Interactive/System/Linq/Operators/Catch.cs— TooManyMethods — 315 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods, declared across 20 files: Operators/Catch.cs (6), Operators/Repeat.cs (6), Operators/OnErrorResumeNext.cs (4), Operators/Scan.cs (4), +16 more file(s). The bar is 30 methods; this is 21 over it, 1.70× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: TestAsyncScheduler AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs— TooManyMethods — 323 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods, declared across 3 files: Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs (33), Microsoft.Reactive.Testing.Async/TestAsyncScheduler.Harness.cs (6), Microsoft.Reactive.Testing.Async/TestAsyncScheduler.Factories.cs (4). The bar is 30 methods; this is 13 over it, 1.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: AsyncEnumerableEx Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/MinByWithTies.cs— TooManyMethods — 297 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods, declared across 10 files: Operators/MinByWithTies.cs (12), Operators/Amb.cs (4), Operators/OnErrorResumeNext.cs (4), Operators/Defer.cs (3), +6 more file(s). The bar is 30 methods; this is 1 over it, 1.03× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
D4 · Code Duplication· Edited copy of a member (27 corresponding lines) · ×8
Edited copy of a member (27 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/For.cs:53— AsyncRx.NET/System.Reactive.Async/Linq/Operators/For.cs:53-85 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/While.cs:50-76 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:42— AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:42-68 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:44-70 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/AsyncInfoObservable.cs:80— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/AsyncInfoObservable.cs:80-106 | Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/AsyncInfoObservable.cs:198-229 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:174— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:174-200 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:175-202 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:82— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:82-108 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:82-109 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/If.cs:17— AsyncRx.NET/System.Reactive.Async/Linq/Operators/If.cs:17-43 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/If.cs:50-76 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:143— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:143-169 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:172-198 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Select.cs:67— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Select.cs:67-93 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:67-96 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (19 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:160— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:160-178 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:254-272 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:160` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1520— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1520-1538 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1655-1673 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1520` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/For.cs:67— AsyncRx.NET/System.Reactive.Async/Linq/Operators/For.cs:67-85 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/While.cs:58-76 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/For.cs:67` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:201— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:201-219 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:204-222 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:125— AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:125-143 | AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:152-170 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:125` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `dueTime` to `TimeSpan` in one and `DateTimeOffset` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (19 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:535— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:535-570 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:642-660 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:535` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:82— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:82-100 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:82-101 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:82` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (19 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Task.cs:27— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Task.cs:27-45 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Task.cs:33-51 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Task.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Task.cs` as WHOLE FILES: 96% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Task.cs:27` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) Ix.NET/Source/FasterLinq/Program.cs:1075— Ix.NET/Source/FasterLinq/Program.cs:1075-1090 | Ix.NET/Source/FasterLinq/Program.cs:1106-1121 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/FasterLinq/Program.cs:1075` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1126— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1126-1141 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1201-1216 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1126` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:253— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:253-268 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:612-627 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:125— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:125-140 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:253-268 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:67— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:67-82 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:211-226 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/Delay.cs:177— Rx.NET/Source/src/System.Reactive/Linq/Observable/Delay.cs:177-192 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Delay.cs:356-371 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/Delay.cs:177` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:193— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:193-208 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:585-600 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (16 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SingleAsync.cs:34— Rx.NET/Source/src/System.Reactive/Linq/Observable/SingleAsync.cs:34-49 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SingleOrDefaultAsync.cs:34-49 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:428— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:428-437 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:428-437 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:428` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:454— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:454-463 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:454-463 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:454` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:91— AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:91-100 | AsyncRx.NET/Microsoft.Reactive.Testing.Async/HotAsyncObservable.cs:91-100 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 2) AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:189— AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:189-198 | AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:240-249 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:189` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:398— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:398-407 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:457-466 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:398` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) Rx.NET/Source/src/System.Reactive/EventPatternSourceBase.cs:121— Rx.NET/Source/src/System.Reactive/EventPatternSourceBase.cs:121-130 | Rx.NET/Source/src/System.Reactive/EventSource.cs:71-80 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SkipUntil.cs:45— Rx.NET/Source/src/System.Reactive/Linq/Observable/SkipUntil.cs:45-54 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeUntil.cs:44-53 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) Rx.NET/Source/src/System.Reactive/EventPatternSourceBase.cs:121— Rx.NET/Source/src/System.Reactive/EventPatternSourceBase.cs:121-130 | Rx.NET/Source/src/System.Reactive/EventSource.cs:71-80 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Swallowed exception (empty catch) AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:67— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) AsyncRx.NET/Microsoft.Reactive.Testing.Async/HotAsyncObservable.cs:53— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1265— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Rx.NET/Source/src/System.Reactive/Concurrency/CatchScheduler.cs:89— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Rx.NET/Source/src/System.Reactive/Linq/Observable/ResetExceptionDispatchState.cs:44— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/OnErrorResumeNext.cs:130— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Rx.NET/Samples/Portable/SilverlightApplication/App.xaml.cs:63— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Rx.NET/tools/HomoIcon/Program.cs:113— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Duplicated block (22 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:199— AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:199-220 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:236-257 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:199` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (22 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:45— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:45-66 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:45-66 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:45` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (22 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:137— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:137-158 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:138-159 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:137` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (22 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:228— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:228-249 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:230-251 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:228` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (22 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:310— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:310-331 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:312-333 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:310` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (22 lines × 2) Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs:52— Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs:52-73 | Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Concurrency/ControlScheduler.cs:46-67 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Concurrency/ControlScheduler.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) Rx.NET/Source/src/System.Reactive.Windows.Forms/System.Reactive.Linq/ControlObservable.cs:46— Rx.NET/Source/src/System.Reactive.Windows.Forms/System.Reactive.Linq/ControlObservable.cs:46-67 | Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Linq/ControlObservable.cs:42-63 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.Windows.Forms/System.Reactive.Linq/ControlObservable.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Linq/ControlObservable.cs` as WHOLE FILES: 95% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:603— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:603-619 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:630-646 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:603` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:16— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:16-32 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:58-74 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:226— Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:226-242 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:220-236 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:226` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:335— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:335-351 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:606-622 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:335` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:307— Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:307-323 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:491-507 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:74— Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:74-90 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs:79-95 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (17 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:307— Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:307-323 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:491-507 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:11— Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:11-17 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:10-16 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:11` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:211— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:211-217 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLastBuffer.cs:110-116 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:207` calls `SingleAssignmentAsyncDisposable` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLastBuffer.cs:106` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs:93— Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs:93-99 | Rx.NET/Source/src/System.Reactive/Linq/QbservableEx.cs:22-28 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs` and `Rx.NET/Source/src/System.Reactive/Linq/QbservableEx.cs` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs:103— Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs:103-109 | Rx.NET/Source/src/System.Reactive/Linq/QbservableEx.cs:32-38 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs` and `Rx.NET/Source/src/System.Reactive/Linq/QbservableEx.cs` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs:93— Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs:93-99 | Rx.NET/Source/src/System.Reactive/Linq/QbservableEx.cs:22-28 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs` and `Rx.NET/Source/src/System.Reactive/Linq/QbservableEx.cs` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs:103— Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs:103-109 | Rx.NET/Source/src/System.Reactive/Linq/QbservableEx.cs:32-38 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Qbservable.cs` and `Rx.NET/Source/src/System.Reactive/Linq/QbservableEx.cs` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 4 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.cs:18— Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.cs:18-24 | Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.cs:39-45 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.cs` and `Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.cs` as WHOLE FILES: 86% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
AX2 · Stateful singletons· Process-global static state · ×6
Process-global static state: ObservableQueryProvider Rx.NET/Source/src/System.Reactive/ObservableQuery.cs:19— `ObservableQueryProvider` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_staticAsQueryable; e.g. `_staticAsQueryable` at line 80). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: PlatformEnlightenmentProvider Rx.NET/Source/src/System.Reactive/Internal/PlatformEnlightenmentProvider.cs:34— `PlatformEnlightenmentProvider` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_current; e.g. `_current` at line 58). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: Qbservable Rx.NET/Source/src/System.Reactive/Linq/Observable.Queryable.cs:14— `Qbservable` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_provider; e.g. `s_provider` at line 27). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: CurrentThreadScheduler Rx.NET/Source/src/System.Reactive/Concurrency/CurrentThreadScheduler.cs:13— `CurrentThreadScheduler` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_threadLocalQueue, _clock, _running; e.g. `_threadLocalQueue` at line 39). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: TypeErasedEqualityComparer ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/AssertEqualityComparer_reflection.cs:257— `TypeErasedEqualityComparer` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (equalsMethod; e.g. `equalsMethod` at line 297). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: AsyncEnumerableRewriter Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs:16— `AsyncEnumerableRewriter` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_methods; e.g. `_methods` at line 399). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
BareSuppressMessage Rx.NET/Source/src/Microsoft.Reactive.Testing/GlobalSuppressions.cs:16— System.Diagnostics.CodeAnalysis.SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
BareSuppressMessage Rx.NET/Source/src/Microsoft.Reactive.Testing/GlobalSuppressions.cs:17— System.Diagnostics.CodeAnalysis.SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
BareSuppressMessage Rx.NET/Source/src/Microsoft.Reactive.Testing/GlobalSuppressions.cs:18— System.Diagnostics.CodeAnalysis.SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
BareSuppressMessage Rx.NET/Source/src/Microsoft.Reactive.Testing/GlobalSuppressions.cs:19— System.Diagnostics.CodeAnalysis.SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
BareSuppressMessage Rx.NET/Source/src/Microsoft.Reactive.Testing/GlobalSuppressions.cs:20— System.Diagnostics.CodeAnalysis.SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
BareSuppressMessage Rx.NET/Source/src/System.Reactive/GlobalSuppressions.cs:39— System.Diagnostics.CodeAnalysis.SuppressMessage — the suppression records no reason: either it carries no justification argument at all, or one that states nothing a reader can weigh ("OK", "By design"). A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited. Write what makes this site legitimately different — the invariant that holds, the framework contract that forces the shape — or remove the suppression and fix what it hides.
D4 · Code Duplication· Edited copy of a member (25 corresponding lines) · ×6
Edited copy of a member (25 corresponding lines) AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs:213— AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs:213-239 | AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs:252-276 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (25 corresponding lines) AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:119— AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:119-143 | AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:146-170 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (25 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:231— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:231-255 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToLookup.cs:232-256 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (25 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timer.cs:127— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timer.cs:127-151 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timer.cs:156-180 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (25 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:87— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:87-111 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleOrDefault.cs:88-112 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (25 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:192— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:192-216 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToLookup.cs:193-217 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (15 corresponding lines) · ×6
Edited copy of a member (15 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:88— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:88-102 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:120-134 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:84— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:84-98 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToLookup.cs:85-99 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:84— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:84-98 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToLookup.cs:117-131 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:116— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:116-130 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToLookup.cs:85-99 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:116— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:116-130 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToLookup.cs:117-131 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Rx.NET/Source/src/System.Reactive/Internal/AutoDetachObserver.cs:26— Rx.NET/Source/src/System.Reactive/Internal/AutoDetachObserver.cs:26-71 | Rx.NET/Source/src/System.Reactive/Internal/SafeObserver.cs:26-40 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (18 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:711— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:711-728 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:737-754 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:711` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:46— Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:46-63 | Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:93-110 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:46` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `observer` to `IObserver<Unit>` in one and `IObserver<TResult>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (18 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:265— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:265-282 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:267-284 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:265` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:70— Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:70-87 | Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:62-79 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs` and `Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:70` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:55` calls `ThrowDisposed`, `ObjectDisposedException` and `Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:57` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (18 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:272— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:272-289 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:631-648 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:141— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:141-158 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:285-302 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication· Edited copy of a member (17 corresponding lines) · ×5
Edited copy of a member (17 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:68— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:68-84 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:68-100 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1142— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1142-1158 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1161-1177 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:90— AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs:90-111 | AsyncRx.NET/Microsoft.Reactive.Testing.Async/HotAsyncObservable.cs:90-106 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:541— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:541-557 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:561-579 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:697— Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:697-713 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:786-802 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (26 corresponding lines) · ×5
Edited copy of a member (26 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:265— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:265-290 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:293-318 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (26 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:571— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:571-596 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:726-754 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (26 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/StartAsync.cs:40— AsyncRx.NET/System.Reactive.Async/Linq/Operators/StartAsync.cs:40-65 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/StartAsync.cs:93-118 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (26 corresponding lines) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/WindowsObservable.Events.cs:30— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/WindowsObservable.Events.cs:30-55 | Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/WindowsObservable.Events.cs:70-100 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (26 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Finally.cs:13— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Finally.cs:13-38 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Finally.cs:41-66 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (13 corresponding lines) · ×5
Edited copy of a member (13 corresponding lines) Rx.NET/Source/src/System.Reactive/Internal/TaskExtensions.cs:10— Rx.NET/Source/src/System.Reactive/Internal/TaskExtensions.cs:10-22 | Rx.NET/Source/src/System.Reactive/Internal/TaskExtensions.cs:38-50 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncSchedulerBase.cs:23— AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncSchedulerBase.cs:23-35 | AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncSchedulerBase.cs:38-50 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:69— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:69-81 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToLookup.cs:70-82 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:101— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToDictionary.cs:101-113 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToLookup.cs:102-114 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Rx.NET/Samples/RxRemoteMouseMoves/RxMouseServer/Program.Remoting.cs:28— Rx.NET/Samples/RxRemoteMouseMoves/RxMouseServer/Program.Remoting.cs:28-40 | Rx.NET/Samples/RxRemoteMouseMoves/RxMouseClient/Program.Remoting.cs:27-39 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (26 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:140— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:140-165 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:132-157 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:140` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (26 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:178— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:178-203 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:166-191 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:178` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (26 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1012— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1012-1037 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1248-1273 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (26 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:116— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:116-141 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:180-205 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (26 lines × 2) AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:63— AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:63-88 | AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:127-152 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:122— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:122-145 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:149-172 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:68— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:68-91 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:68-91 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:68` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (24 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:104— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:104-127 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:100-123 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:104` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (24 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:174— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:174-197 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:177-200 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:227— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:227-250 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:643-666 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:227` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:266— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:266-280 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:294-308 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:266` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SequenceEqual.cs:84— Rx.NET/Source/src/System.Reactive/Linq/Observable/SequenceEqual.cs:84-98 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SequenceEqual.cs:158-172 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/SequenceEqual.cs:84` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:108— Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:108-123 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:233-247 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:108` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `TLeft` in one and `TRight` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (15 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/Count.cs:82— Rx.NET/Source/src/System.Reactive/Linq/Observable/Count.cs:82-96 | Rx.NET/Source/src/System.Reactive/Linq/Observable/LongCount.cs:82-96 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) Rx.NET/Samples/HOL/CS/Excercise3/Step06/Program.cs:22— Rx.NET/Samples/HOL/CS/Excercise3/Step06/Program.cs:22-36 | Rx.NET/Samples/HOL/CS/Excercise4/Start/Program.cs:22-36 — before extracting anything, compare `Rx.NET/Samples/HOL/CS/Excercise3/Step06/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise4/Start/Program.cs` as WHOLE FILES: 88% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Samples/HOL/CS/Excercise3/Step06/Program.cs:22` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Max.cs:31— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Max.cs:31-44 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Min.cs:31-44 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Max.cs:31` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:59— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:59-72 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:187-200 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:86— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:86-99 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:230-243 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:124— Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:124-137 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:147-160 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:196— Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:196-209 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:230-243 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:245` calls `Dispose`, `Clear` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:210` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:244— Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:244-256 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:238-250 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:244` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (13 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:225— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:225-237 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:584-596 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:240— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:240-252 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:428-440 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:240` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 2) Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:74— Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:74-92 | Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:108-120 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:74` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:121` calls `Dispose` and `Rx.NET/Source/src/System.Reactive/Disposables/Disposable.Utils.cs:93` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 2) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/WindowsRuntimeThreadPoolScheduler.cs:106— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/WindowsRuntimeThreadPoolScheduler.cs:106-118 | Rx.NET/Source/src/System.Reactive/Concurrency/TaskPoolScheduler.cs:227-240 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:170— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:170-175 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:237-242 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:170` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:235` calls `Trim` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:169` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:219— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:219-224 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/ISeqVisitor.Zip.cs:214-219 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:219` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:238— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:238-243 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/ISeqVisitor.Zip.cs:233-238 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:238` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:257— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:257-262 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/ISeqVisitor.Zip.cs:252-257 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:257` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) Rx.NET/Samples/Portable/PortableClassLibrary/PortableClass.cs:21— Rx.NET/Samples/Portable/PortableClassLibrary/PortableClass.cs:21-26 | Rx.NET/Samples/Portable/PortableClassLibrary_NuGet/PortableClass.cs:21-26 — `Rx.NET/Samples/Portable/PortableClassLibrary/PortableClass.cs` and `Rx.NET/Samples/Portable/PortableClassLibrary_NuGet/PortableClass.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 6 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:182— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:182-190 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:412-420 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:574-582 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1226-1234 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:182` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 4) Rx.NET/Source/src/System.Reactive.WindowsRuntime/StableUncheckedCompositeDisposable.cs:54— Rx.NET/Source/src/System.Reactive.WindowsRuntime/StableUncheckedCompositeDisposable.cs:54-62 | Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs:133-141 | Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs:167-175 | Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs:195-203 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs:163` calls `Read` and `Rx.NET/Source/src/System.Reactive.WindowsRuntime/StableUncheckedCompositeDisposable.cs:50` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:408— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:408-416 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:498-506 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:681-689 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:773-781 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:408— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:408-416 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:498-506 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:681-689 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:773-781 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 4) Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:28— Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:28-36 | Rx.NET/Samples/HOL/CS/Excercise8/Step11/Program.cs:28-36 | Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:32-41 | Rx.NET/Samples/HOL/CS/Excercise9/Step02/Program.cs:34-43 — `Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step11/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 68 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:28` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:32` calls `ToObservable` and `Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:28` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
MethodTooLong: Program.Generate Rx.NET/tools/HomoIcon/Program.cs:148— MethodTooLong — Generate runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Program.GenerateAsync Rx.NET/tools/HomoIcon/Program.cs:539— MethodTooLong — GenerateAsync runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: AsyncObserver.DelayCore AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:208— MethodTooLong — DelayCore runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: AsyncObserver.GroupByUntil AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:571— MethodTooLong — GroupByUntil runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication· Edited copy of a member (22 corresponding lines) · ×4
Edited copy of a member (22 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:130— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:130-151 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:187-211 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:55— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:55-79 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Take.cs:80-101 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:90— AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:90-111 | AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAsyncObservableExtensions.cs:154-175 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) AsyncRx.NET/System.Reactive.Async/Disposables/RefCountAsyncDisposable.cs:41— AsyncRx.NET/System.Reactive.Async/Disposables/RefCountAsyncDisposable.cs:41-62 | AsyncRx.NET/System.Reactive.Async/Disposables/RefCountAsyncDisposable.cs:65-86 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (36 corresponding lines) · ×4
Edited copy of a member (36 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs:314— Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs:314-350 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Window.cs:177-212 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (36 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:74— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:74-109 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:226-264 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (36 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:67— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:67-102 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:105-140 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (36 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/RepeatWhen.cs:23— Rx.NET/Source/src/System.Reactive/Linq/Observable/RepeatWhen.cs:23-58 | Rx.NET/Source/src/System.Reactive/Linq/Observable/RetryWhen.cs:24-59 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (32 corresponding lines) · ×4
Edited copy of a member (32 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:152— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:152-183 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:208-242 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (32 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:45— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:45-76 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:45-76 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (32 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:158— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:158-189 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:192-223 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (32 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:131— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:131-162 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:165-196 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (24 corresponding lines) · ×4
Edited copy of a member (24 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:16— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:16-39 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:42-67 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (24 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:617— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:617-640 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:727-754 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (24 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeUntil.cs:106— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeUntil.cs:106-129 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:98-126 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (24 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:267— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:267-290 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:293-316 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (18 corresponding lines) · ×4
Edited copy of a member (18 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Aggregate.cs:85— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Aggregate.cs:85-102 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Aggregate.cs:125-142 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:43— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:43-60 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:63-82 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeUntil.cs:39— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeUntil.cs:39-56 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeUntil.cs:59-78 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) Rx.NET/Samples/HOL/CS/Excercise7/Step05/Program.cs:12— Rx.NET/Samples/HOL/CS/Excercise7/Step05/Program.cs:12-29 | Rx.NET/Samples/HOL/CS/Excercise7/Step06/Program.cs:12-35 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (36 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1542— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1542-1577 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1677-1712 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (36 lines × 2) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:189— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:189-224 | Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs:179-214 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (36 lines × 2) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:238— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:238-273 | Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs:228-263 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (36 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToObservable.cs:39— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToObservable.cs:39-74 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToObservable.cs:45-80 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToObservable.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToObservable.cs` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 2) Rx.NET/tools/HomoIcon/Program.cs:641— Rx.NET/tools/HomoIcon/Program.cs:641-660 | Rx.NET/tools/HomoIcon/Program.cs:768-787 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/tools/HomoIcon/Program.cs:641` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Rx.NET/tools/HomoIcon/Program.cs:638` calls `WriteLine` and `Rx.NET/tools/HomoIcon/Program.cs:766` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (20 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:160— AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:160-179 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:217-236 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:160` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (20 lines × 2) AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:145— AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:145-164 | AsyncRx.NET/System.Reactive.Async/Subjects/BehaviorAsyncSubject.cs:154-173 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:145` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (20 lines × 2) AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:69— AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:69-88 | AsyncRx.NET/System.Reactive.Async/Subjects/SimpleAsyncSubject.cs:53-72 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:153— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:153-160 | Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs:143-150 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:153` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:184— AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:184-191 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:223-230 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:184` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:193` calls `default` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:232` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 2) Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs:234— Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs:234-241 | Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs:262-269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Retry.cs:58— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Retry.cs:58-65 | Ix.NET/Source/System.Interactive/System/Linq/Operators/Repeat.cs:84-91 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) Ix.NET/Source/FasterLinq/Program.cs:82— Ix.NET/Source/FasterLinq/Program.cs:82-92 | Ix.NET/Source/FasterLinq/Program.cs:132-142 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:70— Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:70-80 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:186-196 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:70` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:184` calls `Trim` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:68` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) AsyncRx.NET/System.Reactive.Async/AsyncObserver.cs:16— AsyncRx.NET/System.Reactive.Async/AsyncObserver.cs:16-26 | AsyncRx.NET/System.Reactive.Async/Internal/UnsafeAsyncObserver.cs:16-26 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (11 lines × 2) Ix.NET/Source/System.Interactive/System/Linq/Operators/Memoize.cs:158— Ix.NET/Source/System.Interactive/System/Linq/Operators/Memoize.cs:158-168 | Ix.NET/Source/System.Interactive/System/Linq/Operators/Publish.cs:107-117 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:463— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:463-468 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:553-558 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1272-1277 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1360-1365 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:736— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:736-741 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:828-833 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1007-1012 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1097-1102 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:463— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:463-468 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:553-558 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1272-1277 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1360-1365 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:736— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:736-741 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:828-833 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1007-1012 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1097-1102 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication· Edited copies of one member (3 members, 4+ corresponding lines) · ×4
Edited copies of one member (3 members, 4+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:721— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:721-724 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1237-1240 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1275-1278 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:648— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:648-651 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1105-1108 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1140-1143 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:581— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:581-584 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:986-989 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:1017-1020 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:519— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:519-522 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:874-877 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:904-907 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 3+ corresponding lines) · ×4
Edited copies of one member (3 members, 3+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:461— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:461-463 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:770-772 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:798-800 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 3+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:406— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:406-408 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:670-672 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:697-699 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 3+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:354— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/FromAsyncPattern/Seq.FromAsyncPattern.cs:354-356 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:578-580 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/ToAsync/Seq.ToAsync.cs:604-606 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 3+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Generate/GenerateAbsoluteSeq.cs:54— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Generate/GenerateAbsoluteSeq.cs:54-56 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Generate/GenerateSeq.cs:48-50 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Generate/GenerateTimeSeq.cs:54-56 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (65 corresponding lines) · ×3
Edited copy of a member (65 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:267— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:267-341 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:247-311 — These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (65 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/MaxBy.cs:104— AsyncRx.NET/System.Reactive.Async/Linq/Operators/MaxBy.cs:104-168 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/MinBy.cs:104-168 — These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (65 corresponding lines) Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:13— Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:13-77 | Rx.NET/Samples/HOL/CS/Excercise9/Step04/Program.cs:13-86 — These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (51 corresponding lines) · ×3
Edited copy of a member (51 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:139— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:139-189 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:199-256 — These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (51 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Do.cs:213— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Do.cs:213-263 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Do.cs:335-385 — These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (51 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/DoWhile.cs:29— AsyncRx.NET/System.Reactive.Async/Linq/Operators/DoWhile.cs:29-87 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/While.cs:32-82 — These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (21 corresponding lines) · ×3
Edited copy of a member (21 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:37— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:37-57 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:80-106 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Rx.NET/Source/src/System.Reactive/Concurrency/DefaultScheduler.cs:61— Rx.NET/Source/src/System.Reactive/Concurrency/DefaultScheduler.cs:61-81 | Rx.NET/Source/src/System.Reactive/Concurrency/ThreadPoolScheduler.cs:63-84 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Rx.NET/Samples/HOL/CS/Excercise5/Step04/Program.cs:11— Rx.NET/Samples/HOL/CS/Excercise5/Step04/Program.cs:11-35 | Rx.NET/Samples/HOL/CS/Excercise5/Step05/Program.cs:11-31 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (23 corresponding lines) · ×3
Edited copy of a member (23 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:90— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:90-112 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:154-176 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (23 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:168— Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:168-190 | Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:193-218 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (23 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ElementAt.cs:28— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ElementAt.cs:28-56 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ElementAtOrDefault.cs:26-48 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (29 corresponding lines) · ×3
Edited copy of a member (29 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Case.cs:18— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Case.cs:18-46 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Case.cs:53-81 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:12— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:12-40 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:43-71 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Select.cs:125— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Select.cs:125-153 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Select.cs:156-184 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 17+ corresponding lines) · ×3
Edited copies of one member (3 members, 17+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:186— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:186-202 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:499-515 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:519-537 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 17+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:205— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:205-221 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:541-557 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:561-579 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 17+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Subjects/BehaviorAsyncSubject.cs:58— AsyncRx.NET/System.Reactive.Async/Subjects/BehaviorAsyncSubject.cs:58-75 | AsyncRx.NET/System.Reactive.Async/Subjects/BehaviorAsyncSubject.cs:80-100 | AsyncRx.NET/System.Reactive.Async/Subjects/BehaviorAsyncSubject.cs:105-121 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (10 corresponding lines) · ×3
Edited copy of a member (10 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:305— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:305-314 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:216-225 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:271— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:271-280 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:204-213 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Rx.NET/Source/src/System.Reactive/Subjects/BehaviorSubject.cs:318— Rx.NET/Source/src/System.Reactive/Subjects/BehaviorSubject.cs:318-327 | Rx.NET/Source/src/System.Reactive/Subjects/ReplaySubject.cs:451-462 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (8 corresponding lines) · ×3
Edited copy of a member (8 corresponding lines) Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.cs:17— Ix.NET/Source/System.Interactive.Async.Providers/System/Linq/AsyncQueryableEx.cs:17-24 | Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncQueryable.cs:38-45 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) AsyncRx.NET/System.Reactive.Async/AsyncObservableExtensions.cs:13— AsyncRx.NET/System.Reactive.Async/AsyncObservableExtensions.cs:13-20 | AsyncRx.NET/System.Reactive.Async/Linq/AsyncObserver.cs:12-21 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/A.cs:23— AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/A.cs:23-30 | AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/E.cs:23-30 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (31 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SingleAsync.cs:102— Rx.NET/Source/src/System.Reactive/Linq/Observable/SingleAsync.cs:102-132 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SingleOrDefaultAsync.cs:88-118 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (31 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:105— Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:105-135 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:188-218 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `TFirst` in one and `TSecond` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (31 lines × 2) Rx.NET/Samples/Portable/Net40ConsoleApp_NuGet/Program.cs:14— Rx.NET/Samples/Portable/Net40ConsoleApp_NuGet/Program.cs:14-44 | Rx.NET/Samples/Portable/Net40ConsoleApplication/Program.cs:14-44 — `Rx.NET/Samples/Portable/Net40ConsoleApp_NuGet/Program.cs` and `Rx.NET/Samples/Portable/Net40ConsoleApplication/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 31 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (30 lines × 2) Ix.NET/Source/FasterLinq/Program.cs:98— Ix.NET/Source/FasterLinq/Program.cs:98-127 | Ix.NET/Source/FasterLinq/Program.cs:148-177 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/FasterLinq/Program.cs:98` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (30 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:70— Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:70-99 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:115-144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:70` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:145` calls `recurse` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:100` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (30 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:148— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:148-177 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Lookup.cs:461-490 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (28 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:98— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:98-125 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:68-95 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:98` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:97` calls `OnNextAsync`, `ConfigureAwait` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:126` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (28 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:145— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:145-172 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:106-133 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:145` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Scan.cs:135` calls `OnNextAsync`, `ConfigureAwait` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:173` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (28 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Single.cs:54— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Single.cs:54-81 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SingleOrDefault.cs:54-81 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Single.cs:54` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Using.cs:16— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Using.cs:16-40 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Using.cs:85-109 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Using.cs:16` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:41— AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:41-65 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:69-93 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) Ix.NET/Source/Playground/Program.cs:82— Ix.NET/Source/Playground/Program.cs:82-106 | Ix.NET/Source/Playground/Program.cs:112-136 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/Playground/Program.cs:82` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (21 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Catch.cs:16— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Catch.cs:16-36 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Catch.cs:41-61 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:139— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:139-159 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:142-162 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21 lines × 2) Ix.NET/Source/System.Interactive.Providers/System/Linq/QueryableEx.cs:130— Ix.NET/Source/System.Interactive.Providers/System/Linq/QueryableEx.cs:130-150 | Rx.NET/Source/src/System.Reactive/ObservableQuery.cs:468-488 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Interactive.Providers/System/Linq/QueryableEx.cs:130` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (12 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:230— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:230-241 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:312-323 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:232-243 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:314-325 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:230` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:333— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:333-344 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:561-572 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:141-152 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:191-202 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:333` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:345` calls `OnNextAsync`, `ConfigureAwait` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:153` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 4) AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAwaitable.cs:65— AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAwaitable.cs:65-76 | AsyncRx.NET/System.Reactive.Async/Threading/Tasks/TaskAwaitable.cs:137-148 | AsyncRx.NET/System.Reactive.Async/Threading/Tasks/ValueTaskAwaitable.cs:65-76 | AsyncRx.NET/System.Reactive.Async/Threading/Tasks/ValueTaskAwaitable.cs:137-148 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:91— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:91-101 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:108-118 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:219-229 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:236-246 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:91` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:33— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:33-43 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:50-60 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:177-187 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:194-204 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:33` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:240— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:240-250 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:301-311 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:363-373 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:428-438 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:240` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 11) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:305— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:305-312 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:378-385 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:459-466 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:548-556 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:645-653 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:749-757 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:861-869 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:980-988 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1106-1114 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1240-1248 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1381-1389 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:305` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:386` calls `Peek` and `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:314` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 11) Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:56— Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerablePartition.cs:56-63 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs:105-112 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Concat.cs:139-146 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/DefaultIfEmpty.cs:65-72 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:211-218 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:382-389 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:441-448 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:219-226 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:285-292 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:347-354 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:412-419 — there are 11 copies across 6 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 11 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 11) Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:25— Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:25-32 | Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:25-32 | Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs:26-33 | Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:26-33 | Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:26-33 | Rx.NET/Samples/HOL/CS/Excercise8/Step09/Program.cs:27-34 | Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:28-36 | Rx.NET/Samples/HOL/CS/Excercise8/Step11/Program.cs:28-36 | Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:32-41 | Rx.NET/Samples/HOL/CS/Excercise9/Step02/Program.cs:34-43 | Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:45-54 — `Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:25` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:35` calls `matchInWordNetByPrefix` and `Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:34` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication· Edited copy of a member (5 corresponding lines) · ×3
Edited copy of a member (5 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest9Seq.cs:65— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest9Seq.cs:65-69 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip9Seq.cs:67-71 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest8Seq.cs:61— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest8Seq.cs:61-65 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip8Seq.cs:63-67 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest7Seq.cs:57— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest7Seq.cs:57-61 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip7Seq.cs:59-63 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Stateful shared instance: PriorityQueue Rx.NET/Source/src/System.Reactive/Internal/PriorityQueue.cs:9— `PriorityQueue` is not registered, but `LocalScheduler` creates it and keeps it in the static `LongTerm`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_items, _size, _count; e.g. `_items` at line 98).
Stateful shared instance: CompositeEnumerator Rx.NET/Source/src/System.Reactive/Disposables/CompositeDisposable.cs:524— `CompositeEnumerator` is not registered, but `CompositeDisposable` creates it and keeps it in the static `EmptyEnumerator`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_index; e.g. `_index` at line 555).
AsyncObserver.Generate (cognitive 21) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:347— AsyncObserver.Generate has cognitive complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 362). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This shape REPEATS in the file: one other method here (AsyncObserver.Generate) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncObserver.Generate (cognitive 21) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:477— AsyncObserver.Generate has cognitive complexity 21 (threshold 15). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 492). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This shape REPEATS in the file: one other method here (AsyncObserver.Generate) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D4 · Code Duplication· Edited copy of a member (52 corresponding lines) · ×2
Edited copy of a member (52 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:599— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:599-651 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:757-808 — These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (52 corresponding lines) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:194— Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:194-251 | Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:164-215 — These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (9 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (9 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:471— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:471-562 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:51-275 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:162-250 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:264-387 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:550-666 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:746-892 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1204-1342 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:111-179 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:182-236 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
Members sharing a duplicated core (9 members, 50+ identical tokens) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1592— Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1592-1612 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1620-1640 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1648-1668 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1676-1696 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1704-1724 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1732-1752 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1760-1780 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1788-1808 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1816-1836 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (7 members, 50+ identical tokens) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:320— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:320-368 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:386-493 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:511-582 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:660-753 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:121-167 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:88-158 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:171-217 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
Members sharing a duplicated core (7 members, 50+ identical tokens) Rx.NET/Samples/HOL/CS/Excercise2/Start/Program.cs:10— Rx.NET/Samples/HOL/CS/Excercise2/Start/Program.cs:10-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step03/Program.cs:10-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step04/Program.cs:10-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step05/Program.cs:10-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step06/Program.cs:10-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step07/Program.cs:10-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step08/Program.cs:10-23 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication· Edited copy of a member (53 corresponding lines) · ×2
Edited copy of a member (53 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:120— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:120-172 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:403-459 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (53 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/DistinctUntilChanged.cs:131— AsyncRx.NET/System.Reactive.Async/Linq/Operators/DistinctUntilChanged.cs:131-183 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/DistinctUntilChanged.cs:186-238 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 53+ corresponding lines) · ×2
Edited copies of one member (4 members, 53+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:10— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:10-62 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:65-117 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:285-341 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:344-400 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 53 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Edited copies of one member (4 members, 53+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:175— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:175-227 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:230-282 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:462-518 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Average.cs:521-577 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 53 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (45 corresponding lines) · ×2
Edited copy of a member (45 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:216— Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:216-260 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:325-369 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (45 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/MaxBy.cs:42— Rx.NET/Source/src/System.Reactive/Linq/Observable/MaxBy.cs:42-86 | Rx.NET/Source/src/System.Reactive/Linq/Observable/MinBy.cs:42-86 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (31 corresponding lines) · ×2
Edited copy of a member (31 corresponding lines) Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:33— Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:33-63 | Rx.NET/Source/src/System.Reactive/Threading/Tasks/TaskObservableExtensions.cs:80-110 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (31 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/RepeatWhenAsyncObservable.cs:25— AsyncRx.NET/System.Reactive.Async/Linq/RepeatWhenAsyncObservable.cs:25-55 | AsyncRx.NET/System.Reactive.Async/Linq/RetryWhenAsyncObservable.cs:24-54 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (44 corresponding lines) · ×2
Edited copy of a member (44 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Using.cs:15— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Using.cs:15-58 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Using.cs:84-135 — These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (44 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:245— Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:245-296 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:437-480 — These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (28 corresponding lines) · ×2
Edited copy of a member (28 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:472— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:472-499 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:578-608 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (28 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:265— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:265-292 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:267-294 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 40+ corresponding lines) · ×2
Edited copies of one member (3 members, 40+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:152— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:152-191 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:194-233 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:320-359 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 40+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:152— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:152-191 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:194-233 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:320-359 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 27+ corresponding lines) · ×2
Edited copies of one member (4 members, 27+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:137— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:137-168 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:174-200 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:138-169 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:175-202 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Edited copies of one member (4 members, 27+ corresponding lines) Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:12— Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:12-38 | Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:12-42 | Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs:13-47 | Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:13-47 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 20+ corresponding lines) · ×2
Edited copies of one member (3 members, 20+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:64— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:64-83 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:86-105 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:132-151 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 20+ corresponding lines) Ix.NET/Source/FasterLinq/Program.cs:599— Ix.NET/Source/FasterLinq/Program.cs:599-618 | Ix.NET/Source/FasterLinq/Program.cs:707-726 | Ix.NET/Source/FasterLinq/Program.cs:746-773 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (30 corresponding lines) · ×2
Edited copy of a member (30 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Count.cs:49— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Count.cs:49-78 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/LongCount.cs:49-78 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (30 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeUntil.cs:234— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeUntil.cs:234-267 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Where.cs:99-128 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 22+ corresponding lines) · ×2
Edited copies of one member (3 members, 22+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:108— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:108-129 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:154-175 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs:99-120 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 22+ corresponding lines) Rx.NET/Source/src/System.Reactive/Subjects/BehaviorSubject.cs:134— Rx.NET/Source/src/System.Reactive/Subjects/BehaviorSubject.cs:134-156 | Rx.NET/Source/src/System.Reactive/Subjects/BehaviorSubject.cs:164-192 | Rx.NET/Source/src/System.Reactive/Subjects/BehaviorSubject.cs:199-220 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (14 corresponding lines) · ×2
Edited copy of a member (14 corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:67— Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:67-80 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:180-196 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) AsyncRx.NET/Playground/Program.cs:155— AsyncRx.NET/Playground/Program.cs:155-168 | AsyncRx.NET/Playground/Program.cs:226-239 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (19 corresponding lines) · ×2
Edited copy of a member (19 corresponding lines) Rx.NET/Source/src/System.Reactive/Concurrency/HistoricalScheduler.cs:139— Rx.NET/Source/src/System.Reactive/Concurrency/HistoricalScheduler.cs:139-157 | Rx.NET/Source/src/System.Reactive/Concurrency/VirtualTimeScheduler.cs:423-449 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Skip.cs:24— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Skip.cs:24-49 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Take.cs:25-43 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (16 corresponding lines) · ×2
Edited copy of a member (16 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:16— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:16-31 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:49-66 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:388— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:388-403 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:436-453 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 19+ corresponding lines) · ×2
Edited copies of one member (4 members, 19+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Range.cs:36— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Range.cs:36-63 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Return.cs:31-51 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timer.cs:80-99 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timer.cs:104-122 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Edited copies of one member (4 members, 19+ corresponding lines) Ix.NET/Source/FasterLinq/Program.cs:920— Ix.NET/Source/FasterLinq/Program.cs:920-938 | Ix.NET/Source/FasterLinq/Program.cs:958-976 | Ix.NET/Source/FasterLinq/Program.cs:996-1019 | Ix.NET/Source/FasterLinq/Program.cs:1039-1062 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 18+ corresponding lines) · ×2
Edited copies of one member (3 members, 18+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:44— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:44-61 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:178-196 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:201-218 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 18+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Any.cs:49— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Any.cs:49-66 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/First.cs:53-78 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/FirstOrDefault.cs:53-70 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 24+ corresponding lines) · ×2
Edited copies of one member (3 members, 24+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:362— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:362-385 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:388-411 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:466-489 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 24+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:362— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:362-385 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:388-411 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:466-489 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 9+ corresponding lines) · ×2
Edited copies of one member (3 members, 9+ corresponding lines) Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs:204— Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs:204-213 | Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs:233-241 | Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs:261-269 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 9+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs:275— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs:275-283 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs:467-475 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:218-227 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 19+ corresponding lines) · ×2
Edited copies of one member (3 members, 19+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1049— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1049-1067 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1123-1141 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:1198-1216 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 19+ corresponding lines) Rx.NET/Samples/HOL/CS/Excercise5/Step03/Program.cs:11— Rx.NET/Samples/HOL/CS/Excercise5/Step03/Program.cs:11-29 | Rx.NET/Samples/HOL/CS/Excercise6/Start/Program.cs:11-29 | Rx.NET/Samples/HOL/CS/Excercise8/Step02/Program.cs:11-30 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 6+ corresponding lines) · ×2
Edited copies of one member (4 members, 6+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/First.cs:118— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/First.cs:118-123 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/FirstOrDefault.cs:114-119 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Last.cs:116-121 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/LastOrDefault.cs:114-119 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Edited copies of one member (4 members, 6+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/First.cs:98— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/First.cs:98-103 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/FirstOrDefault.cs:94-99 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Last.cs:96-101 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/LastOrDefault.cs:94-99 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 14+ corresponding lines) · ×2
Edited copies of one member (3 members, 14+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:307— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:307-320 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:548-561 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:667-680 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 14+ corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/Range.cs:56— Rx.NET/Source/src/System.Reactive/Linq/Observable/Range.cs:56-72 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:83-96 | Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs:199-213 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Duplicated block (37 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:288— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:288-324 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:258-294 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:288` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (37 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:224— Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:224-260 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:333-369 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/Generate.cs:224` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (32 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/MaxBy.cs:43— Rx.NET/Source/src/System.Reactive/Linq/Observable/MaxBy.cs:43-74 | Rx.NET/Source/src/System.Reactive/Linq/Observable/MinBy.cs:43-74 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/MaxBy.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/MinBy.cs` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (32 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs:319— Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs:319-350 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Window.cs:181-212 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs:319` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (33 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:94— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:94-126 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:90-122 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:94` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (33 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:435— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:435-467 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:428-460 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (21–24 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:39— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:39-62 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:139-159 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21–24 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:65— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:65-88 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:162-182 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 3) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:879— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:879-895 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:968-984 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1058-1074 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:879` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 3) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1146— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1146-1162 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1233-1249 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1321-1337 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1146` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:103— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:103-115 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:122-134 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:247-259 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:266-278 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:103` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 4) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:172— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:172-185 | Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/WindowsRuntimeThreadPoolScheduler.cs:106-118 | Rx.NET/Source/src/System.Reactive/Concurrency/TaskPoolScheduler.cs:227-240 | Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs:162-175 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (14 lines × 3) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:219— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:219-232 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:129-142 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:223-236 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:219` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (14 lines × 3) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:456— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:456-469 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:592-605 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:731-744 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 3) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1060— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1060-1074 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1191-1205 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1329-1343 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 3) Ix.NET/Source/ApiCompare/Program.cs:77— Ix.NET/Source/ApiCompare/Program.cs:77-91 | Ix.NET/Source/ApiCompare/Program.cs:116-130 | Ix.NET/Source/ApiCompare/Program.cs:182-196 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:82— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:82-92 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:210-220 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:251-261 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:82` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 3) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Scan.cs:37— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Scan.cs:37-47 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Scan.cs:108-118 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Scan.cs:147-157 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Scan.cs:37` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 3) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/DistinctUntilChanged.cs:208— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/DistinctUntilChanged.cs:208-215 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/DistinctUntilChanged.cs:247-254 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/DistinctUntilChanged.cs:287-294 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Expand.cs:31— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Expand.cs:31-38 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Expand.cs:65-72 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Expand.cs:100-107 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Expand.cs:31` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 9) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:470— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:470-477 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:561-568 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:659-666 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:764-771 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:877-884 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:997-1004 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1124-1131 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1259-1266 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1401-1408 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:470` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 9) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:417— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:417-424 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:502-509 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:595-602 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:695-702 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:802-809 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:917-924 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1039-1046 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1168-1175 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1305-1312 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 10) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:388— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:388-393 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:470-475 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:561-566 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:659-664 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:764-769 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:877-882 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:997-1002 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1124-1129 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1259-1264 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1401-1406 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:388` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 10) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1077— Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1077-1082 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1106-1111 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1135-1140 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1164-1169 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1193-1198 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1222-1227 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1251-1256 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1280-1285 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1309-1314 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1338-1343 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1077` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 9) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:452— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:452-458 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:540-546 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:636-642 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:739-745 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:850-856 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:968-974 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1093-1099 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1226-1232 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1366-1372 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:452` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 9) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:492— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:492-498 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:78-84 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:174-180 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:280-286 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:566-572 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:764-770 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1218-1224 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:121-127 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:190-196 — there are 9 copies across 5 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Merge.cs:172` calls `CompositeAsyncDisposable` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/WithLatestFrom.cs:119` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:40— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:40-44 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:76-80 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:114-118 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:140-144 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Zip.cs:40` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:112— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:112-116 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:154-158 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:130-134 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:188-192 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupJoin.cs:112` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `innerKeySelector` to `Func<TInner, ValueTask<TKey>>` in one and `Func<TInner, CancellationToken, ValueTask<TKey>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 3) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:576— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:576-581 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:667-672 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:759-764 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `elementSelector` to `Func<TSource, TElement>` in one and `Func<TSource, ValueTask<TElement>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 3) Rx.NET/Samples/HOL/CS/Excercise7/Step05/Program.cs:13— Rx.NET/Samples/HOL/CS/Excercise7/Step05/Program.cs:13-18 | Rx.NET/Samples/HOL/CS/Excercise7/Step06/Program.cs:13-18 | Rx.NET/Samples/HOL/CS/Excercise7/Step07/Program.cs:13-18 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (9 lines × 5) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Distinct.cs:230— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Distinct.cs:230-238 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Distinct.cs:375-383 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Distinct.cs:521-529 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Distinct.cs:98-106 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Union.cs:73-81 — there are 5 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 5) Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:28— Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:28-36 | Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs:29-37 | Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:29-37 | Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:29-37 | Rx.NET/Samples/HOL/CS/Excercise8/Step09/Program.cs:30-38 — `Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 8) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:319— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:319-327 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:590-598 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:863-871 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:952-960 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1042-1050 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1130-1138 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1217-1225 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1305-1313 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 8) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:319— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:319-327 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:590-598 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:863-871 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:952-960 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1042-1050 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1130-1138 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1217-1225 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:1305-1313 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication· Edited copies of one member (7 members, 6+ corresponding lines) · ×2
Edited copies of one member (7 members, 6+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest10TupleSeq.cs:66— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest10TupleSeq.cs:66-71 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest11TupleSeq.cs:70-75 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest12TupleSeq.cs:74-79 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest13TupleSeq.cs:78-83 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest14TupleSeq.cs:84-89 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest15TupleSeq.cs:88-93 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/CombineLatest16TupleSeq.cs:93-98 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
Edited copies of one member (7 members, 6+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip10TupleSeq.cs:66— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip10TupleSeq.cs:66-71 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip11TupleSeq.cs:70-75 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip12TupleSeq.cs:74-79 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip13TupleSeq.cs:78-83 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip14TupleSeq.cs:82-87 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip15TupleSeq.cs:86-91 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip16TupleSeq.cs:93-98 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
Duplicated block (9–11 lines × 2) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:275— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:275-285 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/ISeqVisitor.Zip.cs:269-277 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:275` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (9–11 lines × 2) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:299— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:299-309 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/ISeqVisitor.Zip.cs:288-296 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/ISeqVisitor.CombineLatest.cs:299` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Fake-async — async method never awaits AsyncRx.NET/Playground/Program.cs:22— `Main` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
Fake-async — async method never awaits AsyncRx.NET/System.Reactive.Async/Disposables/RefCountAsyncDisposable.cs:24— `GetDisposableAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
Blocking `Thread.Sleep` inside an `async` method Rx.NET/Samples/EventCorrelationSample/EventCorrelationSample/Program.cs:123— `Thread.Sleep` parks the thread for the whole delay: no other work runs on it, and under load the pool must grow to make up for it. `await Task.Delay(…)` suspends only this method.
Blocking `Thread.Sleep` inside an `async` method Rx.NET/Samples/EventCorrelationSample/EventCorrelationSample/Program.cs:172— `Thread.Sleep` parks the thread for the whole delay: no other work runs on it, and under load the pool must grow to make up for it. `await Task.Delay(…)` suspends only this method.
Program.Generate (cyclomatic 73) Rx.NET/tools/HomoIcon/Program.cs:148— Program.Generate has cyclomatic complexity 73 (threshold 15). Of this number, 69 points are the body's own statements and 4 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: Rx.NET/tools/HomoIcon/Program.cs holds 3 of the 39 methods over the threshold — including the worst — and 105 of the 304 points over it (35%), 2.9× the next-largest file (/tmp/nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/EqualityAsserts.cs at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
Program.GenerateAsync (cyclomatic 43) Rx.NET/tools/HomoIcon/Program.cs:539— Program.GenerateAsync has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: Rx.NET/tools/HomoIcon/Program.cs holds 3 of the 39 methods over the threshold — including the worst — and 105 of the 304 points over it (35%), 2.9× the next-largest file (/tmp/nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/EqualityAsserts.cs at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
Program.ToString2 (cyclomatic 34) Rx.NET/tools/HomoIcon/Program.cs:831— Program.ToString2 has cyclomatic complexity 34 (threshold 15). Of this number, 33 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass's cyclomatic complexity CONCENTRATES: Rx.NET/tools/HomoIcon/Program.cs holds 3 of the 39 methods over the threshold — including the worst — and 105 of the 304 points over it (35%), 2.9× the next-largest file (/tmp/nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/EqualityAsserts.cs at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
Dummies.TryCreate (cyclomatic 31) AsyncRx.NET/Tests.System.Reactive.Shared/Harness/Dummies.cs:34— Dummies.TryCreate has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DescriptionBridge.ToReal (cyclomatic 30) AsyncRx.NET/Tests.System.Reactive.Shared/Harness/DescriptionBridge.cs:284— DescriptionBridge.ToReal has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
AsyncObserver.DelayCore (cyclomatic 25) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:208— AsyncObserver.DelayCore has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body's own statements and 9 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AsyncObserver.GroupByUntil (cyclomatic 25) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:571— AsyncObserver.GroupByUntil has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 646, 782). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncObserver.Join (cyclomatic 25) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:50— AsyncObserver.Join has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 88, 182, 119, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
UiFrameworkSpecificTypes.Check (cyclomatic 24) Rx.NET/Source/src/System.Reactive.Analyzers/Analyzers/UiFrameworkPackages/UiFrameworkSpecificTypes.cs:93— UiFrameworkSpecificTypes.Check has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AsyncObserver.ObserveOn (cyclomatic 20) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ObserveOn.cs:71— AsyncObserver.ObserveOn has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
AsyncObserver.GroupBy (cyclomatic 19) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:507— AsyncObserver.GroupBy has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body's own statements and 9 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
AsyncObservable.RefCount (cyclomatic 19) AsyncRx.NET/System.Reactive.Async/Linq/Operators/RefCount.cs:171— AsyncObservable.RefCount has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 191, 208, 231). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
TailRecursiveSink.Drain (cyclomatic 19) Rx.NET/Source/src/System.Reactive/Internal/TailRecursiveSink.cs:47— TailRecursiveSink.Drain has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AsyncEnumerableRewriter.ArgsMatch (cyclomatic 19) Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs:147— AsyncEnumerableRewriter.ArgsMatch has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Observable.CombineLatest (cyclomatic 18) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.CombineLatest.cs:1104— Observable.CombineLatest has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Observable.Zip (cyclomatic 18) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.Zip.cs:1090— Observable.Zip has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
AsyncObserver.SequenceEqual (cyclomatic 17) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:185— AsyncObserver.SequenceEqual has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 202, 268, 245, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncObserver.Window (cyclomatic 17) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:400— AsyncObserver.Window has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Observable.CombineLatest (cyclomatic 17) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.CombineLatest.cs:979— Observable.CombineLatest has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (ObservableEx.CombineLatest) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
ObservableEx.CombineLatest (cyclomatic 17) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.CombineLatest.cs:1867— ObservableEx.CombineLatest has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Observable.CombineLatest) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
Observable.Zip (cyclomatic 17) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.Zip.cs:966— Observable.Zip has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (ObservableEx.Zip) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
ObservableEx.Zip (cyclomatic 17) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.Zip.cs:1853— ObservableEx.Zip has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Observable.Zip) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
DeprecatedDuplicateBuilder.BuildDuplicatesIfRequired (cyclomatic 17) Ix.NET/Source/System.Linq.Async.SourceGenerator/DeprecatedDuplicateBuilder.cs:84— DeprecatedDuplicateBuilder.BuildDuplicatesIfRequired has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AsyncObserver.Amb (cyclomatic 16) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Amb.cs:92— AsyncObserver.Amb has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 108, 124, 140, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncObserver.GroupJoin (cyclomatic 16) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:49— AsyncObserver.GroupJoin has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ArgumentChecks.Check (cyclomatic 16) AsyncRx.NET/Tests.System.Reactive.Shared/Harness/ArgumentChecks.cs:85— ArgumentChecks.Check has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
EventLoopScheduler.Run (cyclomatic 16) Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs:289— EventLoopScheduler.Run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Observable.CombineLatest (cyclomatic 16) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.CombineLatest.cs:861— Observable.CombineLatest has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (ObservableEx.CombineLatest) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
ObservableEx.CombineLatest (cyclomatic 16) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.CombineLatest.cs:1794— ObservableEx.CombineLatest has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Observable.CombineLatest) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
Observable.Zip (cyclomatic 16) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.Zip.cs:849— Observable.Zip has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (ObservableEx.Zip) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
ObservableEx.Zip (cyclomatic 16) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.Zip.cs:1780— ObservableEx.Zip has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Observable.Zip) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
CoverageExclusion Ix.NET/Source/System.Linq.Async/System/Linq/Set.cs:13— class Set — this shipped code is lifted out of the coverage measurement, so it is not that the code is reported as untested: it is not reported at all. The excluded lines leave the denominator, which means the percentage the team publishes goes UP when code stops being covered, and the gap is invisible in the artefact that would otherwise disclose it. Nothing here is written by a compiler or a build — the attribute is only ever typed by an author — so it is a standing decision, and the only record of it is this line. Test what it covers and delete the attribute; where the code genuinely cannot be exercised (a debugger display, a platform branch this build cannot reach), narrow the exclusion to the smallest declaration that is really untestable rather than the type around it, so members added later are not silently excluded too. If it is correct as it stands, say why — in the attribute's own Justification, or in a comment above it: that is what turns it from unexplained debt into a recorded decision, and it clears this row.
HackComment Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.cs:18— // HACK: Causes race condition with Locks in DefaultScheduler's static ctor chain — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
Build failed — The target solution did not build cleanly (errors: 121), which caps Solution Shape at 3/10 — the most basic shape signal is that it compiles. First errors: CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.; CS9202: Feature 'unbound generic types in nameof operator' is not available in C# 12.0. Please use language version 14.0 or greater.; MSB3644: The reference assemblies for UAP,Version=v10.0.18362 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks; CS0234: The type or namespace name 'Reactive' does not exist in the namespace 'System' (are you missing an assembly reference?); CS0246: The type or namespace name 'Timestamped<>' could not be found (are you missing a using directive or an assembly reference?); MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Portable/$(TargetFrameworkVersion)/Microsoft.Portable.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets", is correct, and that the file exists on disk.; MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Silverlight/v4.0/Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Silverlight/$(SilverlightVersion)/Microsoft.Silverlight.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Silverlight/v4.0/Microsoft.Silverlight.CSharp.targets", is correct, and that the file exists on disk.; MSB3073: The command "mono --runtime=v4.0.30319 Rx.NET/Samples/Portable/.nuget/NuGet.exe install "packages.config" -source "" -RequireConsent -solutionDir "Rx.NET/Samples/Portable/"" exited with code 127.; MSB4019: The imported project "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets" was not found. Confirm that the expression in the Import declaration "$(MSBuildExtensionsPath32)/Microsoft/Portable/$(TargetFrameworkVersion)/Microsoft.Portable.CSharp.targets", which evaluated to "/usr/share/dotnet/sdk/10.0.400/Microsoft/Portable/v4.5/Microsoft.Portable.CSharp.targets", is correct, and that the file exists on disk.; CS0246: The type or namespace name 'CommonCodeInPcl' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'Subject<>' could not be found (are you missing a using directive or an assembly reference?); CS0234: The type or namespace name 'Kinect' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?).
Program.Generate (cognitive 141) Rx.NET/tools/HomoIcon/Program.cs:148— Program.Generate has cognitive complexity 141 (threshold 15). Of this number, 136 points are the body's own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Program.GenerateAsync (cognitive 112) Rx.NET/tools/HomoIcon/Program.cs:539— Program.GenerateAsync has cognitive complexity 112 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TailRecursiveSink.Drain (cognitive 69) Rx.NET/Source/src/System.Reactive/Internal/TailRecursiveSink.cs:47— TailRecursiveSink.Drain has cognitive complexity 69 (threshold 15). Of this number, 66 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Program.ToString2 (cognitive 62) Rx.NET/tools/HomoIcon/Program.cs:831— Program.ToString2 has cognitive complexity 62 (threshold 15). Of this number, 58 points are the body's own statements and 4 belong to one function item inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
UiFrameworkSpecificTypes.Check (cognitive 43) Rx.NET/Source/src/System.Reactive.Analyzers/Analyzers/UiFrameworkPackages/UiFrameworkSpecificTypes.cs:93— UiFrameworkSpecificTypes.Check has cognitive complexity 43 (threshold 15). Of this number, 41 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
ArgumentChecks.Check (cognitive 42) AsyncRx.NET/Tests.System.Reactive.Shared/Harness/ArgumentChecks.cs:85— ArgumentChecks.Check has cognitive complexity 42 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
UiFrameworkSpecificExtensionMethods.ReportDiagnosticIfAppropriate (cognitive 42) Rx.NET/Source/src/System.Reactive.Analyzers/Analyzers/UiFrameworkPackages/UiFrameworkSpecificExtensionMethods.cs:154— UiFrameworkSpecificExtensionMethods.ReportDiagnosticIfAppropriate has cognitive complexity 42 (threshold 15). Of this number, 30 points are the body's own statements and 12 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DeprecatedDuplicateBuilder.BuildDuplicatesIfRequired (cognitive 41) Ix.NET/Source/System.Linq.Async.SourceGenerator/DeprecatedDuplicateBuilder.cs:84— DeprecatedDuplicateBuilder.BuildDuplicatesIfRequired has cognitive complexity 41 (threshold 15). Of this number, 40 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncObserver.DelayCore (cognitive 40) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:208— AsyncObserver.DelayCore has cognitive complexity 40 (threshold 15). Of this number, 31 points are the body's own statements and 9 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncObserver.GroupByUntil (cognitive 38) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupByUntil.cs:571— AsyncObserver.GroupByUntil has cognitive complexity 38 (threshold 15). Most of this is not in the body itself: 11 of the 38 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 646, 782). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
EventLoopScheduler.Run (cognitive 35) Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs:289— EventLoopScheduler.Run has cognitive complexity 35 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConcatManyOuterObserver.Drain (cognitive 35) Rx.NET/Source/src/System.Reactive/Linq/Observable/ConcatMany.cs:123— ConcatManyOuterObserver.Drain has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Dummies.TryCreate (cognitive 34) AsyncRx.NET/Tests.System.Reactive.Shared/Harness/Dummies.cs:34— Dummies.TryCreate has cognitive complexity 34 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
QueryProviderShim.Redir (cognitive 32) Ix.NET/Source/System.Interactive.Providers/System/Linq/QueryableEx.cs:48— QueryProviderShim.Redir has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
MemoizedBuffer.GetEnumerator_ (cognitive 31) Ix.NET/Source/System.Interactive/System/Linq/Operators/Memoize.cs:170— MemoizedBuffer.GetEnumerator_ has cognitive complexity 31 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PublishedBuffer.GetEnumeratorCore (cognitive 31) Ix.NET/Source/System.Interactive/System/Linq/Operators/Publish.cs:119— PublishedBuffer.GetEnumeratorCore has cognitive complexity 31 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncObserver.Join (cognitive 30) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:50— AsyncObserver.Join has cognitive complexity 30 (threshold 15). Most of this is not in the body itself: 6 of the 30 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 88, 182, 162, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
S.DrainQueue (cognitive 30) Rx.NET/Source/src/System.Reactive/Linq/Observable/Delay.cs:152— S.DrainQueue has cognitive complexity 30 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
L.DrainQueue (cognitive 30) Rx.NET/Source/src/System.Reactive/Linq/Observable/Delay.cs:342— L.DrainQueue has cognitive complexity 30 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FastImmediateObserver.EnsureActive (cognitive 30) Rx.NET/Source/src/System.Reactive/Subjects/ReplaySubject.cs:774— FastImmediateObserver.EnsureActive has cognitive complexity 30 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ObserveOnObserverLongRunning.Drain (cognitive 29) Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:696— ObserveOnObserverLongRunning.Drain has cognitive complexity 29 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncEnumerableSorterBase.PartialQuickSort (cognitive 29) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:627— AsyncEnumerableSorterBase.PartialQuickSort has cognitive complexity 29 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncEnumerableSorterBase.QuickSelect (cognitive 29) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:692— AsyncEnumerableSorterBase.QuickSelect has cognitive complexity 29 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DescriptionBridge.ToReal (cognitive 28) AsyncRx.NET/Tests.System.Reactive.Shared/Harness/DescriptionBridge.cs:284— DescriptionBridge.ToReal has cognitive complexity 28 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TailRecursiveAsyncSink.DrainAsync (cognitive 26) AsyncRx.NET/System.Reactive.Async/Internal/TailRecursiveAsyncSink.cs:115— TailRecursiveAsyncSink.DrainAsync has cognitive complexity 26 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncEnumerableRewriter.ArgsMatch (cognitive 25) Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs:147— AsyncEnumerableRewriter.ArgsMatch has cognitive complexity 25 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncObserver.SequenceEqual (cognitive 24) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:185— AsyncObserver.SequenceEqual has cognitive complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 202, 268, 245, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
QueryLanguageEx.ForkJoin (cognitive 24) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguageEx.cs:237— QueryLanguageEx.ForkJoin has cognitive complexity 24 (threshold 15). None of this is in the body itself: all 24 points belong to 2 function literals inside it that branch (lines 249, 292). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncSubject.OnCompleted (cognitive 24) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:68— AsyncSubject.OnCompleted has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncEnumerableHelpers.ToArrayWithLength (cognitive 24) Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerableHelpers.cs:21— AsyncEnumerableHelpers.ToArrayWithLength has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
AsyncObserver.GroupBy (cognitive 23) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupBy.cs:507— AsyncObserver.GroupBy has cognitive complexity 23 (threshold 15). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 556, 622). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncObserver.ObserveOn (cognitive 23) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ObserveOn.cs:71— AsyncObserver.ObserveOn has cognitive complexity 23 (threshold 15). Of this number, 14 points are the body's own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
AsyncObservable.RefCount (cognitive 23) AsyncRx.NET/System.Reactive.Async/Linq/Operators/RefCount.cs:171— AsyncObservable.RefCount has cognitive complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 191, 208, 231). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
Program.RunDemos (cognitive 23) Ix.NET/Source/Playground/Program.cs:176— Program.RunDemos has cognitive complexity 23 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
AsyncObserver.Zip (cognitive 22) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:149— AsyncObserver.Zip has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 166, 222). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncEnumerable.MaxAsync (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:125— AsyncEnumerable.MaxAsync has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerableDeprecated.MaxAsync, AsyncEnumerable.MaxAwaitAsyncCore, AsyncEnumerableDeprecated.MaxAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerable.MaxAwaitAsyncCore (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:215— AsyncEnumerable.MaxAwaitAsyncCore has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MaxAsync, AsyncEnumerableDeprecated.MaxAsync, AsyncEnumerableDeprecated.MaxAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerable.MaxAwaitWithCancellationAsyncCore (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:297— AsyncEnumerable.MaxAwaitWithCancellationAsyncCore has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MaxAsync, AsyncEnumerableDeprecated.MaxAsync, AsyncEnumerable.MaxAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerable.MinAsync (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:126— AsyncEnumerable.MinAsync has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerableDeprecated.MinAsync, AsyncEnumerable.MinAwaitAsyncCore, AsyncEnumerableDeprecated.MinAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerable.MinAwaitAsyncCore (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:217— AsyncEnumerable.MinAwaitAsyncCore has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MinAsync, AsyncEnumerableDeprecated.MinAsync, AsyncEnumerableDeprecated.MinAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerable.MinAwaitWithCancellationAsyncCore (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:299— AsyncEnumerable.MinAwaitWithCancellationAsyncCore has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MinAsync, AsyncEnumerableDeprecated.MinAsync, AsyncEnumerable.MinAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerableDeprecated.MaxAsync (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:125— AsyncEnumerableDeprecated.MaxAsync has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MaxAsync, AsyncEnumerable.MaxAwaitAsyncCore, AsyncEnumerableDeprecated.MaxAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerableDeprecated.MaxAwaitAsyncCore (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:215— AsyncEnumerableDeprecated.MaxAwaitAsyncCore has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MaxAsync, AsyncEnumerableDeprecated.MaxAsync, AsyncEnumerable.MaxAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerableDeprecated.MaxAwaitWithCancellationAsyncCore (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:297— AsyncEnumerableDeprecated.MaxAwaitWithCancellationAsyncCore has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MaxAsync, AsyncEnumerableDeprecated.MaxAsync, AsyncEnumerable.MaxAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerableDeprecated.MinAsync (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:126— AsyncEnumerableDeprecated.MinAsync has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MinAsync, AsyncEnumerable.MinAwaitAsyncCore, AsyncEnumerableDeprecated.MinAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerableDeprecated.MinAwaitAsyncCore (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:217— AsyncEnumerableDeprecated.MinAwaitAsyncCore has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MinAsync, AsyncEnumerableDeprecated.MinAsync, AsyncEnumerable.MinAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerableDeprecated.MinAwaitWithCancellationAsyncCore (cognitive 22) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:299— AsyncEnumerableDeprecated.MinAwaitWithCancellationAsyncCore has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 5 other methods here (AsyncEnumerable.MinAsync, AsyncEnumerableDeprecated.MinAsync, AsyncEnumerable.MinAwaitAsyncCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
ScheduledAsyncObserverBase.RunAsync (cognitive 21) AsyncRx.NET/System.Reactive.Async/Internal/ScheduledAsyncObserverBase.cs:51— ScheduledAsyncObserverBase.RunAsync has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CompositeDisposable.Remove (cognitive 21) Rx.NET/Source/src/System.Reactive/Disposables/CompositeDisposable.cs:221— CompositeDisposable.Remove has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncEnumerable.MaxAsync (cognitive 21) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:36— AsyncEnumerable.MaxAsync has cognitive complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
AsyncEnumerable.MinAsync (cognitive 21) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:36— AsyncEnumerable.MinAsync has cognitive complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
AsyncEnumerable.Join (cognitive 20) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:53— AsyncEnumerable.Join has cognitive complexity 20 (threshold 15). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (AsyncEnumerable.JoinAwaitCore, AsyncEnumerableDeprecated.JoinAwaitCore, AsyncEnumerable.JoinAwaitWithCancellationCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerable.JoinAwaitCore (cognitive 20) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:111— AsyncEnumerable.JoinAwaitCore has cognitive complexity 20 (threshold 15). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (AsyncEnumerable.Join, AsyncEnumerableDeprecated.JoinAwaitCore, AsyncEnumerable.JoinAwaitWithCancellationCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerable.JoinAwaitWithCancellationCore (cognitive 20) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:169— AsyncEnumerable.JoinAwaitWithCancellationCore has cognitive complexity 20 (threshold 15). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (AsyncEnumerable.Join, AsyncEnumerable.JoinAwaitCore, AsyncEnumerableDeprecated.JoinAwaitCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerable.SequenceEqualAsync (cognitive 20) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SequenceEqual.cs:41— AsyncEnumerable.SequenceEqualAsync has cognitive complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Program.CompareAggregateOverloads (cognitive 20) Ix.NET/Source/ApiCompare/Program.cs:179— Program.CompareAggregateOverloads has cognitive complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
AsyncEnumerableDeprecated.JoinAwaitCore (cognitive 20) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:111— AsyncEnumerableDeprecated.JoinAwaitCore has cognitive complexity 20 (threshold 15). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (AsyncEnumerable.Join, AsyncEnumerable.JoinAwaitCore, AsyncEnumerable.JoinAwaitWithCancellationCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncEnumerableDeprecated.JoinAwaitWithCancellationCore (cognitive 20) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:169— AsyncEnumerableDeprecated.JoinAwaitWithCancellationCore has cognitive complexity 20 (threshold 15). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This shape REPEATS in the file: 4 other methods here (AsyncEnumerable.Join, AsyncEnumerable.JoinAwaitCore, AsyncEnumerableDeprecated.JoinAwaitCore, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
AsyncObservable.RefCount (cognitive 19) AsyncRx.NET/System.Reactive.Async/Linq/Operators/RefCount.cs:22— AsyncObservable.RefCount has cognitive complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 37, 71). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncObserver.Window (cognitive 19) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:400— AsyncObserver.Window has cognitive complexity 19 (threshold 15). Of this number, 11 points are the body's own statements and 8 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
ScheduledObserver.Dispatch (cognitive 19) Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:83— ScheduledObserver.Dispatch has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ObservableRewriter.VisitMethodCall (cognitive 19) Rx.NET/Source/src/System.Reactive/ObservableQuery.cs:193— ObservableRewriter.VisitMethodCall has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
AsyncObserver.CombineLatest (cognitive 18) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:96— AsyncObserver.CombineLatest has cognitive complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 116, 171). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
ImplSignatures.Match (cognitive 18) AsyncRx.NET/Tests.System.Reactive.Shared/Harness/ImplSignatures.cs:144— ImplSignatures.Match has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CombineLatestSink.Next (cognitive 18) Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:244— CombineLatestSink.Next has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RedoSerializedObserver.Drain (cognitive 18) Rx.NET/Source/src/System.Reactive/Linq/Observable/RetryWhen.cs:211— RedoSerializedObserver.Drain has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AsyncObserver.Buffer (cognitive 17) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:373— AsyncObserver.Buffer has cognitive complexity 17 (threshold 15). Of this number, 10 points are the body's own statements and 7 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
AsyncObservable.GetEventMethods (cognitive 17) AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:262— AsyncObservable.GetEventMethods has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
AsyncObserver.Generate (cognitive 17) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:231— AsyncObserver.Generate has cognitive complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 244). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
AsyncObserver.GroupJoin (cognitive 17) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:49— AsyncObserver.GroupJoin has cognitive complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 90, 181, 123). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncObserver.SelectMany (cognitive 17) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:1203— AsyncObserver.SelectMany has cognitive complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
CompositeDisposable.Add (cognitive 17) Rx.NET/Source/src/System.Reactive/Disposables/CompositeDisposable.cs:161— CompositeDisposable.Add has cognitive complexity 17 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
CompositeDisposable.CopyTo (cognitive 17) Rx.NET/Source/src/System.Reactive/Disposables/CompositeDisposable.cs:423— CompositeDisposable.CopyTo has cognitive complexity 17 (threshold 15). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ScheduledObserver.Run (cognitive 17) Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:205— ScheduledObserver.Run has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Observable.CombineLatest (cognitive 17) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.CombineLatest.cs:1104— Observable.CombineLatest has cognitive complexity 17 (threshold 15). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Observable.Zip (cognitive 17) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.Zip.cs:1090— Observable.Zip has cognitive complexity 17 (threshold 15). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
AsyncEnumerable.ElementAtOrDefaultAsync::Core (cognitive 17) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ElementAtOrDefault.cs:37— AsyncEnumerable.ElementAtOrDefaultAsync::Core has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TestAsyncScheduler.Pump (cognitive 16) AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs:350— TestAsyncScheduler.Pump has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Observable.CombineLatest (cognitive 16) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.CombineLatest.cs:979— Observable.CombineLatest has cognitive complexity 16 (threshold 15). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (ObservableEx.CombineLatest) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
ObservableEx.CombineLatest (cognitive 16) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.CombineLatest.cs:1867— ObservableEx.CombineLatest has cognitive complexity 16 (threshold 15). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Observable.CombineLatest) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
Observable.Zip (cognitive 16) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.Zip.cs:966— Observable.Zip has cognitive complexity 16 (threshold 15). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (ObservableEx.Zip) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
ObservableEx.Zip (cognitive 16) Rx.NET/Source/src/System.Reactive/Linq/Observable.Multiple.Zip.cs:1853— ObservableEx.Zip has cognitive complexity 16 (threshold 15). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (Observable.Zip) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
ForkJoinObservable.SubscribeCore (cognitive 16) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguageEx.cs:357— ForkJoinObservable.SubscribeCore has cognitive complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 404, 384). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
AsyncSubject.Subscribe (cognitive 16) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:193— AsyncSubject.Subscribe has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OnErrorResumeNextAsyncIterator.MoveNextCore (cognitive 16) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/OnErrorResumeNext.cs:99— OnErrorResumeNextAsyncIterator.MoveNextCore has cognitive complexity 16 (threshold 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
AsyncEnumerable.ElementAtAsync (cognitive 16) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ElementAt.cs:31— AsyncEnumerable.ElementAtAsync has cognitive complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function item inside it that branches (Core). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
AsyncEnumerableRewriter.FixupQuotedExpression (cognitive 16) Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs:309— AsyncEnumerableRewriter.FixupQuotedExpression has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
WhereFastIteratorWithTask.WaitForNextAsync (cognitive 16) Ix.NET/Source/FasterLinq/Program.cs:1528— WhereFastIteratorWithTask.WaitForNextAsync has cognitive complexity 16 (threshold 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ClassTooLong: Program Rx.NET/tools/HomoIcon/Program.cs— ClassTooLong — 610 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 210 over it, 1.53× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
Change coupling: IQueryLanguage.cs ↔ Observable.StandardSequenceOperators.cs Rx.NET/Source/src/System.Reactive/Linq/IQueryLanguage.cs:1— `Rx.NET/Source/src/System.Reactive/Linq/IQueryLanguage.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable.StandardSequenceOperators.cs` change together 90% of the time (9 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `0aa0a009` Modify OfType to accept nullable input element type (#2260); `7d8ee678` Change signature of Observable.DefaultIfEmpty to a IObservable<TSourc…; `62753954` Adding IScheduler overloads for ToObservable on Task. (at that commit the files were still `Rx.NET/Source/System.Reactive.Linq/Reactive/Linq/IQueryLanguage.cs` and `Rx.NET/Source/System.Reactive.Linq/Reactive/Linq/Observable.StandardSequenceOperators.cs`) — run `git show` on any of them.
D4 · Code Duplication· Near-duplicate member family (13 members, 25 shared lines) · ×1
Near-duplicate member family (13 members, 25 shared lines) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:201— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:201-238 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:256-296 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:314-358 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:376-423 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:441-491 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:509-562 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:580-636 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:654-714 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:732-796 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:815-882 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:901-975 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:993-1070 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1087-1168 — These 13 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times.
Near-duplicate member pair (93 shared lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:50— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:50-243 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:51-275 — These two members are variants of one another: 93 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Members sharing a duplicated core (15 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (15 members, 50+ identical tokens) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:21— Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:21-54 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:57-86 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:89-118 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:121-150 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:153-182 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:185-214 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:217-246 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:249-278 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:281-310 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:313-342 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:345-374 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:377-406 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:409-438 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:441-470 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:473-502 — These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
D4 · Code Duplication· Members sharing a duplicated core (13 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (13 members, 50+ identical tokens) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:177— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:177-205 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:234-266 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:299-335 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:371-411 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:451-496 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:539-589 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:635-689 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:738-796 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:849-911 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:967-1033 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1092-1162 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1225-1299 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1365-1443 — These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times.
D4 · Code Duplication· Members sharing a duplicated core (10 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (10 members, 50+ identical tokens) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1073— Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1073-1094 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1102-1123 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1131-1152 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1160-1181 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1189-1210 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1218-1239 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1247-1268 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1276-1297 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1305-1326 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1334-1355 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (6 members, 50+ identical tokens) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:228— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:228-259 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:310-341 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:347-374 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:230-261 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:312-343 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:349-374 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Edited copies of one member (3 members, 48+ corresponding lines) · ×1
Edited copies of one member (3 members, 48+ corresponding lines) Ix.NET/Source/FasterLinq/Program.cs:30— Ix.NET/Source/FasterLinq/Program.cs:30-77 | Ix.NET/Source/FasterLinq/Program.cs:80-127 | Ix.NET/Source/FasterLinq/Program.cs:130-177 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 48 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (70 corresponding lines) · ×1
Edited copy of a member (70 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:114— AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:114-183 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:164-245 — These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (60 corresponding lines) · ×1
Edited copy of a member (60 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:586— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:586-649 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:698-757 — These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 64+ corresponding lines) · ×1
Edited copies of one member (3 members, 64+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:232— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:232-295 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:348-425 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:478-552 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 64 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (63 corresponding lines) · ×1
Edited copy of a member (63 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:628— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:628-690 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:693-759 — These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (42 corresponding lines) · ×1
Edited copy of a member (42 corresponding lines) AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:178— AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:178-219 | AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs:227-270 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (35 corresponding lines) · ×1
Edited copy of a member (35 corresponding lines) AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs:102— AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs:102-145 | AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs:159-193 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (37 corresponding lines) · ×1
Edited copy of a member (37 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:115— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:115-151 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:179-215 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (34 corresponding lines) · ×1
Edited copy of a member (34 corresponding lines) AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:48— AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:48-86 | AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:26-59 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (38 corresponding lines) · ×1
Edited copy of a member (38 corresponding lines) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:254— Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:254-291 | Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:218-255 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 45+ corresponding lines) · ×1
Edited copies of one member (4 members, 45+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:97— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:97-141 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:144-188 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:89-149 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:89-149 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 45 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 37+ corresponding lines) · ×1
Edited copies of one member (3 members, 37+ corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:225— Rx.NET/Source/src/System.Reactive/Linq/Observable/GroupJoin.cs:225-261 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:93-142 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Join.cs:219-266 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 52+ corresponding lines) · ×1
Edited copies of one member (4 members, 52+ corresponding lines) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:374— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:374-425 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:461-516 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1328-1379 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1411-1462 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 52 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (48 corresponding lines) · ×1
Edited copy of a member (48 corresponding lines) AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:109— AsyncRx.NET/System.Reactive.Async/Subjects/AsyncAsyncSubject.cs:109-164 | AsyncRx.NET/System.Reactive.Async/Subjects/SimpleAsyncSubject.cs:96-143 — These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (43 corresponding lines) · ×1
Edited copy of a member (43 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:211— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:211-253 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Aggregate.cs:256-298 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 31+ corresponding lines) · ×1
Edited copies of one member (3 members, 31+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Subjects/ReplayAsyncSubject.cs:140— AsyncRx.NET/System.Reactive.Async/Subjects/ReplayAsyncSubject.cs:140-171 | AsyncRx.NET/System.Reactive.Async/Subjects/ReplayAsyncSubject.cs:174-206 | AsyncRx.NET/System.Reactive.Async/Subjects/ReplayAsyncSubject.cs:209-239 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 40+ corresponding lines) · ×1
Edited copies of one member (4 members, 40+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:236— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:236-275 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:278-317 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:236-275 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:278-317 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 35+ corresponding lines) · ×1
Edited copies of one member (4 members, 35+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/All.cs:41— AsyncRx.NET/System.Reactive.Async/Linq/Operators/All.cs:41-75 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/All.cs:78-112 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Any.cs:69-103 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Any.cs:106-140 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (39 corresponding lines) · ×1
Edited copy of a member (39 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLastBuffer.cs:57— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLastBuffer.cs:57-95 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLastBuffer.cs:100-147 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 21+ corresponding lines) · ×1
Edited copies of one member (4 members, 21+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:129— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:129-149 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:164-184 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:208-234 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SkipWhile.cs:249-275 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (5 members, 24+ corresponding lines) · ×1
Edited copies of one member (5 members, 24+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Amb.cs:16— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Amb.cs:16-46 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:16-42 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:15-45 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sample.cs:15-38 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:15-40 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 25+ corresponding lines) · ×1
Edited copies of one member (4 members, 25+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:136— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:136-160 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Single.cs:175-199 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleOrDefault.cs:137-161 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SingleOrDefault.cs:176-200 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 34+ corresponding lines) · ×1
Edited copies of one member (4 members, 34+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:67— AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:67-100 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:103-136 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:139-174 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeWhile.cs:177-212 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 24+ corresponding lines) · ×1
Edited copies of one member (4 members, 24+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:414— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:414-437 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:440-463 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:414-437 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:440-463 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 32+ corresponding lines) · ×1
Edited copies of one member (3 members, 32+ corresponding lines) Ix.NET/Source/FasterLinq/Program.cs:1249— Ix.NET/Source/FasterLinq/Program.cs:1249-1280 | Ix.NET/Source/FasterLinq/Program.cs:1407-1443 | Ix.NET/Source/FasterLinq/Program.cs:1529-1568 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 33+ corresponding lines) · ×1
Edited copies of one member (4 members, 33+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipWhile.cs:67— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipWhile.cs:67-99 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipWhile.cs:102-134 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipWhile.cs:137-170 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipWhile.cs:173-206 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (33 corresponding lines) · ×1
Edited copy of a member (33 corresponding lines) Rx.NET/Source/src/System.Reactive/Disposables/RefCountDisposable.cs:96— Rx.NET/Source/src/System.Reactive/Disposables/RefCountDisposable.cs:96-130 | Rx.NET/Source/src/System.Reactive/Disposables/RefCountDisposable.cs:133-165 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 28+ corresponding lines) · ×1
Edited copies of one member (3 members, 28+ corresponding lines) Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:122— Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:122-156 | Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:61-88 | Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:96-130 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 25+ corresponding lines) · ×1
Edited copies of one member (3 members, 25+ corresponding lines) Ix.NET/Source/FasterLinq/Program.cs:1074— Ix.NET/Source/FasterLinq/Program.cs:1074-1102 | Ix.NET/Source/FasterLinq/Program.cs:1105-1133 | Ix.NET/Source/FasterLinq/Program.cs:1138-1162 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (95 corresponding lines) · ×1
Edited copy of a member (95 corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:97— AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:97-191 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:150-254 — These two members are one piece of code written twice and then edited apart: 95 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 14+ corresponding lines) · ×1
Edited copies of one member (4 members, 14+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:298— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:298-311 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:314-329 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:428-441 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Generate.cs:444-459 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (9 corresponding lines) · ×1
Edited copy of a member (9 corresponding lines) AsyncRx.NET/Playground/Program.cs:131— AsyncRx.NET/Playground/Program.cs:131-141 | AsyncRx.NET/Playground/Program.cs:144-152 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 13+ corresponding lines) · ×1
Edited copies of one member (3 members, 13+ corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:786— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:786-798 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:812-824 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/OrderedAsyncEnumerable.cs:841-853 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 13+ corresponding lines) · ×1
Edited copies of one member (4 members, 13+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:30— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:30-42 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:58-70 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:73-85 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Window.cs:105-117 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 21+ corresponding lines) · ×1
Edited copies of one member (3 members, 21+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/LastOrDefault.cs:55— AsyncRx.NET/System.Reactive.Async/Linq/Operators/LastOrDefault.cs:55-77 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:112-132 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Sum.cs:135-155 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 16+ corresponding lines) · ×1
Edited copies of one member (3 members, 16+ corresponding lines) Ix.NET/Source/FasterLinq/Program.cs:785— Ix.NET/Source/FasterLinq/Program.cs:785-803 | Ix.NET/Source/FasterLinq/Program.cs:806-824 | Ix.NET/Source/FasterLinq/Program.cs:829-844 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (12 corresponding lines) · ×1
Edited copy of a member (12 corresponding lines) AsyncRx.NET/System.Reactive.Async/AsyncObservableExtensions.cs:95— AsyncRx.NET/System.Reactive.Async/AsyncObservableExtensions.cs:95-106 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Do.cs:442-453 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 6+ corresponding lines) · ×1
Edited copies of one member (3 members, 6+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToArray.cs:23— AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToArray.cs:23-28 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToHashSet.cs:44-51 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/ToList.cs:23-28 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 12+ corresponding lines) · ×1
Edited copies of one member (3 members, 12+ corresponding lines) AsyncRx.NET/System.Reactive.Async/AsyncObservableExtensions.cs:95— AsyncRx.NET/System.Reactive.Async/AsyncObservableExtensions.cs:95-106 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Do.cs:442-453 | AsyncRx.NET/Tests.System.Reactive.Shared/Harness/ObserverRef.Create.cs:29-44 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (74 corresponding lines) · ×1
Edited copy of a member (74 corresponding lines) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:37— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:37-110 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:37-111 — These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 7+ corresponding lines) · ×1
Edited copies of one member (3 members, 7+ corresponding lines) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Catch.cs:100— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Catch.cs:100-106 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Concat.cs:67-73 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/OnErrorResumeNext.cs:49-55 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Duplicated block (66 lines × 2) Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs:86— Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs:86-151 | Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Concurrency/ControlScheduler.cs:80-145 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Concurrency/ControlScheduler.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (65 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:201— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:201-265 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:267-331 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/SequenceEqual.cs:201` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (52 lines × 2) Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs:165— Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs:165-216 | Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Concurrency/ControlScheduler.cs:159-210 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.Windows.Forms/ControlScheduler.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Concurrency/ControlScheduler.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (48 lines × 2) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:91— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs:91-138 | Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs:81-128 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Concurrency/CoreDispatcherScheduler.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Concurrency/CoreDispatcherScheduler.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32–48 lines × 9) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:460— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:460-491 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:529-562 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:601-636 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:677-714 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:757-796 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:841-882 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:932-975 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1025-1070 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1121-1168 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:460` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (46 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1334— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1334-1379 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1417-1462 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1334` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (44 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/MaxBy.cs:105— AsyncRx.NET/System.Reactive.Async/Linq/Operators/MaxBy.cs:105-148 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/MinBy.cs:105-148 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/MaxBy.cs:105` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (47 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:121— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:121-167 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:171-217 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (38–47 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Take.cs:149— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Take.cs:149-195 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:485-522 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:485` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (44 lines × 3) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:521— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:521-564 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:659-702 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/SelectMany.cs:798-841 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (44–45 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:607— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:607-651 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:765-808 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:607` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (43 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguageEx.cs:249— Rx.NET/Source/src/System.Reactive/Linq/QueryLanguageEx.cs:249-291 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguageEx.cs:292-334 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/QueryLanguageEx.cs:292` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (42 lines × 2) Ix.NET/Source/ApiCompare/Program.cs:116— Ix.NET/Source/ApiCompare/Program.cs:116-157 | Ix.NET/Source/ApiCompare/Program.cs:182-223 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (40 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:136— AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:136-175 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Zip.cs:187-226 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/CombineLatest.cs:136` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (41 lines × 2) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:53— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:53-93 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:61-101 — before extracting anything, compare `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:53` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (39 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:177— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:177-215 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:178-216 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:177` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (34 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:116— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:116-149 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:116-149 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:116` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (33–34 lines × 2) Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:263— Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:263-296 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs:448-480 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:263` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (29 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:117— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:117-145 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:211-239 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:117` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (21–29 lines × 3) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:122— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:122-142 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:88-116 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs:172-192 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipUntil.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Skip.cs:122` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (24–29 lines × 2) AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:48— AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:48-76 | AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:26-49 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs` and `AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:48` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (24–28 lines × 15) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:27— Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:27-54 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:63-86 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:95-118 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:127-150 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:159-182 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:191-214 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:223-246 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:255-278 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:287-310 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:319-342 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:351-374 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:383-406 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:415-438 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:447-470 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:479-502 — all 15 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:27` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (24 lines × 3) Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Catch.cs:40— Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Catch.cs:40-63 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Catch.cs:103-126 | Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Catch.cs:167-190 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Catch.cs:40` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `handler` to `Func<TException, IAsyncEnumerable<TSource>>` in one and `Func<TException, ValueTask<IAsyncEnumerable<TSource>>>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (23–26 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:91— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:91-116 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:185-207 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 3) Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:387— Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:387-409 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1341-1363 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1424-1446 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:387` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (21–25 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:327— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:327-347 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:550-574 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:327` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (20–25 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:27— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:27-51 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Delay.cs:62-81 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21–24 lines × 3) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:324— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:324-344 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:392-415 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:549-572 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:324` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 9) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:478— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:478-491 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:570-583 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:669-682 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:775-788 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:889-902 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1010-1023 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1138-1151 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1274-1287 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1417-1430 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:478` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (22 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:72— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:72-93 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:97-118 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:446-467 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:471-492 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19–22 lines × 2) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:15— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:15-36 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Timeout.cs:118-136 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20–21 lines × 10) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:388— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:388-407 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:471-491 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:563-583 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:662-682 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:768-788 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:882-902 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1003-1023 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1131-1151 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1267-1287 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1410-1430 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:388` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (20 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:26— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:26-45 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:49-68 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:400-419 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:423-442 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 3) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs:61— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs:61-80 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs:134-153 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs:239-258 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:312— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:312-330 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:334-352 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:356-374 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:378-396 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19–20 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:174— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:174-192 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:175-194 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:174` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (18–20 lines × 2) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:347— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:347-366 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:349-366 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:347` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (18–19 lines × 11) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:314— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:314-331 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:389-406 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:472-490 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:564-582 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:663-681 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:769-787 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:883-901 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1004-1022 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1132-1150 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1268-1286 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1411-1429 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:314` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (16 lines × 10) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:396— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:396-411 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:462-477 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:531-546 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:603-618 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:679-694 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:759-774 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:843-858 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:934-949 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1027-1042 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1123-1138 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:396` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:478` calls `RemoveActivePlan` and `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:412` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16–19 lines × 2) AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:106— AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs:106-124 | AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs:80-95 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Internal/EventPatternSourceBaseInternal.cs` and `AsyncRx.NET/System.Reactive.Async/Internal/EventSource.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 11) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:333— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:333-347 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:396-410 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:462-476 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:531-545 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:603-617 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:679-693 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:759-773 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:843-857 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:934-948 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1027-1041 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1123-1137 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:333` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:411` calls `RemoveActivePlan` and `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:348` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 4) AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:232— AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:232-248 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:252-268 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:272-288 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/SelectMany.cs:292-308 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 3) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:152— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:152-169 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:208-227 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:267-286 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:152` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `values` to `params TSource[]` in one and `IEnumerable<TSource>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (17–18 lines × 2) Rx.NET/tools/HomoIcon/Program.cs:545— Rx.NET/tools/HomoIcon/Program.cs:545-561 | Rx.NET/tools/HomoIcon/Program.cs:666-683 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/tools/HomoIcon/Program.cs:545` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (16–17 lines × 12) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:247— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:247-262 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:315-330 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:390-405 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:473-489 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:565-581 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:664-680 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:770-786 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:884-900 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1005-1021 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1133-1149 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1269-1285 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1412-1428 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:247` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (14 lines × 12) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:273— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:273-286 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:333-346 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:396-409 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:462-475 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:531-544 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:603-616 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:679-692 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:759-772 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:843-856 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:934-947 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1027-1040 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1123-1136 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:273` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:347` calls `RemoveActivePlan` and `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:287` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 10) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:412— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:412-421 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:479-488 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:549-558 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:622-631 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:699-708 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:780-789 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:865-874 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:957-966 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1051-1060 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1148-1157 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:412` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:489` calls `AddActivePlan` and `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:422` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:425— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:425-440 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:515-530 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:698-713 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:790-805 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/GroupBy.cs:425` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 13) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:217— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:217-229 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:273-285 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:333-345 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:396-408 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:462-474 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:531-543 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:603-615 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:679-691 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:759-771 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:843-855 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:934-946 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1027-1039 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1123-1135 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:217` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:286` calls `RemoveActivePlan` and `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:230` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15–16 lines × 2) Rx.NET/tools/HomoIcon/Program.cs:588— Rx.NET/tools/HomoIcon/Program.cs:588-603 | Rx.NET/tools/HomoIcon/Program.cs:716-730 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Rx.NET/tools/HomoIcon/Program.cs:586` calls `Join` and `Rx.NET/tools/HomoIcon/Program.cs:714` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 11) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:348— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:348-356 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:412-420 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:479-487 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:549-557 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:622-630 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:699-707 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:780-788 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:865-873 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:957-965 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1051-1059 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1148-1156 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:348` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:421` calls `AddActivePlan` and `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:357` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (14 lines × 13) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:188— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:188-201 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:248-261 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:316-329 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:391-404 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:474-488 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:566-580 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:665-679 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:771-785 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:885-899 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1006-1020 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1134-1148 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1270-1284 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1413-1427 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:188` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 12) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:287— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:287-294 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:348-355 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:412-419 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:479-486 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:549-556 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:622-629 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:699-706 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:780-787 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:865-872 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:957-964 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1051-1058 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1148-1155 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:287` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:356` calls `AddActivePlan` and `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:295` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 3) AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:133— AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:133-139 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:129-135 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs:223-229 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Join.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/GroupJoin.cs:133` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (12 lines × 3) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:338— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:338-350 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:566-577 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:737-748 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:338` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:736` calls `Clear` and `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Buffer.cs:337` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 13) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:230— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:230-236 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:287-293 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:348-354 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:412-418 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:479-485 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:549-555 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:622-628 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:699-705 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:780-786 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:865-871 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:957-963 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1051-1057 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1148-1154 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:230` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:294` calls `AddActivePlan` and `Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:237` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 3) AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:130— AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:130-139 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:187-196 | AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:247-256 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs:130` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 10) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:470— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:470-477 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:561-568 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:659-666 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:764-771 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:877-884 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:997-1004 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1124-1131 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1259-1266 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1401-1408 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1409-1416 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:470` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 4) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:310— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:310-317 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:347-354 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:312-319 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:349-356 — before extracting anything, compare `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs` and `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 186 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:310` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 12) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:239— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:239-245 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:305-311 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:378-384 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:459-465 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:548-555 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:645-652 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:749-756 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:861-868 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:980-987 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1106-1113 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1240-1247 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1381-1388 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:239` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:312` calls `Peek` and `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:247` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 4) Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:989— Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:989-995 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1115-1121 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1249-1255 | Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1390-1396 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:1122` calls `Peek` and `Rx.NET/Source/src/System.Reactive/Joins/ActivePlan.cs:997` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 13) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:202— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:202-206 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:257-261 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:315-319 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:377-381 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:442-446 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:510-514 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:581-585 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:655-659 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:733-737 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:816-820 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:902-906 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:994-998 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1088-1092 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 7) Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:586— Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:586-591 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:660-665 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:738-743 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:821-826 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:907-912 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:999-1004 | Rx.NET/Source/src/System.Reactive/Joins/Plan.cs:1093-1098 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 9) Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1596— Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1596-1600 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1624-1628 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1652-1656 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1680-1684 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1708-1712 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1736-1740 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1764-1768 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1792-1796 | Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1820-1824 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Async.cs:1596` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (5 lines × 3) AsyncRx.NET/System.Reactive.Async/Subjects/ConcurrentAsyncAsyncSubject.cs:13— AsyncRx.NET/System.Reactive.Async/Subjects/ConcurrentAsyncAsyncSubject.cs:13-17 | AsyncRx.NET/System.Reactive.Async/Subjects/ConcurrentBehaviorAsyncSubject.cs:15-22 | AsyncRx.NET/System.Reactive.Async/Subjects/ConcurrentSimpleAsyncSubject.cs:13-17 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Subjects/ConcurrentAsyncAsyncSubject.cs` and `AsyncRx.NET/System.Reactive.Async/Subjects/ConcurrentBehaviorAsyncSubject.cs` as WHOLE FILES: 90% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 3) AsyncRx.NET/System.Reactive.Async/Subjects/SequentialAsyncAsyncSubject.cs:13— AsyncRx.NET/System.Reactive.Async/Subjects/SequentialAsyncAsyncSubject.cs:13-34 | AsyncRx.NET/System.Reactive.Async/Subjects/SequentialBehaviorAsyncSubject.cs:14-39 | AsyncRx.NET/System.Reactive.Async/Subjects/SequentialSimpleAsyncSubject.cs:13-34 — before extracting anything, compare `AsyncRx.NET/System.Reactive.Async/Subjects/SequentialAsyncAsyncSubject.cs` and `AsyncRx.NET/System.Reactive.Async/Subjects/SequentialBehaviorAsyncSubject.cs` as WHOLE FILES: 93% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (174 lines × 2) Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/CoreDispatcherObservable.cs:31— Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/CoreDispatcherObservable.cs:31-204 | Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Linq/CoreDispatcherObservable.cs:32-310 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive.WindowsRuntime/System.Reactive.Linq/CoreDispatcherObservable.cs` and `Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Linq/CoreDispatcherObservable.cs` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 3) Rx.NET/Source/src/System.Reactive.WindowsRuntime/StableUncheckedCompositeDisposable.cs:54— Rx.NET/Source/src/System.Reactive.WindowsRuntime/StableUncheckedCompositeDisposable.cs:54-62 | Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs:167-175 | Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs:195-203 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs:163` calls `Read` and `Rx.NET/Source/src/System.Reactive.WindowsRuntime/StableUncheckedCompositeDisposable.cs:50` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 10) Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:185— Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:185-201 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:246-262 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:307-323 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:368-384 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:429-445 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs:185-201 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs:246-262 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs:307-323 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs:368-384 | Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs:429-445 — before extracting anything, compare `Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs` and `Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 5) Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs:194— Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs:194-213 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:81-100 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:245-264 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:908-927 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1142-1161 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 5) Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs:252— Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs:252-267 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:156-171 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:324-339 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:964-979 | Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:1198-1213 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 6) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:268— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:268-275 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:504-511 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:623-630 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs:50-57 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs:123-130 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.cs:228-235 — there are 6 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 8) Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs:105— Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs:105-112 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:211-218 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:382-389 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Select.cs:441-448 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:219-226 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:285-292 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:347-354 | Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:412-419 — there are 8 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication· Near-duplicate member family (7 members, 26 shared lines) · ×1
Near-duplicate member family (7 members, 26 shared lines) Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:13— Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:13-54 | Rx.NET/Samples/HOL/CS/Excercise8/Step09/Program.cs:13-55 | Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:13-61 | Rx.NET/Samples/HOL/CS/Excercise8/Step11/Program.cs:13-59 | Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:13-64 | Rx.NET/Samples/HOL/CS/Excercise9/Step02/Program.cs:13-66 | Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:13-77 — These 7 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication· Edited copies of one member (4 members, 22+ corresponding lines) · ×1
Edited copies of one member (4 members, 22+ corresponding lines) Rx.NET/Samples/HOL/CS/Excercise3/Step06/Program.cs:11— Rx.NET/Samples/HOL/CS/Excercise3/Step06/Program.cs:11-36 | Rx.NET/Samples/HOL/CS/Excercise4/Start/Program.cs:11-36 | Rx.NET/Samples/HOL/CS/Excercise4/Step03/Program.cs:11-32 | Rx.NET/Samples/HOL/CS/Excercise4/Step04/Program.cs:11-36 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 1+ corresponding lines) · ×1
Edited copies of one member (3 members, 1+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/GroupJoin/GroupJoinExtensions.cs:89— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/GroupJoin/GroupJoinExtensions.cs:89-89 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/GroupJoin/GroupJoinValueExtensions.cs:83-83 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Join/JoinExtensions.cs:66-72 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 2+ corresponding lines) · ×1
Edited copies of one member (4 members, 2+ corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:214— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/Seq.CombineLatest.cs:214-215 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/CombineLatest/SeqEx.cs:196-197 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Seq.Zip.cs:237-238 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/SeqEx.Zip.cs:196-197 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (1 corresponding lines) · ×1
Edited copy of a member (1 corresponding lines) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip6Seq.cs:55— AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip6Seq.cs:55-55 | AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Zip/Zip7TupleSeq.cs:54-54 — These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (42–45 lines × 2) Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:13— Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:13-54 | Rx.NET/Samples/HOL/CS/Excercise9/Step04/Program.cs:13-57 — `Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise9/Step04/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 2 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:13` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (18–19 lines × 8) Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:37— Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:37-54 | Rx.NET/Samples/HOL/CS/Excercise8/Step09/Program.cs:38-55 | Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:43-61 | Rx.NET/Samples/HOL/CS/Excercise8/Step11/Program.cs:41-59 | Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:46-64 | Rx.NET/Samples/HOL/CS/Excercise9/Step02/Program.cs:48-66 | Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:59-77 | Rx.NET/Samples/HOL/CS/Excercise9/Step04/Program.cs:68-86 — `Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step09/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 70 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:37` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:42` calls `TakeUntil` and `Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:36` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 5) Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:16— Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:16-32 | Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:16-32 | Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs:17-33 | Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:17-33 | Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:17-33 — `Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:35` calls `matchInWordNetByPrefix` and `Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:34` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15–16 lines × 3) Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:29— Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:29-43 | Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:29-44 | Rx.NET/Samples/HOL/CS/Excercise8/Step09/Program.cs:30-45 — `Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:29` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (13 lines × 6) Rx.NET/Samples/HOL/CS/Excercise8/Step02/Program.cs:12— Rx.NET/Samples/HOL/CS/Excercise8/Step02/Program.cs:12-24 | Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:13-25 | Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:13-25 | Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs:14-26 | Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:14-26 | Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:14-26 — `Rx.NET/Samples/HOL/CS/Excercise8/Step02/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 13 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (13–14 lines × 2) Rx.NET/Samples/HOL/CS/Excercise7/Step05/Program.cs:13— Rx.NET/Samples/HOL/CS/Excercise7/Step05/Program.cs:13-25 | Rx.NET/Samples/HOL/CS/Excercise7/Step06/Program.cs:13-26 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Samples/HOL/CS/Excercise7/Step06/Program.cs:13` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (11 lines × 7) Rx.NET/Samples/HOL/CS/Excercise2/Start/Program.cs:13— Rx.NET/Samples/HOL/CS/Excercise2/Start/Program.cs:13-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step03/Program.cs:13-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step04/Program.cs:13-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step05/Program.cs:13-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step06/Program.cs:13-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step07/Program.cs:13-23 | Rx.NET/Samples/HOL/CS/Excercise2/Step08/Program.cs:13-23 — `Rx.NET/Samples/HOL/CS/Excercise2/Start/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise2/Step03/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 11 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Rx.NET/Samples/HOL/CS/Excercise2/Start/Program.cs:13` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 6) Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:27— Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:27-35 | Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs:28-36 | Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:28-36 | Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:28-36 | Rx.NET/Samples/HOL/CS/Excercise8/Step09/Program.cs:29-37 | Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:31-40 — `Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:42` calls `TakeUntil` and `Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:37` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 14) Rx.NET/Samples/HOL/CS/Excercise7/Step05/Program.cs:13— Rx.NET/Samples/HOL/CS/Excercise7/Step05/Program.cs:13-18 | Rx.NET/Samples/HOL/CS/Excercise7/Step06/Program.cs:13-18 | Rx.NET/Samples/HOL/CS/Excercise7/Step07/Program.cs:13-18 | Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:27-32 | Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:27-32 | Rx.NET/Samples/HOL/CS/Excercise8/Step06/Program.cs:28-33 | Rx.NET/Samples/HOL/CS/Excercise8/Step07/Program.cs:28-33 | Rx.NET/Samples/HOL/CS/Excercise8/Step08/Program.cs:28-33 | Rx.NET/Samples/HOL/CS/Excercise8/Step09/Program.cs:29-34 | Rx.NET/Samples/HOL/CS/Excercise8/Step10/Program.cs:31-36 | Rx.NET/Samples/HOL/CS/Excercise8/Step11/Program.cs:31-36 | Rx.NET/Samples/HOL/CS/Excercise9/Step01/Program.cs:36-41 | Rx.NET/Samples/HOL/CS/Excercise9/Step02/Program.cs:38-43 | Rx.NET/Samples/HOL/CS/Excercise9/Step03/Program.cs:49-54 — `Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs` and `Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Rx.NET/Samples/HOL/CS/Excercise8/Step05/Program.cs:35` calls `matchInWordNetByPrefix` and `Rx.NET/Samples/HOL/CS/Excercise8/Step03/Program.cs:34` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Off the main sequence: System.Interactive.Async(net48) (Ix.NET/Source/System.Interactive.Async) Ix.NET/Source/System.Interactive.Async/System.Interactive.Async.csproj:1— System.Interactive.Async(net48) (Ix.NET/Source/System.Interactive.Async): abstractness 0.12, instability 0.00, distance 0.88 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
Unfinished stub — throws NotImplementedException AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/ThrowComparer.cs:18— `GetHashCode` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
IC1 · Incompleteness & stubs· Empty method body · ×1
Empty method body — does nothing with its inputs Rx.NET/Source/src/System.Reactive.Analyzers/Analyzers/UiFrameworkPackages/UiFrameworkSpecificTypes.cs:56— `MovedTypeDetails` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
Condition was already decided — an earlier guard makes this test constant Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:111— Control only reaches here when `cancel.IsDisposed` is false, because the guard on line 89 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
No CI pipeline — No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
SC1 · Supply-chain hygiene· NuGet dependencies are not locked · ×1
NuGet dependencies are not locked — No packages.lock.json and no central package management — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
async void method: SetResult AsyncRx.NET/System.Reactive.Async/Runtime/CompilerServices/AsyncObservableMethodBuilder.cs:259— `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
X18 · Disposal-pattern correctness· Disposes a dependency it does not own · ×1
Disposes a dependency it does not own AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/MockEnumerable.cs:70— `_enumerator` is never created by `MockEnumerator` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 70). Its declared type `IEnumerator` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed.
Swallowed exception (caught, then discarded) Ix.NET/Source/System.Interactive/System/Linq/Operators/OnErrorResumeNext.cs:74— `catch` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Orphaned file Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Events.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Concurrency/VirtualTimeScheduler.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Creation.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Linq/CoreDispatcherObservable.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Linq/Observable/FromEvent.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/DistinctUntilChanged.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Min.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Max.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Concurrency/TaskPoolScheduler.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file AsyncRx.NET/System.Reactive.Async/Subjects/ReplayAsyncSubject.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Linq/Observable/Average.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file AsyncRx.NET/System.Reactive.Async/Linq/Operators/Max.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file AsyncRx.NET/System.Reactive.Async/Linq/Operators/Min.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Foundation/AsyncInfoExtensions.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file AsyncRx.NET/System.Reactive.Async/Linq/Operators/Replay.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Runtime/CompilerServices/TaskObservableMethodBuilder.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Rx.NET/Source/src/System.Reactive/Linq/Observable/CombineLatest.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Join.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Catch.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file AsyncRx.NET/System.Reactive.Async/Runtime/CompilerServices/AsyncObservableMethodBuilder.cs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
redundant comment AsyncRx.NET/Tests.System.Reactive.Async/AsyncRxTarget.cs:453— "A scenario's observer (ObserverRef.Create), as the library's own." repeats the code it sits on: 4 of its 5 words (observer, ref, create, library) are already in `[AdaptsLibraryCall]`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment AsyncRx.NET/Tests.System.Reactive.Shared.Rx/RxTarget.cs:453— "A scenario's observer (ObserverRef.Create), as the library's own." repeats the code it sits on: 4 of its 5 words (observer, ref, create, library) are already in `[AdaptsLibraryCall]`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Android/Properties/AssemblyInfo.cs:6— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Android/Properties/AssemblyInfo.cs:19— "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Net45/Properties/AssemblyInfo.cs:5— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Net45/Properties/AssemblyInfo.cs:17— "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Net45/Properties/AssemblyInfo.cs:22— "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Net45/Properties/AssemblyInfo.cs:25— "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Net461/Properties/AssemblyInfo.cs:5— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Net461/Properties/AssemblyInfo.cs:17— "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Net461/Properties/AssemblyInfo.cs:22— "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Net461/Properties/AssemblyInfo.cs:25— "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Pcl259/Properties/AssemblyInfo.cs:6— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Pcl259/Properties/AssemblyInfo.cs:19— "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Uwp/Properties/AssemblyInfo.cs:5— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Uwp/Properties/AssemblyInfo.cs:17— "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Win81/Properties/AssemblyInfo.cs:5— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Win81/Properties/AssemblyInfo.cs:17— "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Win81Wpa81/Properties/AssemblyInfo.cs:6— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Win81Wpa81/Properties/AssemblyInfo.cs:19— "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Wp8/Properties/AssemblyInfo.cs:6— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Wp8/Properties/AssemblyInfo.cs:18— "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Wp8/Properties/AssemblyInfo.cs:23— "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Wp8/Properties/AssemblyInfo.cs:26— "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Ix.NET/Integration/Wpa81/Properties/AssemblyInfo.cs:5— "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
Commented-out code AsyncRx.NET/Playground/Program.cs:24— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:25— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:26— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:27— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:28— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:29— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:30— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:31— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:32— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:33— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:34— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:35— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:36— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:37— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:38— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:39— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:40— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:41— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:42— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:43— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:44— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/Playground/Program.cs:45— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code AsyncRx.NET/System.Reactive.Async/AsyncObservableBase.cs:105— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableRewriter.cs:141— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Commented-out code Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayerImpl.cs:87— A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers).
Fat interface: IRxTarget (54 members) AsyncRx.NET/Tests.System.Reactive.Shared/Harness/IRxTarget.cs:28— `IRxTarget` declares 54 members: `CreateTestScheduler`, `DisableOptimizations`, `ImmediateScheduler`, `DefaultScheduler`, `ThreadPoolScheduler`, `ToListAsync`, `ToEvent`, `ToEventPattern`, `ForEachAsync`, `ForEachAsync`, `GetAwaiter`, `RunSynchronously`, `GetAwaiter`, `RunAsync`, `RunAsync`, `CreateSubject`, `CreateSubject`, `CreateAsyncSubject`, `SubscribeAsync`, `CreateRefCountTestConnectable`, `CreateScheduler`, `CreateMySubject`, `CreateRefCountTestConnectableIgnoringConnect`, `CreateReplaySubject`, `CreateReplaySubject`, `CreateReplaySubject`, `CreateReplaySubject`, `CreateReplaySubject`, `CreateBehaviorSubject`, `CreateHotObservable`, `CreateColdObservable`, `Start`, `ScheduledAt`, `Clock`, `ScheduleAbsolute`, `CreateObserver`, `CreateObserver`, `CreateObserver`, `SubscribeAsync`, `SubscribeAsync`, and 14 more. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. Those 54 declarations carry 36 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 36 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: ISeqVisitor (573 members) AsyncRx.NET/Tests.System.Reactive.Shared/Operators/Aggregate/ISeqVisitor.Aggregate.cs:7— `ISeqVisitor` declares 573 members: `Aggregate`, `AggregateSeed`, `AggregateSeedResult`, `All`, `Amb`, `AmbParams`, `AmbEnumerable`, `And2`, `And3`, `And4`, `And5`, `And6`, `And7`, `And8`, `And9`, `And10`, `And11`, `And12`, `And13`, `And14`, `And15`, `And16`, `Any`, `AnyPredicate`, `Append`, `AppendScheduler`, `AsObservable`, `AutoConnect`, `AverageInt32`, `AverageInt32Selector`, `AverageInt64`, `AverageInt64Selector`, `AverageSingle`, `AverageSingleSelector`, `AverageDouble`, `AverageDoubleSelector`, `AverageDecimal`, `AverageDecimalSelector`, `AverageNullableInt32`, `AverageNullableInt32Selector`, and 533 more. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise7/Step02/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise7/Step03/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise7/Step04/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise7/Step05/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise7/Step06/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise7/Step07/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Start/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step01/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step02/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step03/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step05/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step06/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step07/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step08/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step09/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step10/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise8/Step11/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise9/Step01/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise9/Step02/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise9/Step03/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: DictServiceSoap (27 members) Rx.NET/Samples/HOL/CS/Excercise9/Step04/Service References/DictionarySuggestService/Reference.cs:14— `DictServiceSoap` declares 27 members: `ServerInfo`, `BeginServerInfo`, `EndServerInfo`, `DictionaryList`, `BeginDictionaryList`, `EndDictionaryList`, `DictionaryListExtended`, `BeginDictionaryListExtended`, `EndDictionaryListExtended`, `DictionaryInfo`, `BeginDictionaryInfo`, `EndDictionaryInfo`, `Define`, `BeginDefine`, `EndDefine`, `DefineInDict`, `BeginDefineInDict`, `EndDefineInDict`, `StrategyList`, `BeginStrategyList`, `EndStrategyList`, `Match`, `BeginMatch`, `EndMatch`, `MatchInDict`, `BeginMatchInDict`, `EndMatchInDict`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Thin analysable surface across projects: Android Ix.NET/Integration/Android/Android.csproj— 22 project(s) carry only a thin slice of real code; `Android` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Pcl259 Ix.NET/Integration/Pcl259/Pcl259.csproj— 22 project(s) carry only a thin slice of real code; `Pcl259` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Uwp Ix.NET/Integration/Uwp/Uwp.csproj— 22 project(s) carry only a thin slice of real code; `Uwp` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Win81 Ix.NET/Integration/Win81/Win81.csproj— 22 project(s) carry only a thin slice of real code; `Win81` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Win81Wpa81 Ix.NET/Integration/Win81Wpa81/Win81Wpa81.csproj— 22 project(s) carry only a thin slice of real code; `Win81Wpa81` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Wpa81 Ix.NET/Integration/Wpa81/Wpa81.csproj— 22 project(s) carry only a thin slice of real code; `Wpa81` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: iOS Ix.NET/Integration/iOS/iOS.csproj— 22 project(s) carry only a thin slice of real code; `iOS` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: tvOS Ix.NET/Integration/tvOS/tvOS.csproj— 22 project(s) carry only a thin slice of real code; `tvOS` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Android Rx.NET/Integration/Installation/Android/Android.csproj— 22 project(s) carry only a thin slice of real code; `Android` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Pcl259 Rx.NET/Integration/Installation/Pcl259/Pcl259.csproj— 22 project(s) carry only a thin slice of real code; `Pcl259` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Uwp Rx.NET/Integration/Installation/Uwp/Uwp.csproj— 22 project(s) carry only a thin slice of real code; `Uwp` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Win81 Rx.NET/Integration/Installation/Win81/Win81.csproj— 22 project(s) carry only a thin slice of real code; `Win81` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Win81Wpa81 Rx.NET/Integration/Installation/Win81Wpa81/Win81Wpa81.csproj— 22 project(s) carry only a thin slice of real code; `Win81Wpa81` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Wpa81 Rx.NET/Integration/Installation/Wpa81/Wpa81.csproj— 22 project(s) carry only a thin slice of real code; `Wpa81` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: iOS Rx.NET/Integration/Installation/iOS/iOS.csproj— 22 project(s) carry only a thin slice of real code; `iOS` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: tvOS Rx.NET/Integration/Installation/tvOS/tvOS.csproj— 22 project(s) carry only a thin slice of real code; `tvOS` has 25 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.05 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Net45 Ix.NET/Integration/Net45/Net45.csproj— 22 project(s) carry only a thin slice of real code; `Net45` has 26 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.04 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Net461 Ix.NET/Integration/Net461/Net461.csproj— 22 project(s) carry only a thin slice of real code; `Net461` has 26 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.04 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Net45 Rx.NET/Integration/Installation/Net45/Net45.csproj— 22 project(s) carry only a thin slice of real code; `Net45` has 26 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.04 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Net461 Rx.NET/Integration/Installation/Net461/Net461.csproj— 22 project(s) carry only a thin slice of real code; `Net461` has 26 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.04 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Wp8 Ix.NET/Integration/Wp8/Wp8.csproj— 22 project(s) carry only a thin slice of real code; `Wp8` has 33 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.03 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Thin analysable surface across projects: Wp8 Rx.NET/Integration/Installation/Wp8/Wp8.csproj— 22 project(s) carry only a thin slice of real code; `Wp8` has 33 significant line(s). The mean analysable-surface weight is 88 %; this project lowers Solution Shape by about 0.03 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
Duplicated predicate Rx.NET/Source/src/System.Reactive/ObservableQuery.cs:448— `!method.IsGenericMethod && typeArgs != null && typeArgs.Length > 0` appears character-identically in 2 files — Ix.NET/Source/System.Interactive.Providers/System/Linq/QueryableEx.cs, Rx.NET/Source/src/System.Reactive/ObservableQuery.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs:282— `!onlyIfCheap || _source is ICollection<TSource> || _source is ICollection` appears character-identically in 2 files — Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs, Ix.NET/Source/System.Linq.Async/System/Linq/Operators/DefaultIfEmpty.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncRecorded.cs:89— `Time == other.Time && EqualityComparer<T>.Default.Equals(Value, other.Value)` appears character-identically in 2 files — AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncRecorded.cs, Rx.NET/Source/src/Microsoft.Reactive.Testing/Recorded.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/A.cs:29— `_id == other._id && GetType().Equals(other.GetType())` appears character-identically in 2 files — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/A.cs, AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/E.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs:253— `_parent._isStopped && _parent._group.Count == 0` appears character-identically in 2 files — Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs, Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Rx.NET/Source/src/System.Reactive/Linq/Observable/SkipLast.cs:95— `_queue.Count > 0 && now - _queue.Peek().Interval >= _duration` appears character-identically in 3 files — Rx.NET/Source/src/System.Reactive/Linq/Observable/SkipLast.cs, Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLast.cs, Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeLastBuffer.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/EqualException.cs:125— `actualPointer.HasValue && mismatchedIndex.HasValue` appears character-identically in 2 files — ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/EqualException.cs, ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/NotEqualException.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Ix.NET/Source/System.Interactive/System/Linq/Operators/Buffer.cs:65— `buffers.Count > 0 && buffers.Peek().Count == count` appears character-identically in 2 files — Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Buffer.cs, Ix.NET/Source/System.Interactive/System/Linq/Operators/Buffer.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.Harness.cs:107— `disposed < created || disposed < subscribed` appears character-identically in 2 files — AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.Harness.cs, Rx.NET/Source/src/Microsoft.Reactive.Testing/TestScheduler.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/EqualException.cs:120— `expectedPointer.HasValue && mismatchedIndex.HasValue` appears character-identically in 2 files — ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/EqualException.cs, ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/NotEqualException.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/EqualException.cs:117— `expectedType != null && actualType != null && expectedType != actualType` appears character-identically in 2 files — ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/EqualException.cs, ../nuget-packages/xunit.v3.assert.source/3.2.2/contentFiles/cs/netstandard2.0/Asserts/Sdk/Exceptions/NotEqualException.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs:229— `i < values.Length && !ct.IsCancellationRequested` appears character-identically in 2 files — AsyncRx.NET/System.Reactive.Async/Linq/Operators/Append.cs, AsyncRx.NET/System.Reactive.Async/Linq/Operators/Prepend.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate AsyncRx.NET/Tests.System.Reactive.Shared/Harness/ArgumentChecks.cs:251— `i.IsGenericType && i.GetGenericTypeDefinition() == definition` appears character-identically in 2 files — AsyncRx.NET/Tests.System.Reactive.Shared/Harness/ArgumentChecks.cs, AsyncRx.NET/Tests.System.Reactive.Shared/Harness/DescriptionBridge.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipLast.cs:100— `queue.Count > 0 && now - queue.Peek().Timestamp >= duration` appears character-identically in 3 files — AsyncRx.NET/System.Reactive.Async/Linq/Operators/SkipLast.cs, AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLast.cs, AsyncRx.NET/System.Reactive.Async/Linq/Operators/TakeLastBuffer.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/GroupJoinTests.cs:1112— `x.Value.Kind == NotificationKind.OnNext && x.Time <= lastEnd` appears character-identically in 2 files — AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/GroupJoinTests.cs, AsyncRx.NET/Tests.System.Reactive.Shared/Scenarios/JoinTests.cs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Pass-through layer AsyncRx.NET/System.Reactive.Async/Internal/RedoAsyncSink.cs:203— HandlerObserver: all 3 public methods forward their arguments unchanged to _sink and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _sink directly, or give the layer a job.
Pass-through layer Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Async.cs:483— CancelableScheduler: all 3 public methods forward their arguments unchanged to _scheduler and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _scheduler directly, or give the layer a job.
Pass-through layer Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerQueue.cs:13— SchedulerQueue: all 4 public methods forward their arguments unchanged to _queue and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _queue directly, or give the layer a job.
Pass-through layer Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:100— _: all 3 public methods forward their arguments unchanged to _forward and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _forward directly, or give the layer a job.
Pass-through layer Rx.NET/Source/src/System.Reactive/Linq/Observable/RepeatWhen.cs:144— HandlerObserver: all 3 public methods forward their arguments unchanged to _main and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _main directly, or give the layer a job.
Pass-through layer Rx.NET/Source/src/System.Reactive/Linq/Observable/RetryWhen.cs:137— HandlerObserver: all 3 public methods forward their arguments unchanged to _main and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _main directly, or give the layer a job.
Pass-through layer Rx.NET/Source/benchmarks/Benchmarks.System.Reactive/CombineLatestBenchmark.cs:11— CombineLatestBenchmark: all 15 public methods forward their arguments unchanged to _zipTest and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _zipTest directly, or give the layer a job.
Pass-through layer Rx.NET/Source/benchmarks/Benchmarks.System.Reactive/ZipBenchmark.cs:11— ZipBenchmark: all 20 public methods forward their arguments unchanged to _zipTest and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _zipTest directly, or give the layer a job.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×3
Projects may be oversized for their cohesion Rx.NET/Source/src/System.Reactive/System.Reactive.csproj:1— `System.Reactive(netstandard2.0)` overshoots its size bounds (89364 LoC, 116 public types across 12 namespaces). 3 of 128 project(s) overshoot their size bounds, lowering Project Cohesion to 9.5/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
Projects may be oversized for their cohesion Rx.NET/Source/src/System.Reactive.MakeRefAssemblies/System.Reactive.MakeRefAssemblies.csproj:1— `System.Reactive.MakeRefAssemblies(netstandard2.0)` overshoots its size bounds (89364 LoC, 116 public types across 12 namespaces). 3 of 128 project(s) overshoot their size bounds, lowering Project Cohesion to 9.5/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
Projects may be oversized for their cohesion AsyncRx.NET/Tests.System.Reactive.Shared/Tests.System.Reactive.Shared.csproj:1— `Tests.System.Reactive.Shared` overshoots its size bounds (43630 LoC, 848 public types across 2 namespaces). 3 of 128 project(s) overshoot their size bounds, lowering Project Cohesion to 9.5/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
IC1 · Incompleteness & stubs· Member throws NotSupportedException · ×3
Member throws NotSupportedException Ix.NET/Source/FasterLinq/Program.cs:259— `Reset`'s body only throws NotSupportedException — sometimes a deliberate contract, often an unfinished stub. Confirm it's intentional.
Member throws NotSupportedException Ix.NET/Source/System.Interactive/System/Linq/Operators/Share.cs:143— `Reset`'s body only throws NotSupportedException — sometimes a deliberate contract, often an unfinished stub. Confirm it's intentional.
Member throws NotSupportedException Ix.NET/Source/System.Interactive/System/Linq/Yielder.cs:75— `Reset`'s body only throws NotSupportedException — sometimes a deliberate contract, often an unfinished stub. Confirm it's intentional.
DuplicateAnalyzerSeverity .editorconfig:258— IDE0290 severity is assigned none twice in the same [*.cs] section — here and again at line 262. The later assignment is the one that applies; this one is a duplicate to remove. — both lines say the same thing, so nothing about the build changes either way, but the repetition is what makes the next edit dangerous: whoever changes one of them will believe the change took effect, and the surviving copy will silently keep the old behaviour. Delete this one and leave a single entry for the rule.
Documentation: no build, run or usage example Rx.NET/tools/HomoIcon/README.md:1— `HomoIcon` is an executable (`OutputType Exe`) and neither `Rx.NET/tools/HomoIcon/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
ADR declares no status Rx.NET/Documentation/adr/0009-nbgv-usage.md:1— `Rx.NET/Documentation/adr/0009-nbgv-usage.md` declares no status, while 8 of the 8 other records in `Rx.NET/Documentation/adr` do, so a reader cannot tell whether this decision is in force. Add a `Status:` line.
Scattered collaborators — 59 % of calls cross a namespace and only 19 % of collaborators are co-located — group each feature's code into a vertical slice so a call's collaborators sit together.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
REDACTED
D34 · Knowledge Freshness· Further orphaned files (smaller) · ×1
Further orphaned files (smaller) — 337 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: Rx.NET/Source/src/System.Reactive/Linq/Observable/Max.cs, Rx.NET/Source/src/System.Reactive/Linq/Observable/Min.cs, Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs, Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Events.cs, Rx.NET/Source/src/System.Reactive/Concurrency/VirtualTimeScheduler.cs, AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromEventPattern.cs, Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage.Creation.cs, Rx.NET/Source/src/System.Reactive/Platforms/WinRT/Linq/CoreDispatcherObservable.cs (and 329 more) (395 orphaned of 836 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 836 of the 1814 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
README/code drift Rx.NET/Test/Gauntlet/Checks/PlugIns/Readme.md:74— Rx.NET/Test/Gauntlet/Checks/PlugIns/Readme.md names .NET 5, but the projects target .NET 6, 8, 9, 10. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
Logging is not universal — Only 2/3 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 3, 1 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.
No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
X2 · Cancellation propagation· Not all async methods take a CancellationToken · ×1
Not all async methods take a CancellationToken — Only 530/800 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
Nullable reference types not enabled everywhere — 24/27 NRT-eligible project(s) enable <Nullable>enable</Nullable> (projects targeting a pre-C#-8 framework are excluded — NRTs aren't available there). NRTs catch a whole class of null-deref bugs at compile time.
Null-forgiving operator (`!`) suppressions override nullable warnings — ~1.5 `!` suppressions per 1k syntax nodes — 1015 suppression(s) across the 672585 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a `!` can suppress anything in (a `!` under `#nullable disable` is inert and is not counted, and its file's nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.
Silent fallback default in catch Rx.NET/Source/src/System.Reactive/Concurrency/CatchScheduler.cs:29— `Wrap` swallows `TException` into `return Disposable.Empty;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
doc comments repeat the names Rx.NET/Source/src/Microsoft.Reactive.Testing/Recorded.cs:75— 169 of 1072 documented parameters and 1 of 587 summaries in `Microsoft.Reactive.Testing(netstandard2.0)` only repeat the member or parameter name (e.g. "Returns the hash code for the current value." for `GetHashCode`). 2 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
doc comments repeat the names Ix.NET/Source/System.Interactive/System/Linq/IAwaitable.cs:12— 4 of 143 documented parameters and 1 of 82 summaries in `System.Interactive(net48)` only repeat the member or parameter name (e.g. "Gets an awaiter object." for `GetAwaiter`). Delete the restating tags, or add what the name does not say.
doc comments repeat the names Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Generate.cs:19— 1 of 255 documented parameters and 0 of 114 summaries in `System.Interactive.Async(net48)` only repeat the member or parameter name (e.g. "Initial state." for `initialState`). 3 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
doc comments repeat the names Ix.NET/Source/System.Linq.Async/System/Linq/IAsyncIListProvider.cs:28— 0 of 386 documented parameters and 0 of 162 summaries in `System.Linq.Async(net48)` only repeat the member or parameter name (e.g. "" for `cancellationToken`). 3 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
doc comments repeat the names AsyncRx.NET/System.Reactive.Async/NotificationAsyncExtensions.cs:15— 5 of 76 documented parameters and 0 of 56 summaries in `System.Reactive.Async(netstandard2.0)` only repeat the member or parameter name (e.g. "The notification." for `notification`). Delete the restating tags, or add what the name does not say.
doc comments repeat the names Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayer.cs:72— 20 of 2485 documented parameters and 23 of 1529 summaries in `System.Reactive.MakeRefAssemblies(netstandard2.0)` only repeat the member or parameter name (e.g. "Starts a new stopwatch object." for `StartStopwatch`). Delete the restating tags, or add what the name does not say.
doc comments repeat the names AsyncRx.NET/Tests.System.Reactive.Shared/Harness/Dummies.cs:33— 18 of 2294 documented parameters and 6 of 4517 summaries in `Tests.System.Reactive.Shared` only repeat the member or parameter name (e.g. "The dummy." for `dummy`). Delete the restating tags, or add what the name does not say.
Off the main sequence: CommonCodeInPcl Rx.NET/Integration/BindingRedirects/CommonCodeInPcl/CommonCodeInPcl.csproj:1— CommonCodeInPcl: abstractness 0.00, instability 0.00, distance 1.00 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
nuget: not applicable — nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 54 file(s) — `Ix.NET/Source/ApiCompare/Program.cs`, `Ix.NET/Source/Playground/DemoAttribute.cs`, `Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Never.cs`, `Ix.NET/Source/System.Interactive/System/Linq/Operators/Create.cs`, `Ix.NET/Source/System.Interactive/System/Linq/Operators/Share.cs`, … (+49 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a1cda4-e33e-7ed8-b2f6-7cce332cd962 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 131 · Warnings: 1069 · Recommendations: 641 · Info: 8 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 12-11-2026 @ 02:44 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.