From 88a390d0d53690ff0bbc96af09dc36dd220645d6 Mon Sep 17 00:00:00 2001
From: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Date: Thu, 16 Nov 2023 16:03:04 -0800
Subject: [PATCH 1/5] fix grammar in CA2261 message
---
.../MicrosoftNetCoreAnalyzersResources.resx | 66 +++++++++----------
.../MicrosoftNetCoreAnalyzersResources.cs.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.de.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.es.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.fr.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.it.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.ja.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.ko.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.pl.xlf | 18 ++---
...crosoftNetCoreAnalyzersResources.pt-BR.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.ru.xlf | 18 ++---
.../MicrosoftNetCoreAnalyzersResources.tr.xlf | 18 ++---
...osoftNetCoreAnalyzersResources.zh-Hans.xlf | 16 ++---
...osoftNetCoreAnalyzersResources.zh-Hant.xlf | 18 ++---
.../Microsoft.CodeAnalysis.NetAnalyzers.md | 8 +--
.../Microsoft.CodeAnalysis.NetAnalyzers.sarif | 4 +-
16 files changed, 155 insertions(+), 155 deletions(-)
diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx
index 979f75ff53..20b6cbb758 100644
--- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx
+++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx
@@ -1,17 +1,17 @@
-
@@ -1005,10 +1005,10 @@
Do not use ConfigureAwaitOptions.SuppressThrowing with Task<TResult>
- The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task
+ The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task
- The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task.
+ The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task.Argument passed to TaskCompletionSource constructor should be TaskCreationOptions enum instead of TaskContinuationOptions enum
@@ -1707,9 +1707,9 @@
The 'ModuleInitializer' attribute should not be used in libraries
- Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly.
-The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified.
-The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence.
+ Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly.
+The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified.
+The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence.
Widening and user defined conversions are not supported with generic types.
@@ -2096,4 +2096,4 @@ Widening and user defined conversions are not supported with generic types.
Cache and reuse 'JsonSerializerOptions' instances
-
\ No newline at end of file
+
diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf
index 6be439919e..268ec4db50 100644
--- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf
+++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf
@@ -588,13 +588,13 @@
-
@@ -924,12 +924,12 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E
- The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task.
+ The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task.ConfigureAwaitOptions.SuppressThrowing se podporuje pouze u neobecných úloh, nikoli u Task<TResult>. Pokud ho chcete použít s task<TResult>, nejprve ho přetypujte na základní úlohu.
- The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task
+ The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic TaskConfigureAwaitOptions.SuppressThrowing se podporuje pouze s neobecnou úlohou.
@@ -3270,4 +3270,4 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E