Skip to content

Commit

Permalink
Forgot to run msbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
NewellClark committed Jun 5, 2023
1 parent 2f0dbc3 commit 1af039e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\<T> 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\<T> property.

|Item|Value|
|-|-|
Expand Down
4 changes: 2 additions & 2 deletions src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> 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<T> property.",
"defaultLevel": "note",
"helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1862",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion src/NetAnalyzers/RulesMissingDocumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ CA1512 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-
CA1513 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1513> | Use ObjectDisposedException throw helper |
CA1856 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1856> | Incorrect usage of ConstantExpected attribute |
CA1857 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1857> | A constant is expected for the parameter |
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\<T> properties over readonly array fields |
CA2021 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021> | Do not call Enumerable.Cast\<T> or Enumerable.OfType\<T> with incompatible types |

0 comments on commit 1af039e

Please sign in to comment.