Last active
November 3, 2020 06:36
-
-
Save cezarypiatek/61a9c8cbd4cf7d0555f91d8df0936a64 to your computer and use it in GitHub Desktop.
AsyncAnalyzers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AsyncFixer01: Unnecessary async/await usage | |
dotnet_diagnostic.AsyncFixer01.severity = suggestion | |
# AsyncFixer02: Long-running or blocking operations inside an async method | |
dotnet_diagnostic.AsyncFixer02.severity = error | |
# VSTHRD103: Call async methods when in an async method | |
dotnet_diagnostic.VSTHRD103.severity = error | |
# AsyncFixer03: Fire & forget async void methods | |
dotnet_diagnostic.AsyncFixer03.severity = error | |
# VSTHRD100: Avoid async void methods | |
dotnet_diagnostic.VSTHRD100.severity = error | |
# VSTHRD101: Avoid unsupported async delegates | |
dotnet_diagnostic.VSTHRD101.severity = error | |
# VSTHRD107: Await Task within using expression | |
dotnet_diagnostic.VSTHRD107.severity = error | |
# AsyncFixer04: Fire & forget async call inside a using block | |
dotnet_diagnostic.AsyncFixer04.severity = error | |
# VSTHRD110: Observe result of async calls | |
dotnet_diagnostic.VSTHRD110.severity = error | |
# VSTHRD002: Avoid problematic synchronous waits | |
dotnet_diagnostic.VSTHRD002.severity = error | |
# MA0045: Do not use blocking call (make method async) | |
dotnet_diagnostic.MA0045.severity = error | |
# AsyncifyInvocation: Use Task Async | |
dotnet_diagnostic.AsyncifyInvocation.severity = error | |
# AsyncifyVariable: Use Task Async | |
dotnet_diagnostic.AsyncifyVariable.severity = error | |
# MA0004: Use .ConfigureAwait(false) | |
dotnet_diagnostic.MA0004.severity = none | |
# VSTHRD111: Use ConfigureAwait(bool) | |
dotnet_diagnostic.VSTHRD111.severity = none | |
# CA2007: Consider calling ConfigureAwait on the awaited task | |
dotnet_diagnostic.CA2007.severity = none | |
# MA0022: Return Task.FromResult instead of returning null | |
dotnet_diagnostic.MA0022.severity = error | |
# VSTHRD114: Avoid returning a null Task | |
dotnet_diagnostic.VSTHRD114.severity = error | |
# VSTHRD200: Use "Async" suffix for async methods | |
dotnet_diagnostic.VSTHRD200.severity = none | |
# VSTHRD200: Use "Async" suffix for async methods | |
dotnet_diagnostic.VSTHRD200.severity = none | |
# MA0040: Specify a cancellation token | |
dotnet_diagnostic.MA0032.severity = suggestion | |
# MA0040: Flow the cancellation token when available | |
dotnet_diagnostic.MA0040.severity = error | |
# MA0079: Use a cancellation token using .WithCancellation() | |
dotnet_diagnostic.MA0079.severity = suggestion | |
# MA0080: Use a cancellation token using .WithCancellation() | |
dotnet_diagnostic.MA0080.severity = error | |
#AsyncFixer05: Downcasting from a nested task to an outer task. | |
dotnet_diagnostic.AsyncFixer05.severity = error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemGroup> | |
<PackageReference Include="AsyncFixer" Version="1.3.0"> | |
<PrivateAssets>all</PrivateAssets> | |
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |
</PackageReference> | |
<PackageReference Include="Asyncify" Version="0.9.7" > | |
<PrivateAssets>all</PrivateAssets> | |
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |
</PackageReference> | |
<PackageReference Include="Meziantou.Analyzer" Version="1.0.570"> | |
<PrivateAssets>all</PrivateAssets> | |
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |
</PackageReference> | |
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="16.8.50" > | |
<PrivateAssets>all</PrivateAssets> | |
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |
</PackageReference> | |
</ItemGroup> |
cezarypiatekGC
commented
Oct 29, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment