Skip to content

Commit 2031561

Browse files
authored
Deprecate CA1801 in favor of IDE0060 (#21882)
1 parent 6a8c33d commit 2031561

File tree

1 file changed

+3
-0
lines changed
  • docs/fundamentals/code-analysis/quality-rules

1 file changed

+3
-0
lines changed

docs/fundamentals/code-analysis/quality-rules/ca1801.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ This rule does not examine the following kinds of methods:
4545

4646
This rule does not flag parameters that are named with the [discard](../../../csharp/discards.md) symbol, for example, `_`, `_1`, and `_2`. This reduces warning noise on parameters that are needed for signature requirements, for example, a method used as a delegate, a parameter with special attributes, or a parameter whose value is implicitly accessed at run time by a framework but is not referenced in code.
4747

48+
> [!NOTE]
49+
> This rule has been deprecated in favor of [IDE0060](../style-rules/ide0060.md). For information about how to enforce the IDE0060 analyzer at build, see [code-style analysis](../overview.md#code-style-analysis).
50+
4851
## Rule description
4952

5053
Review parameters in non-virtual methods that are not used in the method body to make sure no incorrectness exists around failure to access them. Unused parameters incur maintenance and performance costs.

0 commit comments

Comments
 (0)