Skip to content

Commit c3e25d2

Browse files
committed
Add docs link for missing Xamarin SDKs
1 parent 08b51c3 commit c3e25d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

csharp/autobuilder/Semmle.Autobuild.CSharp/CSharpDiagnosticClassifier.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ namespace Semmle.Autobuild.CSharp
1111
/// </summary>
1212
public class MissingXamarinSdkRule : DiagnosticRule
1313
{
14+
private const string docsUrl = "https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-xamarin-applications";
15+
1416
public class Result : IDiagnosticsResult
1517
{
1618
/// <summary>
@@ -29,7 +31,7 @@ public DiagnosticMessage ToDiagnosticMessage<T>(Autobuilder<T> builder) where T
2931
$"missing-xamarin-{this.SDKName.ToLower()}-sdk",
3032
$"Missing Xamarin SDK for {this.SDKName}"
3133
);
32-
diag.PlaintextMessage = "Please install this SDK before running CodeQL.";
34+
diag.MarkdownMessage = $"Please [configure your workflow]({docsUrl}) for this SDK before running CodeQL.";
3335

3436
return diag;
3537
}

0 commit comments

Comments
 (0)