Skip to content

Commit a223c4b

Browse files
Copilotstephentoub
andcommitted
Regenerate auto-generated documentation files for CA2027
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent 1e8ad50 commit a223c4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
@@ -2156,7 +2156,7 @@ Unawaited tasks that use 'IDisposable' instances may use those instances long af
21562156

21572157
## [CA2027](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2027): Avoid redundant 'Regex.IsMatch' guard before 'Regex.Match'
21582158

2159-
Using 'Regex.IsMatch' as a guard before calling 'Regex.Match' with the same arguments is redundant and doubles the work. Use a pattern match on the result of 'Regex.Match' directly instead.
2159+
Using 'Regex.IsMatch' as a guard before calling 'Regex.Match' with the same arguments is redundant and unnecessarily repeats the matching operation. Call 'Regex.Match' directly and check the 'Success' property instead.
21602160

21612161
|Item|Value|
21622162
|-|-|

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3853,7 +3853,7 @@
38533853
"CA2027": {
38543854
"id": "CA2027",
38553855
"shortDescription": "Avoid redundant 'Regex.IsMatch' guard before 'Regex.Match'",
3856-
"fullDescription": "Using 'Regex.IsMatch' as a guard before calling 'Regex.Match' with the same arguments is redundant and doubles the work. Use a pattern match on the result of 'Regex.Match' directly instead.",
3856+
"fullDescription": "Using 'Regex.IsMatch' as a guard before calling 'Regex.Match' with the same arguments is redundant and unnecessarily repeats the matching operation. Call 'Regex.Match' directly and check the 'Success' property instead.",
38573857
"defaultLevel": "note",
38583858
"helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2027",
38593859
"properties": {

0 commit comments

Comments
 (0)