diff --git a/Src/Diagnostics/Roslyn/Core/Documentation/DoNotUseVerbatimCrefsAnalyzer.cs b/Src/Diagnostics/Roslyn/Core/Documentation/DoNotUseVerbatimCrefsAnalyzer.cs index 24d9a0cee38f1a9c9b0699ca25734ebd456e6421..b4f9f8d09905df88c09205805ef1dcfe684238f9 100644 --- a/Src/Diagnostics/Roslyn/Core/Documentation/DoNotUseVerbatimCrefsAnalyzer.cs +++ b/Src/Diagnostics/Roslyn/Core/Documentation/DoNotUseVerbatimCrefsAnalyzer.cs @@ -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 SupportedDiagnostics { diff --git a/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticsResources.Designer.cs b/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticsResources.Designer.cs index 3e925d729c066c11efc4df4a4c89c9a466b87852..37e41f13015da0fec9eb4cc78d36069386007d12 100644 --- a/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticsResources.Designer.cs +++ b/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticsResources.Designer.cs @@ -294,6 +294,15 @@ internal class RoslynDiagnosticsResources { } } + /// + /// Looks up a localized string similar to Avoid using cref tags with a prefix. + /// + internal static string UseProperCrefTagsTitle { + get { + return ResourceManager.GetString("UseProperCrefTagsTitle", resourceCulture); + } + } + /// /// Looks up a localized string similar to Use SpecializedCollections.SingletonEnumerable<T>(). /// diff --git a/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticsResources.resx b/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticsResources.resx index 1b214b4e17c349d106eee0e94c7c1946d4d9728f..4321cabec99591133811120981ddf060a2d4dd07 100644 --- a/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticsResources.resx +++ b/Src/Diagnostics/Roslyn/Core/RoslynDiagnosticsResources.resx @@ -207,4 +207,7 @@ This collection is directly indexable. Going through LINQ here causes unnecessary allocations and CPU work. + + Avoid using cref tags with a prefix + \ No newline at end of file