Enable CA20XX rules with suggestion severity (#13928)

* CA2009: Do not call ToImmutableCollection on an ImmutableCollection value
* CA2011: Avoid infinite recursion
* CA2012: Use ValueTasks correctly
This commit is contained in:
xtqqczze 2020-11-05 03:52:14 +00:00 committed by GitHub
parent 07887993b8
commit 679a3a6bff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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