diff --git a/.globalconfig b/.globalconfig index fb0a7e89ab..80a1131796 100644 --- a/.globalconfig +++ b/.globalconfig @@ -506,6 +506,10 @@ dotnet_diagnostic.CA1845.severity = warning # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1846 dotnet_diagnostic.CA1846.severity = warning +# CA1847: Use char literal for a single character lookup +# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1847 +dotnet_diagnostic.CA1847.severity = warning + # CA2000: Dispose objects before losing scope # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000 dotnet_diagnostic.CA2000.severity = none @@ -704,6 +708,10 @@ dotnet_diagnostic.CA2250.severity = warning # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2251 dotnet_diagnostic.CA2251.severity = warning +# CA2252: This API requires opting into preview features +# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2252 +dotnet_diagnostic.CA2251.severity = none + # CA2300: Do not use insecure deserializer BinaryFormatter # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2300 dotnet_diagnostic.CA2300.severity = none diff --git a/Analyzers.props b/Analyzers.props index 4e6ed0381f..3251e0fe84 100644 --- a/Analyzers.props +++ b/Analyzers.props @@ -1,6 +1,7 @@ - + +