Skip to content

chore: Reduce messages that reported by analyzers - #3234

Open
filzrev wants to merge 11 commits into
dotnet:masterfrom
filzrev:chore-reduce-analyzer-message
Open

chore: Reduce messages that reported by analyzers#3234
filzrev wants to merge 11 commits into
dotnet:masterfrom
filzrev:chore-reduce-analyzer-message

Conversation

@filzrev

@filzrev filzrev commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

This PR intended to reduce messages that are reported by analyzers.
(Currently 2313 messages are reported)

Almost of changes are based on analyzer's code fixer.

And following changes are manually edited.

1. chore: fix ca2012 messages

Add helper methods to wait value task.
Because GetAwaiter().GetResult() is not guaranteed to wait ValueTask completion.

2. chore: fix cs9236 messages

Unroll LINQ query to loops. to avoid following messages.

CS9236: Compiling requires binding the lambda expression at least 1000 times. Consider declaring the lambda expression with explicit parameter types, or if the containing method call is generic, consider using explicit type arguments.

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