This is a Roslyn analyzer preventing implicit async void delegate usage.
Only delegate-accepting method (in Roslyn sense of "method", eg. including constructors, delegate invocations and so on) calls are currently supported. Example of diagnostic-reporting code:
namespace Whatever
{
class C
{
void Call(System.Action<int> a) {}
void Test() => Call(async _ => {});
}
}
See tests for more details on supported analysis.
Best fit to use with
CS1998 Async method lacks 'await' operators and will run synchronously
and/or CS4014 Because this call is not awaited, execution of the current method continues before the call is completed
configured to error severity (if no WarningsAsErrors used).