Skip to content

Reorder Try.cs overloads to satisfy SonarAnalyzer S4136#85

Merged
Chris-Wolfgang merged 2 commits intomainfrom
fix/s4136-overload-adjacency
Apr 25, 2026
Merged

Reorder Try.cs overloads to satisfy SonarAnalyzer S4136#85
Chris-Wolfgang merged 2 commits intomainfrom
fix/s4136-overload-adjacency

Conversation

@Chris-Wolfgang
Copy link
Copy Markdown
Owner

Summary

Why

The previous order was Run(Action)RunAsync(Action)Run<T>RunAsync<T>, which interleaved the two overload groups. After this change the order is Run(Action)Run<T>RunAsync(Action)RunAsync<T>.

Test plan

🤖 Generated with Claude Code

Chris-Wolfgang and others added 2 commits April 25, 2026 13:03
Resolves S4136 (SonarAnalyzer): all Run overloads must be adjacent and
all RunAsync overloads must be adjacent. Moves Run<T> above RunAsync(Action)
so the Run group (Run + Run<T>) and RunAsync group (RunAsync + RunAsync<T>)
are each contiguous. No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Resolves xUnit1026: the [Theory] had two [InlineData] rows but never used
the 'succeeded' parameter — both rows tested the same thing. Failure is
already covered by the separate Failure_sets_properties_correctly [Fact].

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Chris-Wolfgang Chris-Wolfgang merged commit dabd586 into main Apr 25, 2026
6 checks passed
@Chris-Wolfgang Chris-Wolfgang deleted the fix/s4136-overload-adjacency branch April 25, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant