Skip to content

build: enable all .NET analyzers in every build (AnalysisMode=All) - #166

Merged
DeepDiver1975 merged 2 commits into
mainfrom
build/analyzer-all-mode
Aug 31, 2026
Merged

build: enable all .NET analyzers in every build (AnalysisMode=All)#166
DeepDiver1975 merged 2 commits into
mainfrom
build/analyzer-all-mode

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Collaborator

Summary

Final step of the analyzer-hardening series: flips AnalysisMode=All on in Directory.Build.props, so every build (Debug and Release, all projects) runs every .NET analyzer at default severity with TreatWarningsAsErrors — identical conditions to the long-lived verification harness. After the preceding eleven PRs, the repo is warning-free under these settings, so CI stays green.

Previously analyzers only ran under AnalysisMode=All when explicitly enabled, so regressions would slip past CI; now they fail the build instead.

Verification

  • dotnet build (Debug and Release, no flag overrides): 0 warnings, 0 errors.
  • Full suite: 803 passed / 1 skipped.
  • Single signed commit.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
…=All

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975
DeepDiver1975 force-pushed the build/analyzer-all-mode branch from e1eb593 to ffff02a Compare August 31, 2026 07:29
@DeepDiver1975
DeepDiver1975 merged commit b2e6ecd into main Aug 31, 2026
2 checks passed
@DeepDiver1975
DeepDiver1975 deleted the build/analyzer-all-mode branch August 31, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant