diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 8731847..e1233e0 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -25,11 +25,12 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- # G-Research.FSharp.Analyzers 0.23.0 is built with fsharp-analyzers 0.37.2.
- # Do not update the host until G-Research ships a compatible rule package.
+ # G-Research.FSharp.Analyzers 0.25.0 is built with fsharp-analyzers 0.39.0, so only the
+ # 0.39.0 host loads it (the CLI requires an exact SDK match). Do not adopt another host
+ # version until G-Research ships a rule package built against that SDK.
ignore:
- dependency-name: "fsharp-analyzers"
- versions: ["0.38.0"]
+ versions: ["0.38.0", "0.39.1", "0.39.2"]
commit-message:
prefix: "chore"
prefix-development: "chore"
diff --git a/AGENTS.md b/AGENTS.md
index ef4ff45..8db9ffe 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -124,9 +124,9 @@ sources, tests, `fable-out/`, `fable_modules/`, `bin/`, `obj/`, and maps exclude
Beyond our own product analyzer, the repo runs the [fsharp-analyzers](https://g-research.github.io/fsharp-analyzers/) rule set over our written F# via a dedicated CI job (`fsharp-analyzers` in `.github/workflows/ci.yml`). It is wired through MSBuild:
- `Directory.Build.props` adds `FSharp.Analyzers.Build` (the `AnalyzeFSharpProject` target) and `G-Research.FSharp.Analyzers` (the rules), and sets `RunAnalyzers=false` so these external rules never fire during Fable transpilation — the check is driven only through the explicit target.
-- `Directory.Build.targets` sets `FSharpAnalyzersOtherFlags` (`--analyzers-path`, `--code-root`, `--report`). The rule package version in that path (currently `0.23.0`) must match the SDK the rules were built against; pair it with matching tooling versions in `.config/dotnet-tools.json` (`fsharp-analyzers`), or the CLI refuses to load the analyzer DLL on an SDK-version mismatch.
+- `Directory.Build.targets` sets `FSharpAnalyzersOtherFlags` (`--analyzers-path`, `--code-root`, `--report`). The rule package version in that path (currently `0.25.0`) must match the SDK the rules were built against; pair it with matching tooling versions in `.config/dotnet-tools.json` (`fsharp-analyzers`), or the CLI refuses to load the analyzer DLL on an SDK-version mismatch.
- `Directory.Build.*` are evaluated for every project, so their XML must be valid: **XML comments may not contain `--`** (write "the analyzers-path flag", not `--analyzers-path` inside a comment) — otherwise every project fails MSBuild evaluation and no SARIF is produced.
-- The `fsharp-analyzers` dotnet tool (0.37.2) is restored by the existing `dotnet tool restore` step; run it locally with `just fsharp-analyze [paths]`.
+- The `fsharp-analyzers` dotnet tool (0.39.0) is restored by the existing `dotnet tool restore` step; run it locally with `just fsharp-analyze [paths]`.
The job is **soft-gated**: the `AnalyzeFSharpProject` target ignores the CLI exit code, so findings never fail the build, and a real restore/build/analysis error surfaces via the "Verify analyzer report exists" step (which fails loudly) instead of being hidden. A SARIF uploads per project to GitHub Code Scanning for triage over time. To make it blocking once the backlog clears, change the verify step to fail when results are non-empty.
diff --git a/Directory.Build.targets b/Directory.Build.targets
index 016a530..97c71a8 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -8,6 +8,6 @@
code-root makes SARIF positions relative to the repo root; report writes one SARIF per
project under fsharp-analyzer-reports/ (git-ignored) for CI code-scanning upload.
-->
- --analyzers-path "$(NuGetPackageRoot)g-research.fsharp.analyzers/0.23.0/analyzers/dotnet/fs" --code-root "$(MSBuildProjectDirectory)/.." --report "$(MSBuildProjectDirectory)/../fsharp-analyzer-reports/$(MSBuildProjectName).sarif"
+ --analyzers-path "$(NuGetPackageRoot)g-research.fsharp.analyzers/0.25.0/analyzers/dotnet/fs" --code-root "$(MSBuildProjectDirectory)/.." --report "$(MSBuildProjectDirectory)/../fsharp-analyzer-reports/$(MSBuildProjectName).sarif"