IDE0079 configuration not respected
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
**Version Used**:
Visual Studio 2026 Insiders 11201.2
**Steps to Reproduce**:
Test.cs
``` C#
namespace What;
public class Test
{
#pragma warning disable IDE0051
readonly int UsedNow = 5;
#pragma warning restore IDE0051
public int Used() => UsedNow;
}
```
.editorconfig
``` INI
[*.cs]
dotnet_remove_unnecessary_suppression_exclusions = none
dotnet_diagnostic.IDE0079.severity = warning
```
**Expected Behavior**:
A warning in the IDE about unnecessary suppression
**Actual Behavior**:
No warning
Contributor guide
Research direction
Start by reproducing the issue with the Test.cs example and the provided .editorconfig in Visual Studio 2026 Insiders. Trace the IDE0079 analyzer configuration and suppression handling; done means the configured warning appears for the unnecessary IDE0051 suppression.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- compilers, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100