From a4c0ad8fb60d694cc7d2546016d742547f1d585b Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Sun, 23 Jan 2022 22:42:29 +0100 Subject: [PATCH] Enable ROS... analyzers to be configured from roslynatorconfig --- src/Common/CommonDiagnosticRules.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Common/CommonDiagnosticRules.cs b/src/Common/CommonDiagnosticRules.cs index 38486dccba..76b5190003 100644 --- a/src/Common/CommonDiagnosticRules.cs +++ b/src/Common/CommonDiagnosticRules.cs @@ -9,7 +9,7 @@ namespace Roslynator { internal static class CommonDiagnosticRules { - public static readonly DiagnosticDescriptor AnalyzerIsObsolete = new( + public static readonly DiagnosticDescriptor AnalyzerIsObsolete = DiagnosticDescriptorFactory.Create( id: CommonDiagnosticIdentifiers.AnalyzerIsObsolete, title: "Analyzer is obsolete", messageFormat: "Analyzer {0} is obsolete.{1}", @@ -20,7 +20,7 @@ internal static class CommonDiagnosticRules helpLinkUri: null, customTags: Array.Empty()); - public static readonly DiagnosticDescriptor AnalyzerOptionIsObsolete = new( + public static readonly DiagnosticDescriptor AnalyzerOptionIsObsolete = DiagnosticDescriptorFactory.Create( id: CommonDiagnosticIdentifiers.AnalyzerOptionIsObsolete, title: "Analyzer option is obsolete", messageFormat: "Analyzer option '{0}' is obsolete{1}", @@ -31,7 +31,7 @@ internal static class CommonDiagnosticRules helpLinkUri: null, customTags: Array.Empty()); - public static readonly DiagnosticDescriptor RequiredConfigOptionNotSet = new( + public static readonly DiagnosticDescriptor RequiredConfigOptionNotSet = DiagnosticDescriptorFactory.Create( id: CommonDiagnosticIdentifiers.RequiredConfigOptionNotSet, title: "Analyzer requires config option to be specified", messageFormat: "Analyzer {0} requires config option to be specified: {1}",