From ec78600fbb4322ab5c9e6939cd6b153e0382d19a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:15:29 +0000 Subject: [PATCH 1/2] chore(deps): Bump the nuget-dependencies group with 6 updates Bumps coverlet.collector from 10.0.1 to 10.1.0 Bumps Microsoft.Extensions.DependencyInjection.Abstractions from 10.0.12 to 10.0.13 Bumps Microsoft.NET.Test.Sdk from 18.10.1 to 18.11.0 Bumps Microsoft.SourceLink.GitHub from 10.0.401 to 10.0.402 Bumps Spectre.Console.Cli from 0.55.0 to 0.57.2 Bumps xunit.runner.visualstudio from 4.0.0 to 4.0.1 --- updated-dependencies: - dependency-name: coverlet.collector dependency-version: 10.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: nuget-dependencies - dependency-name: Microsoft.Extensions.DependencyInjection.Abstractions dependency-version: 10.0.13 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: nuget-dependencies - dependency-name: Microsoft.NET.Test.Sdk dependency-version: 18.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: nuget-dependencies - dependency-name: Microsoft.SourceLink.GitHub dependency-version: 10.0.402 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: nuget-dependencies - dependency-name: Spectre.Console.Cli dependency-version: 0.57.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: nuget-dependencies - dependency-name: xunit.runner.visualstudio dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: nuget-dependencies ... Signed-off-by: dependabot[bot] --- Directory.Packages.props | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 91d8d6c..06d8f96 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,20 +7,20 @@ - - + + - - + + - + - + From b732cb313572f470b1a560ad5b53bcbc9adc8ff1 Mon Sep 17 00:00:00 2001 From: JerrettDavis Date: Mon, 19 Oct 2026 13:48:17 -0500 Subject: [PATCH 2/2] fix: make Spectre.Console.Cli overrides public for 0.57 --- src/Inshiminator.Cli/Program.cs | 154 ++++++++++++++++---------------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/src/Inshiminator.Cli/Program.cs b/src/Inshiminator.Cli/Program.cs index 804f15c..123e726 100644 --- a/src/Inshiminator.Cli/Program.cs +++ b/src/Inshiminator.Cli/Program.cs @@ -1,77 +1,77 @@ -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Threading; -using System.Threading.Tasks; -using Spectre.Console; -using Spectre.Console.Cli; - -namespace Inshiminator.Cli; - -public static class Program -{ - public static async Task Main(string[] args) - { - var app = new CommandApp(); - app.Configure(config => - { - config.SetApplicationName("inshim"); - config.AddCommand("analyze") - .WithDescription("Analyze a project for hard dependencies") - .WithExample(new[] { "analyze", "MyProject.csproj" }); - - config.AddCommand("doctor") - .WithDescription("Check system for Inshiminator compatibility"); - }); - - return await app.RunAsync(args); - } -} - -internal sealed class AnalyzeCommand : AsyncCommand -{ - public sealed class Settings : CommandSettings - { - [Description("Path to the project or solution file")] - [CommandArgument(0, "[PROJECT]")] - public string? ProjectPath { get; init; } - - [Description("Generate a SARIF report")] - [CommandOption("-s|--sarif")] - public string? SarifPath { get; init; } - } - - protected override async Task ExecuteAsync([NotNull] CommandContext context, [NotNull] Settings settings, CancellationToken cancellationToken) - { - var path = settings.ProjectPath ?? "."; - AnsiConsole.MarkupLine($"[blue]Analyzing:[/] {path}"); - - await AnsiConsole.Status() - .StartAsync("Running analysis...", async ctx => - { - await Task.Delay(1000, cancellationToken); - }); - - AnsiConsole.MarkupLine("[green]Analysis complete![/]"); - AnsiConsole.Write(new Table() - .AddColumn("ID") - .AddColumn("Severity") - .AddColumn("Message") - .AddRow("INSHIM001", "[yellow]Warning[/]", "DateTime.UtcNow usage in OrderService.cs:45") - .AddRow("INSHIM002", "[yellow]Warning[/]", "Guid.NewGuid() usage in UserProfile.cs:12")); - - return 0; - } -} - -internal sealed class DoctorCommand : Command -{ - protected override int Execute([NotNull] CommandContext context, CancellationToken cancellationToken) - { - AnsiConsole.MarkupLine("[blue]Inshiminator Doctor[/]"); - AnsiConsole.MarkupLine(" .NET SDK: [green]Found[/]"); - AnsiConsole.MarkupLine(" Git: [green]Found[/]"); - AnsiConsole.MarkupLine(" Analyzers: [green]Loaded[/]"); - return 0; - } -} +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Threading; +using System.Threading.Tasks; +using Spectre.Console; +using Spectre.Console.Cli; + +namespace Inshiminator.Cli; + +public static class Program +{ + public static async Task Main(string[] args) + { + var app = new CommandApp(); + app.Configure(config => + { + config.SetApplicationName("inshim"); + config.AddCommand("analyze") + .WithDescription("Analyze a project for hard dependencies") + .WithExample(new[] { "analyze", "MyProject.csproj" }); + + config.AddCommand("doctor") + .WithDescription("Check system for Inshiminator compatibility"); + }); + + return await app.RunAsync(args); + } +} + +internal sealed class AnalyzeCommand : AsyncCommand +{ + public sealed class Settings : CommandSettings + { + [Description("Path to the project or solution file")] + [CommandArgument(0, "[PROJECT]")] + public string? ProjectPath { get; init; } + + [Description("Generate a SARIF report")] + [CommandOption("-s|--sarif")] + public string? SarifPath { get; init; } + } + + public override async Task ExecuteAsync([NotNull] CommandContext context, [NotNull] Settings settings, CancellationToken cancellationToken) + { + var path = settings.ProjectPath ?? "."; + AnsiConsole.MarkupLine($"[blue]Analyzing:[/] {path}"); + + await AnsiConsole.Status() + .StartAsync("Running analysis...", async ctx => + { + await Task.Delay(1000, cancellationToken); + }); + + AnsiConsole.MarkupLine("[green]Analysis complete![/]"); + AnsiConsole.Write(new Table() + .AddColumn("ID") + .AddColumn("Severity") + .AddColumn("Message") + .AddRow("INSHIM001", "[yellow]Warning[/]", "DateTime.UtcNow usage in OrderService.cs:45") + .AddRow("INSHIM002", "[yellow]Warning[/]", "Guid.NewGuid() usage in UserProfile.cs:12")); + + return 0; + } +} + +internal sealed class DoctorCommand : Command +{ + public override int Execute([NotNull] CommandContext context, CancellationToken cancellationToken) + { + AnsiConsole.MarkupLine("[blue]Inshiminator Doctor[/]"); + AnsiConsole.MarkupLine(" .NET SDK: [green]Found[/]"); + AnsiConsole.MarkupLine(" Git: [green]Found[/]"); + AnsiConsole.MarkupLine(" Analyzers: [green]Loaded[/]"); + return 0; + } +}