@@ -22,12 +22,14 @@ public class NsDepCopDiagnosticAnalyzer : DiagnosticAnalyzer
22
22
/// <summary>
23
23
/// Descriptor for the 'Illegal namespace dependency' diagnostic.
24
24
/// </summary>
25
- private static readonly DiagnosticDescriptor _illegalDependencyDescriptor = Constants . IllegalDependencyIssue . ToDiagnosticDescriptor ( ) ;
25
+ private static readonly DiagnosticDescriptor _illegalDependencyDescriptor =
26
+ Constants . IllegalDependencyIssue . ToDiagnosticDescriptor ( ) ;
26
27
27
28
/// <summary>
28
29
/// Descriptor for the 'Config exception' diagnostic.
29
30
/// </summary>
30
- private static readonly DiagnosticDescriptor _configExceptionDescriptor = Constants . ConfigExceptionIssue . ToDiagnosticDescriptor ( ) ;
31
+ private static readonly DiagnosticDescriptor _configExceptionDescriptor =
32
+ Constants . ConfigExceptionIssue . ToDiagnosticDescriptor ( ) ;
31
33
32
34
public override ImmutableArray < DiagnosticDescriptor > SupportedDiagnostics
33
35
{
@@ -113,7 +115,9 @@ private Diagnostic CreateIllegalDependencyDiagnostic(SyntaxNode node, Dependency
113
115
defaultSeverity : _illegalDependencyDescriptor . DefaultSeverity ,
114
116
isEnabledByDefault : true ,
115
117
warningLevel : warningLevel ,
116
- location : Location . Create ( node . SyntaxTree , node . Span ) ) ;
118
+ location : Location . Create ( node . SyntaxTree , node . Span ) ,
119
+ helpLink : _illegalDependencyDescriptor . HelpLinkUri ,
120
+ title : _illegalDependencyDescriptor . Title ) ;
117
121
}
118
122
119
123
private void ReportConfigException ( SyntaxNodeAnalysisContext context , Exception exception )
0 commit comments