@@ -132,13 +132,17 @@ static string GetAttributeLineForMember(ISymbol member)
132132
133133 private static bool CheckDiagnostics ( StubClassInfo classInfo , SourceProductionContext context )
134134 {
135+ const string helpUrl = "https://bunit.dev/docs/extensions/bunit-generators.html" ;
136+
135137 if ( classInfo . IsNestedClass )
136138 {
137139 context . ReportDiagnostic ( Diagnostic . Create ( new DiagnosticDescriptor (
138140 "BUNIT0001" ,
139141 "Stubbing nested classes is not supported" ,
140142 "Stubbing nested classes ({0}) is not supported." ,
141- "Bunit" , DiagnosticSeverity . Warning , true ) ,
143+ "Bunit" , DiagnosticSeverity . Warning ,
144+ isEnabledByDefault : true ,
145+ helpLinkUri : helpUrl ) ,
142146 Location . None ,
143147 classInfo . TargetType . ToDisplayString ( ) ) ) ;
144148 return true ;
@@ -150,7 +154,9 @@ private static bool CheckDiagnostics(StubClassInfo classInfo, SourceProductionCo
150154 "BUNIT0002" ,
151155 "Stubbing non-partial classes is not supported" ,
152156 "Class ({0}) is not partial." ,
153- "Bunit" , DiagnosticSeverity . Warning , true ) ,
157+ "Bunit" , DiagnosticSeverity . Warning ,
158+ isEnabledByDefault : true ,
159+ helpLinkUri : helpUrl ) ,
154160 Location . None ,
155161 classInfo . TargetType . ToDisplayString ( ) ) ) ;
156162 return true ;
0 commit comments