Method has too many arguments

objectscriptQuality release 
1.0.0
Id 
OS0008
Rule type 
Code Smell
Severity 

Major

Major
SQALE characteristic 
  • Efficiency
    • Efficiency compliance
Tags 
design, maintainability, performance
Remediation function 
Constant/issue
Remediation cost 
16h

A method with too many arguments is hard to read and maintain.

Moreover, it is often the case that a method with too many arguments is also too complex. It is therefore strongly recommended to refactor the code in order to avoid this issue.

Parameters

NameDescriptionDefault value
nrArgsThreshold
Maximum number of arguments allowed for a method
10