[[Property:title|CA002 - Unused argument]]
[[Property:link_title|CA002]]
[[Property:weight|0]]
[[Property:uuid|fc2cf9c2-76b5-5d2f-4d60-c8dfbc677427]]
__NOTOC__
=Description=
A feature should only have arguments which are actually needed and used in the computation.
:{| class="doctable"
|-
| '''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.