Skip to content

Commit

Permalink
Added compilcation end tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MattFromRVA committed Aug 21, 2024
1 parent dda9795 commit 1db03a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public class CompilationStartedAnalyzerWithCompilationWideAnalysis : DiagnosticA
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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1db03a9

Please sign in to comment.