This repository was archived by the owner on Nov 10, 2026. It is now read-only.
Repository navigation
refactor: apply ReSharper code cleanup - #315
Merged
Merged
Conversation
The cleanup deleted 'using System.Threading;' and 'using System.Threading.Tasks;' from ThatConstructors.AreStatic.cs, but the file uses CancellationToken and Task<ConstraintResult> in its IsMetBy implementations, breaking the build on net8.0 and net10.0.
vbreuss
force-pushed
the
chore/resharper-cleanup
branch
from
June 4, 2026 14:54
d4aece6 to
f9bbc97
Compare
vbreuss
enabled auto-merge (squash)
June 4, 2026 14:55
🚀 Benchmark ResultsDetails
|
The cleanup broke the Release build (multi-TFM, TreatWarningsAsErrors): - ThatConstructors.AreStatic.cs: restore System.Threading[.Tasks] usings (guarded by #if NET8_0_OR_GREATER to match the guarded CancellationToken/Task usage and stay unused-free on netstandard2.0). - LinqAsyncHelpersTests.cs: revert extension-method syntax back to explicit LinqAsyncHelpers.Where/Distinct calls; on net10.0 the BCL System.Linq.AsyncEnumerable overloads made the calls ambiguous (CS0121). - ThatProperty.IsAnExtensionProperty.Tests.cs: restore the TestHelpers and Xunit.Sdk usings consumed only inside #if NET10_0_OR_GREATER (GetExtensionProperty, XunitException).
ReSharper removed 'sealed' from the override members of the (sealed) SealedMemberClass, judging it redundant. For a reflection library it is not: MethodInfo.IsFinal is only true for 'sealed override' methods, and ShouldChainSealedBeforeMethods filters .Sealed.Methods() on IsFinal. Without the keyword the filtered set was empty and the test failed on net8.0, net10.0 and net48.
Add a comment and ReSharper suppression so a future code cleanup does not re-remove the 'sealed' keyword that ShouldChainSealedBeforeMethods depends on (MethodInfo.IsFinal).
Disable the ReSharper 'redundant sealed keyword' inspection solution-wide via .sln.DotSettings (matching the existing RedundantTypeArgumentsOfMethod suppression), so code cleanup will not strip the load-bearing 'sealed' on SealedMemberClass. Drop the now-redundant inline ReSharper disable/restore directives, keeping the explanatory comment.
|
👽 Mutation ResultsaweXpect.ReflectionDetails
The final mutation score is 95.42%Coverage Thresholds: high:80 low:60 break:0 |
|
This is addressed in release v2.0.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.