Cognitive complexity
14.3 %
Correct
1/7
71.4 %
Warning
5/7
(threshold : 10)
14.3 %
Error
1/7
(threshold : 20)
Cyclomatic complexity
100 %
Correct
7/7
0 %
Warning
0/7
(threshold : 5)
0 %
Error
0/7
(threshold : 10)
Methods of bigIfElse.refactorer.ts
refactorNeeded | Complexity Index | 10.3 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
refactor | Complexity Index | 48.5 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
addMethodToClass | Complexity Index | 11.8 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
keepOnlyParameters | Complexity Index | 16.7 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
catchInputs | Complexity Index | 13.8 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
isConditionnedBlock | Complexity Index | 10.6 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
isInputs | Complexity Index | 8.2 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|