Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: nuget
directory: /src/ALCops.Mcp
schedule:
interval: weekly
allow:
- dependency-name: ALCops.Analyzers
2 changes: 1 addition & 1 deletion src/ALCops.Mcp/ALCops.Mcp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageReference Include="ModelContextProtocol" Version="0.9.0-preview.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="System.Composition.AttributedModel" Version="8.0.0" />
<PackageReference Include="ALCops.Analyzers" Version="0.5.0" PrivateAssets="none" />
<PackageReference Include="ALCops.Analyzers" Version="0.8.6" PrivateAssets="none" />
</ItemGroup>

<!-- BC Dev Tools — needed at compile time, excluded from package by ExcludeBcDevToolsFromPublish.
Expand Down
7 changes: 7 additions & 0 deletions src/ALCops.Mcp/Services/BcDevToolsBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ internal static class BcDevToolsBootstrap
{
RegisterAssemblyResolver(path);
Console.Error.WriteLine($"BC DevTools: {path}");
try
{
var version = System.Diagnostics.FileVersionInfo
.GetVersionInfo(Path.Combine(path, MarkerDll));
Console.Error.WriteLine($"BC DevTools version: {version.FileVersion}");
}
catch { /* non-critical */ }
}
else
{
Expand Down
3 changes: 3 additions & 0 deletions src/ALCops.Mcp/Services/DiagnosticsRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public async Task<IReadOnlyList<DiagnosticResult>> RunAsync(
if (diagnostic.IsSuppressed)
continue;

if (diagnostic.Id == "AD0001")
Console.Error.WriteLine($"Analyzer exception: {diagnostic.GetMessage()}");

// Ruleset filter: suppress diagnostics set to None, override severity for others
var effectiveSeverity = diagnostic.Severity;
if (provider is AnalyzerSet analyzerSet && analyzerSet.RuleActions is { } ruleActions)
Expand Down
Loading