Cognitive complexity
66.7 %
Correct
2/3
33.3 %
Warning
1/3
(threshold : 10)
0 %
Error
0/3
(threshold : 20)
Cyclomatic complexity
100 %
Correct
3/3
0 %
Warning
0/3
(threshold : 5)
0 %
Error
0/3
(threshold : 10)
Methods of json-ast-to-reports.ts
start | Complexity Index | 15.5 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
getTotalCpx | Complexity Index | 3.7 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
getJsonAst | Complexity Index | 1.7 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|