From 02cb716356c7e7062b6ddbdc3e4acc05e0ef4486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C4=B0rgin?= Date: Sat, 14 Nov 2026 21:47:58 +0300 Subject: [PATCH] build: AnalysisLevel 11 (#829, step 2) AnalysisLevel moves from 10.0 to 11.0. With NetAnalyzers 11.0.100, level 11 enables CA1517, CA1876, CA1877, CA2026, CA2027 and CA2028 under AnalysisMode All; none of them fires here. Two full solution builds, at level 10 and level 11 with warnings-as-errors off, both report zero diagnostics, and EffectiveAnalysisLevel resolves to 11.0. The numeric pin in quality-gates.md and the suppression ledger's build-switch row follow the property. --- Directory.Build.props | 2 +- docs/engineering/quality-gates.md | 2 +- ...hould_Count_Every_Suppression_In_The_Repository.verified.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 52a07f53..e8e394dd 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -43,7 +43,7 @@ true true true - 10.0 + 11.0 All strict true diff --git a/docs/engineering/quality-gates.md b/docs/engineering/quality-gates.md index c113467c..218de609 100644 --- a/docs/engineering/quality-gates.md +++ b/docs/engineering/quality-gates.md @@ -41,7 +41,7 @@ kind follows the suppression policy in `slop-review.md`. repository-root `.globalconfig`, with the same winner-naming reason and a removal trigger. A file-scoped `.editorconfig` severity hides the diagnostic, but the analyzer still runs: Roslyn skips an analyzer only when all its diagnostics are off for the whole compilation. -- `LangVersion=14.0` and `AnalysisLevel=10.0` are deliberate numeric pins. Never replace either +- `LangVersion=14.0` and `AnalysisLevel=11.0` are deliberate numeric pins. Never replace either with `latest`. - C# 14 on net472 is unsupported by the platform documentation but deliberate repository practice, enabled by source polyfills. Future language changes move the numeric pin intentionally. diff --git a/tests/OpenCode.Sdk.Tools.Tests/Snapshots/SuppressionLedgerTests.Ledger_Should_Count_Every_Suppression_In_The_Repository.verified.txt b/tests/OpenCode.Sdk.Tools.Tests/Snapshots/SuppressionLedgerTests.Ledger_Should_Count_Every_Suppression_In_The_Repository.verified.txt index cfb3798c..2e79d072 100644 --- a/tests/OpenCode.Sdk.Tools.Tests/Snapshots/SuppressionLedgerTests.Ledger_Should_Count_Every_Suppression_In_The_Repository.verified.txt +++ b/tests/OpenCode.Sdk.Tools.Tests/Snapshots/SuppressionLedgerTests.Ledger_Should_Count_Every_Suppression_In_The_Repository.verified.txt @@ -11,7 +11,7 @@ slopwatch-suppress: 31 suppress-message: 1 build-switch .github/workflows/ci.yml [command line] RunAnalyzers = false -build-switch Directory.Build.props AnalysisLevel = 10.0 +build-switch Directory.Build.props AnalysisLevel = 11.0 build-switch Directory.Build.props AnalysisMode = All build-switch Directory.Build.props CodeAnalysisTreatWarningsAsErrors = true build-switch Directory.Build.props EnableNETAnalyzers = true