diff --git a/eng/CodeAnalysis.src.globalconfig b/eng/CodeAnalysis.src.globalconfig index 2677ac469e6671..307e910d1628e9 100644 --- a/eng/CodeAnalysis.src.globalconfig +++ b/eng/CodeAnalysis.src.globalconfig @@ -274,6 +274,12 @@ dotnet_diagnostic.CA1512.severity = warning # CA1513: Use ObjectDisposedException throw helper dotnet_diagnostic.CA1513.severity = warning +# CA1514: Avoid redundant length argument +dotnet_diagnostic.CA1514.severity = warning + +# CA1515: Consider making public types internal +dotnet_diagnostic.CA1515.severity = none + # CA1700: Do not name enum values 'Reserved' dotnet_diagnostic.CA1700.severity = none @@ -492,6 +498,9 @@ dotnet_diagnostic.CA1869.severity = warning # CA1870: Use a cached 'SearchValues' instance dotnet_diagnostic.CA1870.severity = warning +# CA1871: Do not pass a nullable struct to 'ArgumentNullException.ThrowIfNull' +dotnet_diagnostic.CA1871.severity = warning + # CA2000: Dispose objects before losing scope dotnet_diagnostic.CA2000.severity = none @@ -679,6 +688,18 @@ dotnet_diagnostic.CA2260.severity = warning # CA2261: Do not use ConfigureAwaitOptions.SuppressThrowing with Task dotnet_diagnostic.CA2261.severity = warning +# CA2262: Set 'MaxResponseHeadersLength' properly +dotnet_diagnostic.CA2262.severity = warning + +# CA2263: Prefer generic overload when type is known +dotnet_diagnostic.CA2263.severity = info + +# CA2264: Do not pass a non-nullable value to 'ArgumentNullException.ThrowIfNull' +dotnet_diagnostic.CA2264.severity = warning + +# CA2265: Do not compare Span to 'null' or 'default' +dotnet_diagnostic.CA2265.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 79e35931782f56..3f58c3aab64ea9 100644 --- a/eng/CodeAnalysis.test.globalconfig +++ b/eng/CodeAnalysis.test.globalconfig @@ -273,6 +273,12 @@ dotnet_diagnostic.CA1512.severity = none # CA1513: Use ObjectDisposedException throw helper dotnet_diagnostic.CA1513.severity = none +# CA1514: Avoid redundant length argument +dotnet_diagnostic.CA1514.severity = none + +# CA1515: Consider making public types internal +dotnet_diagnostic.CA1515.severity = none + # CA1700: Do not name enum values 'Reserved' dotnet_diagnostic.CA1700.severity = none @@ -489,6 +495,9 @@ dotnet_diagnostic.CA1869.severity = none # CA1870: Use a cached 'SearchValues' instance dotnet_diagnostic.CA1870.severity = none +# CA1871: Do not pass a nullable struct to 'ArgumentNullException.ThrowIfNull' +dotnet_diagnostic.CA1871.severity = none + # CA2000: Dispose objects before losing scope dotnet_diagnostic.CA2000.severity = none @@ -675,6 +684,18 @@ dotnet_diagnostic.CA2260.severity = none # CA2261: Do not use ConfigureAwaitOptions.SuppressThrowing with Task dotnet_diagnostic.CA2261.severity = none +# CA2262: Set 'MaxResponseHeadersLength' properly +dotnet_diagnostic.CA2262.severity = none + +# CA2263: Prefer generic overload when type is known +dotnet_diagnostic.CA2263.severity = none + +# CA2264: Do not pass a non-nullable value to 'ArgumentNullException.ThrowIfNull' +dotnet_diagnostic.CA2264.severity = none + +# CA2265: Do not compare Span to 'null' or 'default' +dotnet_diagnostic.CA2265.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 6fa9c34874398d..b8732a975df040 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -404,13 +404,13 @@ https://github.com/dotnet/roslyn 77372c66fd54927312b5b0a2e399e192f74445c9 - + https://github.com/dotnet/roslyn-analyzers - ba8b7f2c3ae092d0301f0c5e49bd30340af553c8 + 628d239421a3ae54464c60901fd9b831b3f01efa - + https://github.com/dotnet/roslyn-analyzers - ba8b7f2c3ae092d0301f0c5e49bd30340af553c8 + 628d239421a3ae54464c60901fd9b831b3f01efa diff --git a/eng/Versions.props b/eng/Versions.props index fc6e695c38cde4..034b9202984d09 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -34,8 +34,8 @@ - 3.11.0-beta1.24122.2 - 9.0.0-preview.24122.2 + 3.11.0-beta1.24155.1 + 9.0.0-preview.24155.1