Cognitive complexity
100 %
Correct
5/5
0 %
Warning
0/5
(threshold : 10)
0 %
Error
0/5
(threshold : 20)
Cyclomatic complexity
100 %
Correct
5/5
0 %
Warning
0/5
(threshold : 5)
0 %
Error
0/5
(threshold : 10)
Methods of ternaries.mock.ts
ternary | Complexity Index | 1.7 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
nestedTernaries | Complexity Index | 5.1 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
ifWithTernary | Complexity Index | 4.8 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
NoTernary | Complexity Index | 4.4 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
ternaries | Complexity Index | 5.4 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|