@@ -47,13 +47,13 @@ internal class SA1627DocumentationTextMustNotBeEmpty : DiagnosticAnalyzer
4747 /// The ID for diagnostics produced by the <see cref="SA1627DocumentationTextMustNotBeEmpty"/> analyzer.
4848 /// </summary>
4949 public const string DiagnosticId = "SA1627" ;
50- private const string Title = "Documentation text must not be empty" ;
51- private const string MessageFormat = "The documentation text within the \' {0} \' tag must not be empty." ;
52- private const string Description = "The XML header documentation for a C# code element contains an empty tag." ;
53- private const string HelpLink = "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1627.md" ;
50+ private static readonly LocalizableString Title = new LocalizableResourceString ( nameof ( DocumentationResources . SA1627Title ) , DocumentationResources . ResourceManager , typeof ( DocumentationResources ) ) ;
51+ private static readonly LocalizableString MessageFormat = new LocalizableResourceString ( nameof ( DocumentationResources . SA1627MessageFormat ) , DocumentationResources . ResourceManager , typeof ( DocumentationResources ) ) ;
52+ private static readonly LocalizableString Description = new LocalizableResourceString ( nameof ( DocumentationResources . SA1627Description ) , DocumentationResources . ResourceManager , typeof ( DocumentationResources ) ) ;
53+ private static readonly string HelpLink = "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1627.md" ;
5454
5555 private static readonly DiagnosticDescriptor Descriptor =
56- new DiagnosticDescriptor ( DiagnosticId , Title , MessageFormat , AnalyzerCategory . DocumentationRules , DiagnosticSeverity . Warning , AnalyzerConstants . DisabledNoTests , Description , HelpLink ) ;
56+ new DiagnosticDescriptor ( DiagnosticId , Title , MessageFormat , AnalyzerCategory . DocumentationRules , DiagnosticSeverity . Warning , AnalyzerConstants . EnabledByDefault , Description , HelpLink ) ;
5757
5858 private static readonly Action < CompilationStartAnalysisContext > CompilationStartAction = HandleCompilationStart ;
5959 private static readonly Action < SyntaxNodeAnalysisContext > XmlElementAction = HandleXmlElement ;
0 commit comments