Skip to content

False positive warning #43762

@alexandra142

Description

@alexandra142

Type of issue

Other (describe below)

Description

We see multiple false positive warning Remove unnecessary suppression (IDE0079).

The warning suppression we used is: #pragma warning restore S3257 // Declarations and initializations should be as concise as possible => https://rules.sonarsource.com/csharp/RSPEC-3257/

Page URL

https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0079

Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/style-rules/ide0079.md

Document Version Independent Id

2ab9a9ff-ab74-c9eb-21c6-9189f0803e98

Article author

@gewarren

Metadata

  • ID: ddd8eded-3cff-a84d-57a8-a61faddc2c08
  • Service: dotnet-fundamentals

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions