Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav K <prkrishn@hotmail.com>2022-02-03 04:16:42 +0300
committerPranav K <prkrishn@hotmail.com>2022-02-03 04:21:36 +0300
commitb9d910778aaba674f242b2e34e741530d3620c94 (patch)
treeafb64a5807da44fa4e9482c1cc45c5ce7f154a00 /.editorconfig
parentb89eba6c3cda331ee98063e3c4a04267ec540315 (diff)
Enable CA2007 for all ns2.0 projects
Contributes to https://github.com/dotnet/aspnetcore/issues/24055
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
index 3151862d60..0296b9eb79 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -175,6 +175,9 @@ dotnet_diagnostic.CA1845.severity = warning
# CA1846: Prefer AsSpan over Substring
dotnet_diagnostic.CA1846.severity = warning
+# CA2007: Consider calling ConfigureAwait on the awaited task
+dotnet_diagnostic.CA2007.severity = warning
+
# CA2008: Do not create tasks without passing a TaskScheduler
dotnet_diagnostic.CA2008.severity = warning
@@ -250,7 +253,7 @@ dotnet_diagnostic.IDE0161.severity = warning
dotnet_style_allow_multiple_blank_lines_experimental = false
dotnet_diagnostic.IDE2000.severity = warning
-[**/{test,samples,perf}/**.{cs,vb}]
+[{eng/tools/**.cs,**/{test,samples,perf}/**.cs}]
# CA1018: Mark attributes with AttributeUsageAttribute
dotnet_diagnostic.CA1018.severity = suggestion
# CA1507: Use nameof to express symbol names