提交 2804b61f 编写于 作者: J jasonmalinowski

Correctly specify the text and description for the verbatim crefs analyzer. (changeset 1388971)

上级 871a3d8d
......@@ -13,12 +13,13 @@ public abstract class DoNotUseVerbatimCrefsAnalyzer : DiagnosticAnalyzer
{
internal static DiagnosticDescriptor Rule = new DiagnosticDescriptor(
RoslynDiagnosticIds.DoNotUseVerbatimCrefsRuleId,
RoslynDiagnosticsResources.UseProperCrefTagsDescription,
RoslynDiagnosticsResources.UseProperCrefTagsMessage,
"Documentation",
DiagnosticSeverity.Warning,
title: RoslynDiagnosticsResources.UseProperCrefTagsTitle,
messageFormat: RoslynDiagnosticsResources.UseProperCrefTagsMessage,
category: "Documentation",
defaultSeverity: DiagnosticSeverity.Warning,
isEnabledByDefault: true,
customTags: WellKnownDiagnosticTags.Telemetry);
customTags: WellKnownDiagnosticTags.Telemetry,
description: RoslynDiagnosticsResources.UseProperCrefTagsDescription);
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
{
......
......@@ -294,6 +294,15 @@ internal class RoslynDiagnosticsResources {
}
}
/// <summary>
/// Looks up a localized string similar to Avoid using cref tags with a prefix.
/// </summary>
internal static string UseProperCrefTagsTitle {
get {
return ResourceManager.GetString("UseProperCrefTagsTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Use SpecializedCollections.SingletonEnumerable&lt;T&gt;().
/// </summary>
......
......@@ -207,4 +207,7 @@
<data name="DoNotUseLinqOnIndexableCollectionDescription" xml:space="preserve">
<value>This collection is directly indexable. Going through LINQ here causes unnecessary allocations and CPU work.</value>
</data>
<data name="UseProperCrefTagsTitle" xml:space="preserve">
<value>Avoid using cref tags with a prefix</value>
</data>
</root>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册