Skip to content

Turning off all rules and then enabling desired rules #35164

@JamesNK

Description

@JamesNK

Analyzer package

Microsoft.CodeAnalysis.FxCopAnalyzers

Package Version

Example: v2.9.2

Repro steps

  1. Add package reference
  2. Copy contents of AllRulesDisabled.ruleset to local file and reference from csproj
  3. Compile

Expected behavior

No code analysis warnings because they're all disabled

Actual behavior

Code analysis warnings, e.g. warning CA2208: Call the ArgumentOutOfRangeException constructor that contains a message and/or paramName parameter.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions