Merge pull request #1180 from MattFromRVA/Add_Compilation_End_Custom_Tag
Add CompilationEnd Tag to CompilationStartedAnalyzerWithCompilationWideAnalysis Sample
This commit is contained in:
Коммит
0af0fc38a2
|
@ -42,7 +42,8 @@ namespace Sample.Analyzers
|
|||
DiagnosticCategories.Stateful,
|
||||
DiagnosticSeverity.Warning,
|
||||
isEnabledByDefault: true,
|
||||
description: Description);
|
||||
description: Description,
|
||||
customTags: WellKnownDiagnosticTags.CompilationEnd);
|
||||
|
||||
public const string UnsecureMethodAttributeName = "MyNamespace.UnsecureMethodAttribute";
|
||||
public const string SecureTypeInterfaceName = "MyNamespace.ISecureType";
|
||||
|
|
|
@ -33,7 +33,7 @@ Namespace BasicAnalyzers
|
|||
Friend Shared ReadOnly MessageFormat As LocalizableString = "Type '{0}' is a secure type as it implements interface '{1}', but it also implements interface '{2}' which has unsecure method(s)."
|
||||
Friend Shared ReadOnly Description As LocalizableString = "Secure types must not implement interfaces with unsecure methods."
|
||||
|
||||
Friend Shared Rule As 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, Nothing, WellKnownDiagnosticTags.CompilationEnd)
|
||||
#End Region
|
||||
|
||||
Public Const UnsecureMethodAttributeName As String = "MyNamespace.UnsecureMethodAttribute"
|
||||
|
|
Загрузка…
Ссылка в новой задаче