CA002 - Unused argument

Description

A feature should only have arguments which are actually needed and used in the computation.

Scope Feature
Status Disabled
Severity Warning
Applicability All
Score 40

Example of violation

square (x, y: INTEGER): INTEGER do Result := x * 2 end

Recommendation

Remove argument and update callers.

In the example, remove the argument y from the argument list.

fc2cf9c2-76b5-5d2f-4d60-c8dfbc677427
cached: 09/22/2017 12:01:18.000 PM