dotnet/roslyn-sdk

Update `CompilationStartedAnalyzerWithCompilationWideAnalysis` sample to include compilation end custom tag

Youssef1313 opened this issue · 0 comments

See dotnet/roslyn#65304 (comment)

Both C# and VB samples need to be updated:

internal static DiagnosticDescriptor Rule =
new DiagnosticDescriptor(
DiagnosticIds.CompilationStartedAnalyzerWithCompilationWideAnalysisRuleId,
Title,
MessageFormat,
DiagnosticCategories.Stateful,
DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: Description);

Friend Shared Rule As New DiagnosticDescriptor(DiagnosticIds.CompilationStartedAnalyzerWithCompilationWideAnalysisRuleId, Title, MessageFormat, DiagnosticCategories.Stateful, DiagnosticSeverity.Warning, isEnabledByDefault:=True, description:=Description)