Skip to content

Commit e2ff71d

Browse files
committed
Co-authored-by: stephentoub <[email protected]>
1 parent a4d1d9a commit e2ff71d

File tree

3 files changed

+22
-26
lines changed

3 files changed

+22
-26
lines changed

src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ This rule detects usage of platform-specific intrinsics that can be replaced wit
948948
|CodeFix|True|
949949
---
950950

951-
## [CA1517](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/CA1517): Use 'ReadOnlySpan\<T>' or 'ReadOnlyMemory\<T>' instead of 'Span\<T>' or 'Memory\<T>'
951+
## [CA1517](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1517): Use 'ReadOnlySpan\<T>' or 'ReadOnlyMemory\<T>' instead of 'Span\<T>' or 'Memory\<T>'
952952

953953
Using 'ReadOnlySpan\<T>' or 'ReadOnlyMemory\<T>' instead of 'Span\<T>' or 'Memory\<T>' for parameters that are not written to can prevent errors, convey intent more clearly, and may improve performance.
954954

src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers.sarif

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -164,26 +164,6 @@
164164
]
165165
}
166166
},
167-
"CA1517": {
168-
"id": "CA1517",
169-
"shortDescription": "Use 'ReadOnlySpan<T>' or 'ReadOnlyMemory<T>' instead of 'Span<T>' or 'Memory<T>'",
170-
"fullDescription": "Using 'ReadOnlySpan<T>' or 'ReadOnlyMemory<T>' instead of 'Span<T>' or 'Memory<T>' for parameters that are not written to can prevent errors, convey intent more clearly, and may improve performance.",
171-
"defaultLevel": "note",
172-
"helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1517",
173-
"properties": {
174-
"category": "Maintainability",
175-
"isEnabledByDefault": true,
176-
"typeName": "PreferReadOnlySpanOverSpanAnalyzer",
177-
"languages": [
178-
"C#",
179-
"Visual Basic"
180-
],
181-
"tags": [
182-
"Telemetry",
183-
"EnabledRuleInAggressiveMode"
184-
]
185-
}
186-
},
187167
"CA1802": {
188168
"id": "CA1802",
189169
"shortDescription": "Use literals where appropriate",
@@ -2202,6 +2182,26 @@
22022182
]
22032183
}
22042184
},
2185+
"CA1517": {
2186+
"id": "CA1517",
2187+
"shortDescription": "Use 'ReadOnlySpan<T>' or 'ReadOnlyMemory<T>' instead of 'Span<T>' or 'Memory<T>'",
2188+
"fullDescription": "Using 'ReadOnlySpan<T>' or 'ReadOnlyMemory<T>' instead of 'Span<T>' or 'Memory<T>' for parameters that are not written to can prevent errors, convey intent more clearly, and may improve performance.",
2189+
"defaultLevel": "note",
2190+
"helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1517",
2191+
"properties": {
2192+
"category": "Maintainability",
2193+
"isEnabledByDefault": true,
2194+
"typeName": "PreferReadOnlySpanOverSpanAnalyzer",
2195+
"languages": [
2196+
"C#",
2197+
"Visual Basic"
2198+
],
2199+
"tags": [
2200+
"Telemetry",
2201+
"EnabledRuleInAggressiveMode"
2202+
]
2203+
}
2204+
},
22052205
"CA1700": {
22062206
"id": "CA1700",
22072207
"shortDescription": "Do not name enum values 'Reserved'",
@@ -7152,4 +7152,4 @@
71527152
}
71537153
}
71547154
]
7155-
}
7155+
}

src/Microsoft.CodeAnalysis.NetAnalyzers/src/RulesMissingDocumentation.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22

33
Rule ID | Missing Help Link | Title |
44
--------|-------------------|-------|
5-
CA1873 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1873> | Avoid potentially expensive logging |
6-
CA1874 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1874> | Use 'Regex.IsMatch' |
7-
CA1875 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1875> | Use 'Regex.Count' |
8-
CA2023 | <https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2023> | Invalid braces in message template |

0 commit comments

Comments
 (0)