From 94bfbb07bd8b4446ae1ae51eb01d24bbb4dc53ff Mon Sep 17 00:00:00 2001 From: "Mingzhe Huang (from Dev Box)" Date: Thu, 7 Sep 2023 16:11:11 +0800 Subject: [PATCH] fix and suppress warnings due to upgrade of Roslyn --- .../Azure.ClientSdk.Analyzers.csproj | 1 + .../shipping.globalconfig | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/dotnet/Azure.ClientSdk.Analyzers/shipping.globalconfig diff --git a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.csproj b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.csproj index d4a8ea01b68e..a82552210c58 100644 --- a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.csproj +++ b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.csproj @@ -13,6 +13,7 @@ analyzers/dotnet/cs/ 0.1.1 true + true diff --git a/src/dotnet/Azure.ClientSdk.Analyzers/shipping.globalconfig b/src/dotnet/Azure.ClientSdk.Analyzers/shipping.globalconfig new file mode 100644 index 000000000000..3f86e4fc757f --- /dev/null +++ b/src/dotnet/Azure.ClientSdk.Analyzers/shipping.globalconfig @@ -0,0 +1,19 @@ +# The warnings below are found after upgrading to Roslyn 4.7.0 +# It should be able to fix them all. Suppressing them is just a temporary work-around. + +is_global = true + +# CS0618: 'IOperation.Children' is obsolete: 'This API has performance penalties, please use ChildOperations instead. +dotnet_diagnostic.CS0618.severity = none + +# RS1031: The diagnostic title should not contain a period, nor any line return character, nor any leading or trailing whitespaces +dotnet_diagnostic.RS1031.severity = none + +# RS1032: The diagnostic message should not contain any line return character nor any leading or trailing whitespaces and should either be a single sentence without a trailing period or a multi-sentences with a trailing period +dotnet_diagnostic.RS1032.severity = none + +# RS2008: Enable analyzer release tracking for the analyzer project containing rule 'XXX' +dotnet_diagnostic.RS2008.severity = none + +# RS1024: Use 'SymbolEqualityComparer' when comparing symbols +dotnet_diagnostic.RS1024.severity = none