Steeltoe icon indicating copy to clipboard operation
Steeltoe copied to clipboard

Address S1172: Unused method parameters should be removed

Open bart-vmware opened this issue 3 years ago • 0 comments

Address existing violations of S1172: Unused method parameters should be removed in the codebase and set severity to Info in Steeltoe.Debug.ruleset and to Warning in Steeltoe.Release.ruleset.

Note: The difference in severities between Debug/Release is to avoid distraction or hindrance while writing/debugging code.

To find existing violations, enable the rule (see above) and rebuild src/Steeltoe.All.sln to make them appear in the Output window.

To address the violations, choose from the following on a case-by-case basis:

  • Fix the violation by removing the unused parameter and updating the callers
  • Suppress the violation in code using #pragma warning disable/restore, preceded by a justification comment

bart-vmware avatar Jul 28 '22 09:07 bart-vmware