From c77a8b88f003bc0914742f18bb3cf5d64ef12e78 Mon Sep 17 00:00:00 2001 From: Justin Swanson Date: Sat, 25 Jan 2020 13:02:40 -0600 Subject: [PATCH] Added async/await warning tweaks to .editorconfig --- .editorconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 5f6c95ed..9270fbad 100644 --- a/.editorconfig +++ b/.editorconfig @@ -114,4 +114,11 @@ csharp_space_between_method_call_name_and_opening_parenthesis = false csharp_space_between_method_call_empty_parameter_list_parentheses = false # Wrapping preferences csharp_preserve_single_line_statements = true -csharp_preserve_single_line_blocks = true \ No newline at end of file +csharp_preserve_single_line_blocks = true +############################### +# C# Async Rules # +############################### +# CS4014: Task not awaited +dotnet_diagnostic.CS4014.severity = error +# CS1998: Async function does not contain await +dotnet_diagnostic.CS1998.severity = silent \ No newline at end of file