IDE0079 incorrectly reported when AnalysisLevel is set to latest-all #76560
Labels
Area-Analyzers
Feature - IDE0079
Remove unnecessary suppression
untriaged
Issues and PRs which have not yet been triaged by a lead
Issue moved from dotnet/sdk#44993
From @fgimian on Wednesday, November 20, 2024 10:52:32 PM
Describe the bug
IDE0079 Remove unnecessary suppression is reported incorrectly when
<AnalysisLevel>latest-all</AnalysisLevel>
is used to enable all analysers.Edit: This also occurs with an .editorconfig and no AnalysisLevel set. Here's the .editorconfig I used to test it.
To Reproduce
ConsoleApp1.csproj
Program.cs
Exceptions (if any)
The following warning is reported incorrectly.
If you remove the "unnecessary" suppression, CA1031 is reported for the block.
Further technical details
dotnet --info
Microsoft Visual Studio Version 17.12.1
The text was updated successfully, but these errors were encountered: