@@ -28,23 +28,28 @@ internal class SA1518CodeMustNotContainBlankLinesAtEndOfFile : DiagnosticAnalyze
2828 /// The ID for diagnostics produced by the <see cref="SA1518CodeMustNotContainBlankLinesAtEndOfFile"/> analyzer.
2929 /// </summary>
3030 public const string DiagnosticId = "SA1518" ;
31- private const string TitleForAllowSetting = "Code must not contain blank lines at end of file" ;
31+
32+ private const string Title = "Fix blank lines at the end of the file" ;
33+
3234 private const string MessageFormatForAllowSetting = "Code must not contain blank lines at end of file" ;
33- private const string TitleForRequireSetting = "Code is required to end with a single newline character" ;
35+ private const string DescriptionForAllowSetting = "Code must not contain blank lines at end of file" ;
36+
3437 private const string MessageFormatForRequireSetting = "Code is required to end with a single newline character" ;
35- private const string TitleForOmitSetting = "Code may not end with a newline character" ;
38+ private const string DescriptionForRequireSetting = "Code is required to end with a single newline character" ;
39+
3640 private const string MessageFormatForOmitSetting = "Code may not end with a newline character" ;
37- private const string Description = "Fix blank lines at the end of the file." ;
41+ private const string DescriptionForOmitSetting = "Code may not end with a newline character" ;
42+
3843 private const string HelpLink = "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md" ;
3944
4045 private static readonly DiagnosticDescriptor DescriptorForAllowSetting =
41- new DiagnosticDescriptor ( DiagnosticId , TitleForAllowSetting , MessageFormatForAllowSetting , AnalyzerCategory . LayoutRules , DiagnosticSeverity . Warning , AnalyzerConstants . EnabledByDefault , Description , HelpLink ) ;
46+ new DiagnosticDescriptor ( DiagnosticId , Title , MessageFormatForAllowSetting , AnalyzerCategory . LayoutRules , DiagnosticSeverity . Warning , AnalyzerConstants . EnabledByDefault , DescriptionForAllowSetting , HelpLink ) ;
4247
4348 private static readonly DiagnosticDescriptor DescriptorForRequireSetting =
44- new DiagnosticDescriptor ( DiagnosticId , TitleForRequireSetting , MessageFormatForRequireSetting , AnalyzerCategory . LayoutRules , DiagnosticSeverity . Warning , AnalyzerConstants . EnabledByDefault , Description , HelpLink ) ;
49+ new DiagnosticDescriptor ( DiagnosticId , Title , MessageFormatForRequireSetting , AnalyzerCategory . LayoutRules , DiagnosticSeverity . Warning , AnalyzerConstants . EnabledByDefault , DescriptionForRequireSetting , HelpLink ) ;
4550
4651 private static readonly DiagnosticDescriptor DescriptorForOmitSetting =
47- new DiagnosticDescriptor ( DiagnosticId , TitleForOmitSetting , MessageFormatForOmitSetting , AnalyzerCategory . LayoutRules , DiagnosticSeverity . Warning , AnalyzerConstants . EnabledByDefault , Description , HelpLink ) ;
52+ new DiagnosticDescriptor ( DiagnosticId , Title , MessageFormatForOmitSetting , AnalyzerCategory . LayoutRules , DiagnosticSeverity . Warning , AnalyzerConstants . EnabledByDefault , DescriptionForOmitSetting , HelpLink ) ;
4853
4954 private static readonly Action < CompilationStartAnalysisContext > CompilationStartAction = HandleCompilationStart ;
5055 private static readonly Action < SyntaxTreeAnalysisContext , StyleCopSettings > SyntaxTreeAction = HandleSyntaxTree ;
0 commit comments