-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Deprecate CA1801 in favor of IDE0060 #21882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,10 @@ This rule does not examine the following kinds of methods: | |
|
|
||
| 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. | ||
|
|
||
| > [!NOTE] | ||
| > This rule has been deprecated in favor of [IDE0060](../style-rules/ide0060.md). You can enforce this analyzer by following [this guide](../overview.md#code-style-analysis). | ||
| > For more information, see [Deprecated rules](https://docs.microsoft.com/visualstudio/code-quality/fxcop-unported-deprecated-rules). | ||
|
||
|
|
||
| ## Rule description | ||
|
|
||
| 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. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.