@@ -132,13 +132,17 @@ static string GetAttributeLineForMember(ISymbol member)
132
132
133
133
private static bool CheckDiagnostics ( StubClassInfo classInfo , SourceProductionContext context )
134
134
{
135
+ const string helpUrl = "https://bunit.dev/docs/extensions/bunit-generators.html" ;
136
+
135
137
if ( classInfo . IsNestedClass )
136
138
{
137
139
context . ReportDiagnostic ( Diagnostic . Create ( new DiagnosticDescriptor (
138
140
"BUNIT0001" ,
139
141
"Stubbing nested classes is not supported" ,
140
142
"Stubbing nested classes ({0}) is not supported." ,
141
- "Bunit" , DiagnosticSeverity . Warning , true ) ,
143
+ "Bunit" , DiagnosticSeverity . Warning ,
144
+ isEnabledByDefault : true ,
145
+ helpLinkUri : helpUrl ) ,
142
146
Location . None ,
143
147
classInfo . TargetType . ToDisplayString ( ) ) ) ;
144
148
return true ;
@@ -150,7 +154,9 @@ private static bool CheckDiagnostics(StubClassInfo classInfo, SourceProductionCo
150
154
"BUNIT0002" ,
151
155
"Stubbing non-partial classes is not supported" ,
152
156
"Class ({0}) is not partial." ,
153
- "Bunit" , DiagnosticSeverity . Warning , true ) ,
157
+ "Bunit" , DiagnosticSeverity . Warning ,
158
+ isEnabledByDefault : true ,
159
+ helpLinkUri : helpUrl ) ,
154
160
Location . None ,
155
161
classInfo . TargetType . ToDisplayString ( ) ) ) ;
156
162
return true ;
0 commit comments