Enable MA0155, MA0156, and MA0157 re: `async`

This commit is contained in:
YoshiRulz 2024-07-04 07:23:53 +10:00
parent da7331632d
commit b523a8cb80
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 6 additions and 0 deletions

View File

@ -324,6 +324,12 @@ dotnet_diagnostic.MA0110.severity = error
dotnet_diagnostic.MA0136.severity = warning
# Both if and else branch have identical code
dotnet_diagnostic.MA0140.severity = warning
# Do not use async void methods
dotnet_diagnostic.MA0155.severity = error
# Use 'Async' suffix when a method returns IAsyncEnumerable<T>
dotnet_diagnostic.MA0156.severity = error
# Do not use 'Async' suffix when a method does not return IAsyncEnumerable<T>
dotnet_diagnostic.MA0157.severity = error
## Menees.Analyzers rules