diff --git a/.claude/hooks/coding-rules.sh b/.claude/hooks/coding-rules.sh
index f1a9111b..3d11a810 100755
--- a/.claude/hooks/coding-rules.sh
+++ b/.claude/hooks/coding-rules.sh
@@ -61,7 +61,7 @@ display="${file##*/}"
# (documentation routinely shows `var` in sample code), an anonymous type (C#
# gives no other spelling), and an occurrence inside a string literal (the
# analyzer suites embed C# fixtures that deliberately use `var`).
-# shellcheck disable=SC2317 # reached through the `"rule_${rule}"` dispatch in the run section below
+# shellcheck disable=SC2317,SC2329 # reached through the `"rule_${rule}"` dispatch in the run section below
rule_explicit_types() {
awk -v name="$display" '
{
@@ -94,7 +94,7 @@ rule_explicit_types() {
' "$file"
}
-# shellcheck disable=SC2317 # reached through the `"${rule}_hint"` dispatch in the run section below
+# shellcheck disable=SC2317,SC2329 # reached through the `"${rule}_hint"` dispatch in the run section below
explicit_types_hint() {
printf '%s' "Coding rule — explicit types (CLAUDE.md, \"Coding rules\"). This file now declares
inferred types:
diff --git a/.github/workflows/analyzers.yml b/.github/workflows/analyzers.yml
index 303d4102..6dba83bc 100644
--- a/.github/workflows/analyzers.yml
+++ b/.github/workflows/analyzers.yml
@@ -35,7 +35,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup .NET
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
@@ -65,7 +65,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup SDKs (release + floor)
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
# Two SDKs on purpose. 10.0.x is the SDK release.yml packs with, so the pack step below produces
# the exact artifact consumers receive. 8.0.100 (Roslyn 4.8.0 == VS 2022 17.8) is the oldest
diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml
index 0167b493..fffd8d00 100644
--- a/.github/workflows/canary.yml
+++ b/.github/workflows/canary.yml
@@ -48,14 +48,14 @@ jobs:
- name: Setup the next .NET preview (best effort)
id: preview
continue-on-error: true
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '11.0.x'
dotnet-quality: preview
# The build SDK. net8.0 is only a target framework; global.json pins the .NET 10 SDK for the build itself.
- name: Setup the build SDK (.NET 10)
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1f73722b..beccfc92 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup .NET
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
@@ -92,7 +92,7 @@ jobs:
# RUNS net472 assemblies ships on the windows-latest image, and the net472 targeting pack for COMPILATION
# is supplied hermetically by the Microsoft.NETFramework.ReferenceAssemblies package — so no extra install.
- name: Setup .NET (build SDK)
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
@@ -134,7 +134,7 @@ jobs:
# runs normally, and 8.0.x brings the .NET 8 runtime — the floor the tooling ships against — so the run
# step below can execute the net8 binaries on it.
- name: Setup .NET (floor runtime + build SDK)
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: |
8.0.x
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 7041c27c..227ddbf9 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Initialize CodeQL
- uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4
+ uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
with:
languages: csharp
# Buildless extraction: no .NET SDK or build step is needed, and it sidesteps
@@ -46,6 +46,6 @@ jobs:
build-mode: none
- name: Perform CodeQL analysis
- uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4
+ uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
with:
category: "/language:csharp"
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml
index 247122b1..1bb18e0b 100644
--- a/.github/workflows/dependency-review.yml
+++ b/.github/workflows/dependency-review.yml
@@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Dependency review
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
+ uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1
with:
# Fail on moderate-or-higher advisories. Only dependency changes introduced by the PR are checked,
# so this is a genuine gate rather than noise; lower to 'low' to be stricter, raise to 'high' to be
diff --git a/.github/workflows/gendoc-docs.yml b/.github/workflows/gendoc-docs.yml
index 350bfa39..62cfcfa4 100644
--- a/.github/workflows/gendoc-docs.yml
+++ b/.github/workflows/gendoc-docs.yml
@@ -43,7 +43,7 @@ jobs:
ref: ${{ github.head_ref }}
- name: Setup .NET
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml
index f6f99d6a..19243fb4 100644
--- a/.github/workflows/mutation.yml
+++ b/.github/workflows/mutation.yml
@@ -79,7 +79,7 @@ jobs:
fetch-depth: 0
- name: Setup .NET
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
@@ -233,7 +233,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup .NET
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
diff --git a/.github/workflows/release-dryrun.yml b/.github/workflows/release-dryrun.yml
index 1630b6f9..b727b7c9 100644
--- a/.github/workflows/release-dryrun.yml
+++ b/.github/workflows/release-dryrun.yml
@@ -53,7 +53,7 @@ jobs:
fetch-depth: 0
- name: Setup .NET
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
# The release SDK — the same one release.yml packs with, so this rehearses the real pack path.
dotnet-version: '10.0.x'
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f8a44027..74fee31a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -76,7 +76,7 @@ jobs:
fetch-depth: 0
- name: Setup .NET
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
@@ -218,7 +218,7 @@ jobs:
# verify provenance against the Release asset and the nuget.org signature via `dotnet nuget verify`.
# Runs BEFORE both publications on purpose: only attested artifacts are ever released or pushed.
- name: Attest build provenance
- uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
+ uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-path: |
artifacts/*.nupkg
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index cc53bdc8..5ec901e9 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -49,7 +49,7 @@ jobs:
persist-credentials: false
- name: Run Scorecard analysis
- uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
+ uses: ossf/scorecard-action@23f22cd43608bae7a1f1fa2603d7314dee9538a5 # v2.6.0
with:
results_file: results.sarif
results_format: sarif
@@ -64,6 +64,6 @@ jobs:
retention-days: 5
- name: Upload SARIF to code-scanning
- uses: github/codeql-action/upload-sarif@24c54180a607b1449ed407dd24f251e4e9147c8d # v4
+ uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
with:
sarif_file: results.sarif
diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
index d9298d1a..6ef33e24 100644
--- a/.github/workflows/sonar.yml
+++ b/.github/workflows/sonar.yml
@@ -41,13 +41,13 @@ jobs:
fetch-depth: 0
- name: Setup .NET
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
+ uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
- name: Setup Java
# The SonarScanner for .NET runs on the JVM; SonarQube Cloud requires Java 17+.
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
+ uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: temurin
java-version: '17'
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 468ba302..1515eeae 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -24,26 +24,26 @@
-->
-
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
-
+
diff --git a/FirstClassErrors.Cli/CatalogDiffCommand.cs b/FirstClassErrors.Cli/CatalogDiffCommand.cs
index e5c7f2d3..99d9c539 100644
--- a/FirstClassErrors.Cli/CatalogDiffCommand.cs
+++ b/FirstClassErrors.Cli/CatalogDiffCommand.cs
@@ -73,7 +73,7 @@ internal CatalogDiffCommand(ICatalogSnapshotSource snapshotSource, FuncPrints the current configuration file, or notes its absence.
internal sealed class ConfigShowCommand : Command {
- protected override int Execute(CommandContext context, ConfigScopedSettings settings, CancellationToken cancellationToken) {
+ public override int Execute(CommandContext context, ConfigScopedSettings settings, CancellationToken cancellationToken) {
string path = ConfigurationStore.Resolve(settings.ConfigPath);
if (!ConfigurationStore.Exists(path)) {
diff --git a/FirstClassErrors.Cli/GenerateCommand.cs b/FirstClassErrors.Cli/GenerateCommand.cs
index d10fd7a5..25bc3295 100644
--- a/FirstClassErrors.Cli/GenerateCommand.cs
+++ b/FirstClassErrors.Cli/GenerateCommand.cs
@@ -46,7 +46,7 @@ internal GenerateCommand(IErrorDocumentationGenerator generator, IOutputSink out
#endregion
- protected override int Execute(CommandContext context, GenerateSettings settings, CancellationToken cancellationToken) {
+ public override int Execute(CommandContext context, GenerateSettings settings, CancellationToken cancellationToken) {
// The command body uses no CommandContext state, so it lives in a context-free seam that tests can drive
// directly (they need only build a GenerateSettings, not a Spectre CommandContext).
return Run(settings, cancellationToken);
diff --git a/FirstClassErrors.Cli/InitCommand.cs b/FirstClassErrors.Cli/InitCommand.cs
index 789313f5..fbed2d86 100644
--- a/FirstClassErrors.Cli/InitCommand.cs
+++ b/FirstClassErrors.Cli/InitCommand.cs
@@ -22,7 +22,7 @@ internal sealed class InitSettings : ConfigScopedSettings {
///
internal sealed class InitCommand : Command {
- protected override int Execute(CommandContext context, InitSettings settings, CancellationToken cancellationToken) {
+ public override int Execute(CommandContext context, InitSettings settings, CancellationToken cancellationToken) {
string path = ConfigurationStore.Resolve(settings.ConfigPath);
if (ConfigurationStore.Exists(path) && !settings.Force) {
diff --git a/FirstClassErrors.Cli/RendererAddCommand.cs b/FirstClassErrors.Cli/RendererAddCommand.cs
index d051743a..55073dc2 100644
--- a/FirstClassErrors.Cli/RendererAddCommand.cs
+++ b/FirstClassErrors.Cli/RendererAddCommand.cs
@@ -31,7 +31,7 @@ internal sealed class RendererAddCommand : Command {
Justification =
"The renderer library is validated by loading it from its file path; Assembly.Load resolves by name, " +
"not path. LoadFrom is deliberate — it probes the library's own directory for its dependencies.")]
- protected override int Execute(CommandContext context, RendererReferenceSettings settings, CancellationToken cancellationToken) {
+ public override int Execute(CommandContext context, RendererReferenceSettings settings, CancellationToken cancellationToken) {
string path = ConfigurationStore.Resolve(settings.ConfigPath);
string configDir = Path.GetDirectoryName(path) ?? Directory.GetCurrentDirectory();
string library = RendererLoader.Resolve(settings.LibraryPath, configDir);
diff --git a/FirstClassErrors.Cli/RendererListCommand.cs b/FirstClassErrors.Cli/RendererListCommand.cs
index 2111ff3e..a9ba615a 100644
--- a/FirstClassErrors.Cli/RendererListCommand.cs
+++ b/FirstClassErrors.Cli/RendererListCommand.cs
@@ -21,7 +21,7 @@ internal sealed class RendererListCommand : Command {
Justification =
"Each configured library is inspected by loading it from its file path; Assembly.Load resolves by " +
"name, not path. LoadFrom is deliberate — it probes the library's own directory for its dependencies.")]
- protected override int Execute(CommandContext context, ConfigScopedSettings settings, CancellationToken cancellationToken) {
+ public override int Execute(CommandContext context, ConfigScopedSettings settings, CancellationToken cancellationToken) {
Console.Out.WriteLine("Built-in formats:");
foreach (string format in RendererCatalog.BuiltInFormats) {
Console.Out.WriteLine($" - {format}");
diff --git a/FirstClassErrors.Cli/RendererRemoveCommand.cs b/FirstClassErrors.Cli/RendererRemoveCommand.cs
index 7682c773..85be6a13 100644
--- a/FirstClassErrors.Cli/RendererRemoveCommand.cs
+++ b/FirstClassErrors.Cli/RendererRemoveCommand.cs
@@ -12,7 +12,7 @@ namespace FirstClassErrors.Cli;
///
internal sealed class RendererRemoveCommand : Command {
- protected override int Execute(CommandContext context, RendererReferenceSettings settings, CancellationToken cancellationToken) {
+ public override int Execute(CommandContext context, RendererReferenceSettings settings, CancellationToken cancellationToken) {
string path = ConfigurationStore.Resolve(settings.ConfigPath);
if (!ConfigurationStore.Exists(path)) {