From 1af039e3dda95af22286240f176a39564fbdc6b7 Mon Sep 17 00:00:00 2001 From: Newell Clark Date: Mon, 5 Jun 2023 16:04:15 -0400 Subject: [PATCH] Forgot to run msbuild --- src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md | 4 ++-- src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif | 4 ++-- src/NetAnalyzers/RulesMissingDocumentation.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md index e3ae537165..52a710e093 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md @@ -1704,9 +1704,9 @@ Constant arrays passed as arguments are not reused when called repeatedly, which |CodeFix|True| --- -## [CA1862](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1862): Prefer ReadOnlySpan`1 properties over readonly array fields +## [CA1862](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1862): Prefer ReadOnlySpan\ properties over readonly array fields -If an array field is readonly and the array is never modified, the compiler can emit more efficient code if the readonly field is replaced with a read-only ReadOnlySpan`1 property. +If an array field is readonly and the array is never modified, the compiler can emit more efficient code if the readonly field is replaced with a read-only ReadOnlySpan\ property. |Item|Value| |-|-| diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif index 503a9f30a2..38387b92f5 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif @@ -3157,8 +3157,8 @@ }, "CA1862": { "id": "CA1862", - "shortDescription": "Prefer ReadOnlySpan`1 properties over readonly array fields", - "fullDescription": "If an array field is readonly and the array is never modified, the compiler can emit more efficient code if the readonly field is replaced with a read-only ReadOnlySpan`1 property.", + "shortDescription": "Prefer ReadOnlySpan properties over readonly array fields", + "fullDescription": "If an array field is readonly and the array is never modified, the compiler can emit more efficient code if the readonly field is replaced with a read-only ReadOnlySpan property.", "defaultLevel": "note", "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1862", "properties": { diff --git a/src/NetAnalyzers/RulesMissingDocumentation.md b/src/NetAnalyzers/RulesMissingDocumentation.md index e749258527..5640625c41 100644 --- a/src/NetAnalyzers/RulesMissingDocumentation.md +++ b/src/NetAnalyzers/RulesMissingDocumentation.md @@ -8,5 +8,5 @@ CA1512 | | Use ObjectDisposedException throw helper | CA1856 | | Incorrect usage of ConstantExpected attribute | CA1857 | | A constant is expected for the parameter | -CA1862 | | Prefer ReadOnlySpan`1 properties over readonly array fields | +CA1862 | | Prefer ReadOnlySpan\ properties over readonly array fields | CA2021 | | Do not call Enumerable.Cast\ or Enumerable.OfType\ with incompatible types |