diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/MicrosoftCodeQualityAnalyzersResources.resx b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/MicrosoftCodeQualityAnalyzersResources.resx index 25203b8727..53be7a9f4f 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/MicrosoftCodeQualityAnalyzersResources.resx +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/MicrosoftCodeQualityAnalyzersResources.resx @@ -180,24 +180,18 @@ Named placeholders in the logging message template should not be comprised of only numeric characters. - - Parameter count mismatch + + Parameter count mismatch or invalid braces in message template Number of parameters supplied in the logging message template do not match the number of named placeholders - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - - - Invalid braces in message template + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. Invalid braces supplied in the logging message template - - Invalid braces supplied in the logging message template. - Use the LoggerMessage delegates diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.cs.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.cs.xlf index 5b9e0394fa..aefff64f19 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.cs.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.cs.xlf @@ -277,24 +277,19 @@ Šablona by měla být statický výraz - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - Počet parametrů zadaných v šabloně zprávy protokolování neodpovídá počtu pojmenovaných zástupných objektů. - - Number of parameters supplied in the logging message template do not match the number of named placeholders Počet parametrů zadaných v šabloně zprávy protokolování neodpovídá počtu pojmenovaných zástupných objektů. - - Parameter count mismatch - Neshoda počtu parametrů. + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. Pojmenované zástupné symboly v šabloně zprávy protokolování by neměly obsahovat jenom číselné znaky. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.de.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.de.xlf index 1c2300bbed..fd2330f4ff 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.de.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.de.xlf @@ -277,24 +277,19 @@ Vorlage muss ein statischer Ausdruck sein - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - Die Anzahl der in der Vorlage für Protokollierungsnachrichten angegebenen Parameter stimmt nicht mit der Anzahl benannter Platzhalter überein. - - Number of parameters supplied in the logging message template do not match the number of named placeholders Die Anzahl der in der Protokollierungsmeldungsvorlage angegebenen Parameter stimmt nicht mit der Anzahl der benannten Platzhalter überein - - Parameter count mismatch - Konflikt bei der Parameteranzahl + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. Benannte Platzhalter in der Vorlage für Protokollierungsnachrichten dürfen nicht nur aus numerischen Zeichen bestehen. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.es.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.es.xlf index 60975b9c56..457cf3dfff 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.es.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.es.xlf @@ -277,24 +277,19 @@ La plantilla debe ser una expresión estática - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - El número de parámetros proporcionados en la plantilla de mensaje de registro no coincide con el número de marcadores de posición con nombre - - Number of parameters supplied in the logging message template do not match the number of named placeholders El número de parámetros proporcionados en la plantilla de mensaje de registro no coincide con el número de marcadores de posición con nombre - - Parameter count mismatch - El recuento de parámetros no coincide + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. Los marcadores de posición con nombre de la plantilla de mensaje de registro no deben estar formados solo por caracteres numéricos. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.fr.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.fr.xlf index 547900b7de..cd4d3bec6b 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.fr.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.fr.xlf @@ -277,24 +277,19 @@ Le modèle doit être une expression statique. - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - Le nombre de paramètres fournis dans le modèle de message de journalisation ne correspond pas au nombre d’espaces réservés nommés. - - Number of parameters supplied in the logging message template do not match the number of named placeholders Le nombre de paramètres fournis dans le modèle de message de journalisation ne correspond pas au nombre d’espaces réservés nommés. - - Parameter count mismatch - Nombre de paramètres incorrects. + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. Les espaces réservés nommés dans le modèle de message de journalisation ne doivent pas être composés uniquement de caractères numériques. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.it.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.it.xlf index 0e98e93738..4bf3bc2615 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.it.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.it.xlf @@ -277,24 +277,19 @@ Il modello deve essere un'espressione statica - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - Il numero di parametri specificati nel modello di messaggio di registrazione non corrisponde al numero di segnaposto denominati. - - Number of parameters supplied in the logging message template do not match the number of named placeholders Il numero di parametri specificati nel modello di messaggio di registrazione non corrisponde al numero di segnaposto denominati - - Parameter count mismatch - Numero di parametri non corrispondente + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. I segnaposto denominati nel modello di messaggio di registrazione non devono contenere solo caratteri numerici. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ja.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ja.xlf index 2ac92eac66..038fd61455 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ja.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ja.xlf @@ -277,24 +277,19 @@ テンプレートは静的な式にする必要があります - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - ログ メッセージ テンプレートで指定されたパラメーターの数が、名前付きプレースホルダーの数と一致しません。 - - Number of parameters supplied in the logging message template do not match the number of named placeholders ログ メッセージ テンプレートで指定されたパラメーターの数が、名前付きプレースホルダーの数と一致しません - - Parameter count mismatch - パラメーター カウントが不一致 + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. ログ メッセージ テンプレートの名前付きプレースホルダーは、数字のみで構成することはできません。 diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ko.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ko.xlf index 1b3f611a85..88cdaddbf4 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ko.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ko.xlf @@ -277,24 +277,19 @@ 템플릿은 정적 표현식이어야 합니다. - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - 로깅 메시지 템플릿에 제공된 매개 변수 수가 명명된 자리 표시자의 수와 일치하지 않습니다. - - Number of parameters supplied in the logging message template do not match the number of named placeholders 로깅 메시지 템플릿에 제공된 매개 변수 수가 명명된 자리 표시자의 수와 일치하지 않습니다 - - Parameter count mismatch - 매개 변수의 개수가 일치하지 않음 + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. 로깅 메시지 템플릿의 명명된 자리 표시자는 숫자로만 구성되어서는 안 됩니다. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.pl.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.pl.xlf index d0dc4bd450..671882b323 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.pl.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.pl.xlf @@ -277,24 +277,19 @@ Szablon powinien być wyrażeniem statycznym - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - Liczba parametrów podanych w szablonie wiadomości rejestrowania jest niezgodna z liczbą nazwanych symboli zastępczych. - - Number of parameters supplied in the logging message template do not match the number of named placeholders Liczba parametrów podanych w szablonie wiadomości rejestrowania jest niezgodna z liczbą nazwanych symboli zastępczych - - Parameter count mismatch - Niezgodność liczby parametrów + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. Nazwane symbole zastępcze w szablonie wiadomości rejestrowania nie powinny składać się tylko z samych cyfr. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.pt-BR.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.pt-BR.xlf index 773f7bc409..d2667bc114 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.pt-BR.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.pt-BR.xlf @@ -277,24 +277,19 @@ O modelo deve ser uma expressão estática - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - O número de parâmetros fornecidos no modelo de mensagem de log não corresponde ao número de espaços reservados nomeados. - - Number of parameters supplied in the logging message template do not match the number of named placeholders O número de parâmetros fornecidos no modelo de mensagem de log não corresponde ao número de espaços reservados nomeados - - Parameter count mismatch - Incompatibilidade de contagem de parâmetros + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. Espaços reservados nomeados no modelo de mensagem de log não devem ser compostos apenas de caracteres numéricos. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ru.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ru.xlf index ea5e156122..e3bbb30d5f 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ru.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.ru.xlf @@ -277,24 +277,19 @@ Шаблон должен быть статическим выражением - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - Количество параметров, указанных в шаблоне сообщения о ведении журнала, не соответствует количеству именованных заполнителей. - - Number of parameters supplied in the logging message template do not match the number of named placeholders Количество параметров, указанных в шаблоне сообщения о ведении журнала, не соответствует количеству именованных заполнителей - - Parameter count mismatch - Несоответствие количества параметров + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. Именованные заполнители в шаблоне сообщения о ведении журнала не должны состоять только из цифр. diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.tr.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.tr.xlf index c693c37699..5a0056f4a9 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.tr.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.tr.xlf @@ -277,24 +277,19 @@ Şablon statik bir ifade olmalıdır - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - Günlük kaydı ileti şablonunda sağlanan parametrelerin sayısı, adlandırılmış yer tutucular sayısıyla eşleşmiyor. - - Number of parameters supplied in the logging message template do not match the number of named placeholders Günlük kaydı ileti şablonunda sağlanan parametrelerin sayısı, adlandırılmış yer tutucuların sayısıyla eşleşmiyor - - Parameter count mismatch - Parametre sayısı uyuşmazlığı + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. Günlük ileti şablonundaki adlandırılmış yer tutucular, yalnızca sayısal karakterlerden oluşmamalıdır diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.zh-Hans.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.zh-Hans.xlf index 3863567325..37f22b39a6 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.zh-Hans.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.zh-Hans.xlf @@ -277,24 +277,19 @@ 模板应为静态表达式 - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - 日志记录消息模板中所提供参数的数量与已命名占位符的数量不匹配。 - - Number of parameters supplied in the logging message template do not match the number of named placeholders 日志记录消息模板中所提供参数的数量与已命名占位符的数量不匹配 - - Parameter count mismatch - 参数计数不匹配。 + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. 日志记录消息模板中的已命名占位符不应仅由数值字符组成。 diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.zh-Hant.xlf b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.zh-Hant.xlf index 0a60fcb0e6..3a0f4fa9f5 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.zh-Hant.xlf +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/xlf/MicrosoftCodeQualityAnalyzersResources.zh-Hant.xlf @@ -277,24 +277,19 @@ 範本應為靜態運算式 - - Number of parameters supplied in the logging message template do not match the number of named placeholders. - 記錄訊息範本中提供的參數數目不符合已命名預留位置的數目。 - - Number of parameters supplied in the logging message template do not match the number of named placeholders 記錄訊息範本中提供的參數數目不符合已命名預留位置的數目 - - Parameter count mismatch - 參數計數不符 + + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. + Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. - - Invalid braces supplied in the logging message template. - Invalid braces supplied in the logging message template. + + Parameter count mismatch or invalid braces in message template + Parameter count mismatch or invalid braces in message template @@ -302,11 +297,6 @@ Invalid braces supplied in the logging message template - - Invalid braces in message template - Invalid braces in message template - - Named placeholders in the logging message template should not be comprised of only numeric characters. 記錄訊息範本中命名的預留位置不能只包含數值字元。 diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/LoggerMessageDefineAnalyzer.cs b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/LoggerMessageDefineAnalyzer.cs index 1b3cb0c22e..0e411c8780 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/LoggerMessageDefineAnalyzer.cs +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/LoggerMessageDefineAnalyzer.cs @@ -22,8 +22,7 @@ namespace Microsoft.NetCore.Analyzers.Runtime /// CA1848: /// CA2253: /// CA2254: - /// CA2017: - /// CA2017: + /// CA2017: /// [DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic)] public sealed class LoggerMessageDefineAnalyzer : DiagnosticAnalyzer @@ -75,21 +74,21 @@ public sealed class LoggerMessageDefineAnalyzer : DiagnosticAnalyzer isReportedAtCompilationEnd: false); internal static readonly DiagnosticDescriptor CA2017DefaultRule = DiagnosticDescriptorHelper.Create(CA2017RuleId, - CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticFormatParameterCountMismatchTitle)), + CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticFormatParameterCountOrBracesMismatchTitle)), CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticFormatParameterCountMismatchMessage)), DiagnosticCategory.Reliability, RuleLevel.BuildWarning, - description: CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticFormatParameterCountMismatchDescription)), + description: CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticFormatParameterCountOrBracesMismatchDescription)), isPortedFxCopRule: false, isDataflowRule: false, isReportedAtCompilationEnd: false); internal static readonly DiagnosticDescriptor CA2017BracesMismatchRule = DiagnosticDescriptorHelper.Create(CA2017RuleId, - CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticMessageTemplateBracesMismatchTitle)), + CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticFormatParameterCountOrBracesMismatchTitle)), CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticMessageTemplateBracesMismatchMessage)), DiagnosticCategory.Reliability, RuleLevel.BuildWarning, - description: CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticMessageTemplateBracesMismatchDescription)), + description: CreateLocalizableResourceString(nameof(LoggerMessageDiagnosticFormatParameterCountOrBracesMismatchDescription)), isPortedFxCopRule: false, isDataflowRule: false, isReportedAtCompilationEnd: false); diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md index 2256ed080a..2cf562a88c 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md @@ -1944,9 +1944,9 @@ Forward the 'CancellationToken' parameter to methods to ensure the operation can |CodeFix|True| --- -## [CA2017](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017): Parameter count mismatch +## [CA2017](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017): Parameter count mismatch or invalid braces in message template -Number of parameters supplied in the logging message template do not match the number of named placeholders. +Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid. |Item|Value| |-|-| diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif index a860dc9714..c8f0b5d86e 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif @@ -3516,8 +3516,8 @@ }, "CA2017": { "id": "CA2017", - "shortDescription": "Parameter count mismatch", - "fullDescription": "Number of parameters supplied in the logging message template do not match the number of named placeholders.", + "shortDescription": "Parameter count mismatch or invalid braces in message template", + "fullDescription": "Number of parameters supplied in the logging message template do not match the number of named placeholders or the braces present are invalid.", "defaultLevel": "warning", "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017", "properties": { diff --git a/src/NetAnalyzers/RulesMissingDocumentation.md b/src/NetAnalyzers/RulesMissingDocumentation.md index 0d5aa2f027..75e0f77588 100644 --- a/src/NetAnalyzers/RulesMissingDocumentation.md +++ b/src/NetAnalyzers/RulesMissingDocumentation.md @@ -2,17 +2,3 @@ Rule ID | Missing Help Link | Title | --------|-------------------|-------| -CA1510 | | Use ArgumentNullException throw helper | -CA1511 | | Use ArgumentException throw helper | -CA1512 | | Use ArgumentOutOfRangeException throw helper | -CA1513 | | Use ObjectDisposedException throw helper | -CA1856 | | Incorrect usage of ConstantExpected attribute | -CA1857 | | A constant is expected for the parameter | -CA1862 | | Use the 'StringComparison' method overloads to perform case-insensitive string comparisons | -CA1863 | | Use 'CompositeFormat' | -CA1865 | | Use char overload | -CA1866 | | Use char overload | -CA1867 | | Use char overload | -CA1870 | | Use a cached 'SearchValues' instance | -CA2021 | | Do not call Enumerable.Cast\ or Enumerable.OfType\ with incompatible types | -CA2261 | | Do not use ConfigureAwaitOptions.SuppressThrowing with Task\ |