DotNetAnalyzers / AsyncUsageAnalyzers

Now superseded by Microsoft/vs-threading
https://github.com/Microsoft/vs-threading
Other
121 stars 18 forks source link

New rule proposal: Called methods that are not marked async but return a task should be awaited #76

Closed christopher-carson closed 5 years ago

christopher-carson commented 5 years ago

Discussed in dotnet/roslyn#20782. CS4014 is only reported if the callee is marked with async, this leaves out a good portion of the problem cases. It would be be helpful if an analyzer expanded on this to report on the cases where the method is not marked with async.

sharwell commented 5 years ago

This is already implemented in vs-threading as VSTHRD110.