Fork me on GitHub
TypeName UnusedParametersAnalyzer
Check Id CC0057
Category Usage
Severity Warning

Cause

When a method declares a parameter and does not use it might bring incorrect conclusions for anyone reading the code and also demands the parameter when the method is called, unnecessarily.

Example

public static void SampleMethod(string name)
{
}

Code fix

A code fix will be presented to you that will transform the code to remove the unused parameter.

public static void SampleMethod()
{
}

Code fix

Related rules

None

See also

TBD