Method has too many arguments
objectscriptQuality release
Id
OS0008
Rule type
Code Smell
Severity
Major
Major
SQALE characteristic
- Efficiency
- Efficiency compliance
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
Name | Description | Default value |
---|---|---|
nrArgsThreshold
| Maximum number of arguments allowed for a method
| 10
|