Cognitive complexity
0 %
Correct
0/2
50 %
Warning
1/2
(threshold : 10)
50 %
Error
1/2
(threshold : 20)
Cyclomatic complexity
50 %
Correct
1/2
50 %
Warning
1/2
(threshold : 5)
0 %
Error
0/2
(threshold : 10)
Methods of uselessElse.refactorer.ts
refactorNeeded | Complexity Index | 12.3 | Cyclomatic complexity | 8 |
---|---|---|---|---|
|
refactor | Complexity Index | 33.9 | Cyclomatic complexity | 5 |
---|---|---|---|---|
|