diff options
author | Pranav K <prkrishn@hotmail.com> | 2022-02-03 04:16:42 +0300 |
---|---|---|
committer | Pranav K <prkrishn@hotmail.com> | 2022-02-03 04:21:36 +0300 |
commit | b9d910778aaba674f242b2e34e741530d3620c94 (patch) | |
tree | afb64a5807da44fa4e9482c1cc45c5ce7f154a00 /.editorconfig | |
parent | b89eba6c3cda331ee98063e3c4a04267ec540315 (diff) |
Enable CA2007 for all ns2.0 projects
Contributes to https://github.com/dotnet/aspnetcore/issues/24055
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 5 |
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 |