Method has too many lines
objectscriptQuality release
Id
OS0071
Rule type
Code Smell
Severity
Critical
Critical
SQALE characteristic
- Maintainability
- Maintainability compliance
Remediation function
Constant/issue
Remediation cost
2h
This check retrieves the number of lines in a given method and checks that it is less than, or equal to, a given threshold. Note that the opening and closing braces are taken into account, but the method declaration is not.
The default value is 50.
Parameters
Name | Description | Default value |
---|---|---|
nrLinesThreshold
| Maximum number of lines (inclusive)
| 50
|