Cognitive complexity
87.5 %
Correct
7/8
0 %
Warning
0/8
(threshold : 10)
12.5 %
Error
1/8
(threshold : 20)
Cyclomatic complexity
100 %
Correct
8/8
0 %
Warning
0/8
(threshold : 5)
0 %
Error
0/8
(threshold : 10)
Methods of demo.mock.ts
ifAlone | Complexity Index | 1.6 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
twoIfs | Complexity Index | 3.1 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifNestedIf | Complexity Index | 3.6 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ifIfIf | Complexity Index | 6.1 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
switchCase | Complexity Index | 2.9 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
recursion | Complexity Index | 3.5 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
methodWithCallback | Complexity Index | 3.5 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
hyperComplex | Complexity Index | 20.5 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|