Skip to content

Commit

Permalink
Enable ROS... analyzers to be configured from roslynatorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Jan 23, 2022
1 parent 43f45f6 commit a4c0ad8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Common/CommonDiagnosticRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand All @@ -20,7 +20,7 @@ internal static class CommonDiagnosticRules
helpLinkUri: null,
customTags: Array.Empty<string>());

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}",
Expand All @@ -31,7 +31,7 @@ internal static class CommonDiagnosticRules
helpLinkUri: null,
customTags: Array.Empty<string>());

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}",
Expand Down

0 comments on commit a4c0ad8

Please sign in to comment.