diff --git a/eng/CodeAnalysis.src.globalconfig b/eng/CodeAnalysis.src.globalconfig index 0fdc74157b6..f7b055d9c75 100644 --- a/eng/CodeAnalysis.src.globalconfig +++ b/eng/CodeAnalysis.src.globalconfig @@ -658,6 +658,9 @@ dotnet_diagnostic.CA2259.severity = warning # CA2260: Use correct type parameter dotnet_diagnostic.CA2260.severity = warning +# CA2261: Do not use ConfigureAwaitOptions.SuppressThrowing with Task +dotnet_diagnostic.CA2261.severity = warning + # CA2300: Do not use insecure deserializer BinaryFormatter dotnet_diagnostic.CA2300.severity = none diff --git a/eng/CodeAnalysis.test.globalconfig b/eng/CodeAnalysis.test.globalconfig index ae1dc7eb987..fa3d2593e53 100644 --- a/eng/CodeAnalysis.test.globalconfig +++ b/eng/CodeAnalysis.test.globalconfig @@ -654,6 +654,9 @@ dotnet_diagnostic.CA2259.severity = none # CA2260: Use correct type parameter dotnet_diagnostic.CA2260.severity = none +# CA2261: Do not use ConfigureAwaitOptions.SuppressThrowing with Task +dotnet_diagnostic.CA2261.severity = none + # CA2300: Do not use insecure deserializer BinaryFormatter dotnet_diagnostic.CA2300.severity = none diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 0ca799cb48e..5e032c4c06d 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -372,13 +372,13 @@ https://github.com/dotnet/roslyn 7787409c6b529c021d4f8b5fbe3d620094953be9 - + https://github.com/dotnet/roslyn-analyzers - 2f0301ef59624a72fb00f7fd92caa50be03f277d + 82603c16509d7383cd1922680773a79b839b1705 - + https://github.com/dotnet/roslyn-analyzers - 2f0301ef59624a72fb00f7fd92caa50be03f277d + 82603c16509d7383cd1922680773a79b839b1705 https://github.com/dotnet/sdk diff --git a/eng/Versions.props b/eng/Versions.props index 0217d8eb4a8..e9dba7b6fc5 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -32,8 +32,8 @@ - 3.3.5-beta1.23308.2 - 8.0.0-preview.23308.2 + 3.11.0-beta1.23357.1 + 8.0.0-preview.23357.1 - RS2008;$(NoWarn) + RS2008;RS1038;$(NoWarn) $(DefineConstants);JSIMPORTGENERATOR cs diff --git a/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/ComInterfaceGenerator.csproj b/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/ComInterfaceGenerator.csproj index a8fb6566d66..a4251a43d3e 100644 --- a/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/ComInterfaceGenerator.csproj +++ b/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/ComInterfaceGenerator.csproj @@ -8,7 +8,7 @@ true - RS2008;$(NoWarn) + RS2008;RS1038;$(NoWarn) cs $(DefineConstants);MICROSOFT_INTEROP_COMINTERFACEGENERATOR diff --git a/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/LibraryImportGenerator.csproj b/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/LibraryImportGenerator.csproj index 621caeaf967..bb29734d336 100644 --- a/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/LibraryImportGenerator.csproj +++ b/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/LibraryImportGenerator.csproj @@ -8,7 +8,7 @@ true - RS2008;$(NoWarn) + RS2008;RS1038;$(NoWarn) cs diff --git a/src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/Pal/Windows/DecryptorPalWindows.DecodeRecipients.cs b/src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/Pal/Windows/DecryptorPalWindows.DecodeRecipients.cs index a9233e64dac..27a48486adf 100644 --- a/src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/Pal/Windows/DecryptorPalWindows.DecodeRecipients.cs +++ b/src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/Pal/Windows/DecryptorPalWindows.DecodeRecipients.cs @@ -33,7 +33,9 @@ namespace Internal.Cryptography.Pal.Windows return new RecipientInfoCollection(recipientInfos); } +#pragma warning disable CA1859 // Use concrete types when possible for improved performance https://github.com/dotnet/roslyn-analyzers/issues/6751 private static IEnumerable ToRecipientInfosForThisIndex(SafeHandle pCmsgCmsRecipientInfoMemory, int index) +#pragma warning restore CA1859 { bool mustRelease = false; pCmsgCmsRecipientInfoMemory.DangerousAddRef(ref mustRelease);