noasyncactions - NoAsyncActions 1.0.0-dev12

Analyzer that warns about implicit async void delegates.

PM> Install-Package NoAsyncActions -Version 1.0.0-dev12 -Source https://www.myget.org/F/noasyncactions/api/v3/index.json

Copy to clipboard

> nuget.exe install NoAsyncActions -Version 1.0.0-dev12 -Source https://www.myget.org/F/noasyncactions/api/v3/index.json

Copy to clipboard

> dotnet add package NoAsyncActions --version 1.0.0-dev12 --source https://www.myget.org/F/noasyncactions/api/v3/index.json

Copy to clipboard
<PackageReference Include="NoAsyncActions" Version="1.0.0-dev12" />
Copy to clipboard
source https://www.myget.org/F/noasyncactions/api/v3/index.json

nuget NoAsyncActions  ~> 1.0.0-dev12
Copy to clipboard

> choco install NoAsyncActions --version 1.0.0-dev12 --source https://www.myget.org/F/noasyncactions/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "noasyncactions" -SourceLocation "https://www.myget.org/F/noasyncactions/api/v2"
Install-Module -Name "NoAsyncActions" -RequiredVersion "1.0.0-dev12" -Repository "noasyncactions" -AllowPreRelease
Copy to clipboard

NoAsyncActions

This is a Roslyn analyzer preventing implicit async void delegate usage.

Build status NoAsyncActions nuget package version NoAsyncActions myget dev package version License: MIT

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).

Owners

bessgeor

Authors

George Bessonov

Project URL

https://github.com/bessgeor/NoAsyncActions

License

MIT

Tags

NoAsyncActions, analyzers, reliability, async void

Info

48 total downloads
11 downloads for version 1.0.0-dev12
Download (8.17 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.0-dev13 8.17 KB Thu, 07 May 2020 08:15:48 GMT 12
1.0.0-dev12 8.17 KB Thu, 07 May 2020 08:12:32 GMT 11
1.0.0-dev11 8.17 KB Thu, 07 May 2020 07:36:59 GMT 13
1.0.0-dev10 8.17 KB Thu, 07 May 2020 07:36:10 GMT 12