-
Type:
Code Smell Detection
-
Status: Deprecated
-
Resolution: Unresolved
-
Labels:None
-
Message:Split this file to reduce complexity per file from XXX to no more than the YY authorized.
-
List of parameters:
- Key: max
- Default value: 200
- Description: The maximum authorized complexity in file
-
Default Severity:Major
-
Impact:Low
-
Likelihood:High
-
Legacy Key:FileComplexity, ComplexityCheck, PlSql.FileComplexity
-
Covered Languages:C, C++, HTML, Objective-C, PL/SQL, Python, Swift
-
Remediation Function:Linear with offset
-
Linear Argument Description:per complexity point above the threshold
-
Linear Factor:1min
-
Linear Offset:30min
Most of the time, a very complex file breaks the Single Responsibility Principle and should be re-factored into several different files.
- is duplicated by
-
RSPEC-1285 The cyclomatic complexity of a program should not be too high
- Deprecated
- is implemented by
-
CPP-64 Rule: Avoid too complex file
-
- Closed
-
-
SONARSWIFT-62 Rule: Files should not be too complex
-
- Closed
-
-
CPP-707 Create Objective-C rules repository containing targeted rules
-
- Closed
-
1.
|
HTML | RSPEC-1922 |
|
Active | Unassigned | |
2.
|
PL/SQL | RSPEC-2413 |
|
Deprecated | Unassigned | |
3.
|
Swift | RSPEC-2499 |
|
Active | Unassigned | |
4.
|
C-Family | RSPEC-2882 |
|
Deprecated | Unassigned | |
5.
|
Python | RSPEC-4402 |
|
Active | Unassigned |