Should GlobalSupressions suppress CA1806 instead? #26213
Labels
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
When I cdk init a new app, GlobalSupressions.cs is suppressing RECS0026. However, it seems this has no visible effect. When a new object is created without a variable referencing it, I'm getting CA1806. This is for a .NET 6 app running in VS Code.
Expected Behavior
GlobalSupressions should successfully suppress unassigned object warnings.
Current Behavior
GlobalSupressions seems ineffective.
Reproduction Steps
see the description
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.85.0
Framework Version
No response
Node.js Version
18.12.1
OS
macOS
Language
.NET
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: