Skip to content

PH2163: Avoid <NoWarn> #998

@bcollamore

Description

I came across a project that disabled an analyzer (duplicate code) via the NoWarn project setting, rather than the .editorconfig, as such:
<NoWarn>$(NoWarn);CS8002;PH2071</NoWarn>

The preferred technique is with an .editorconfig file. In fact, the use of NoWarn is discouraged and should be avoided if possible. Is an analyzer possible to detect this?

Use DiagnosicId 2163

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions