From 9f19c9711a1616d6a5cabeb289b56aea62f386f5 Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Thu, 29 Oct 2020 16:54:36 +0000 Subject: [PATCH] Enable CA20XX rules with suggestion severity * CA2009: Do not call ToImmutableCollection on an ImmutableCollection value * CA2011: Avoid infinite recursion * CA2012: Use ValueTasks correctly --- .globalconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.globalconfig b/.globalconfig index f283635034e..4dfe0eea350 100644 --- a/.globalconfig +++ b/.globalconfig @@ -340,13 +340,13 @@ dotnet_diagnostic.CA2007.severity = none dotnet_diagnostic.CA2008.severity = none # CA2009: Do not call ToImmutableCollection on an ImmutableCollection value -dotnet_diagnostic.CA2009.severity = suggestion +dotnet_diagnostic.CA2009.severity = warning # CA2011: Avoid infinite recursion -dotnet_diagnostic.CA2011.severity = suggestion +dotnet_diagnostic.CA2011.severity = warning # CA2012: Use ValueTasks correctly -dotnet_diagnostic.CA2012.severity = suggestion +dotnet_diagnostic.CA2012.severity = warning # CA2013: Do not use ReferenceEquals with value types dotnet_diagnostic.CA2013.severity = warning