dotnet / dotnet/sdk

.NET 11 Preview 2: AnalysisLevel preview is not enabling any CAxxxx rules

Open
#53,408 1 comment 1 reaction 0 assignees View on GitHub
Area-Microsoft.CodeAnalysis.NetAnalyzers Priority:0
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

In Preview 2, CAxxxx no longer gets enabled when using preview analysis level.

The property `_GlobalAnalyzerConfigFileName_MicrosoftCodeAnalysisNetAnalyzers` now resolves to `analysislevel_12_recommended.globalconfig`, but there is no such file.

The generation of those globalconfig, AFAIK, is mostly derived from the versions in `AnalyzerReleases.Shipped.md`. The last release in `AnalyzerReleases.Shipped.md` as of today is 10. So Unshipped is considered as 11, and there is nothing generated for 12.

For things to work nicely together, `_LatestAnalysisLevel` must match the latest version in Shipped.md. This is not the case today.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.