Cognitive complexity
76.3 %
Correct
135/177
21.5 %
Warning
38/177
(threshold : 10)
2.3 %
Error
4/177
(threshold : 20)
Cyclomatic complexity
89.3 %
Correct
158/177
10.2 %
Warning
18/177
(threshold : 5)
0.6 %
Error
1/177
(threshold : 10)
Subfolders of src/json-ast-to-reports
Folders | Number of files | Number of methods | Cognitive complexity of methods | Cyclomatic complexity of methods | ||||
---|---|---|---|---|---|---|---|---|
Correct | Warning | Error | Correct | Warning | Error | |||
../ | ||||||||
src/json-ast-to-reports | 45 | 177 | 135 | 38 | 4 | 158 | 18 | 1 |
src/json-ast-to-reports/enums | 7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
src/json-ast-to-reports/interfaces | 5 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |
src/json-ast-to-reports/models | 13 | 51 | 37 | 12 | 2 | 45 | 5 | 1 |
src/json-ast-to-reports/services | 19 | 122 | 95 | 25 | 2 | 109 | 13 | 0 |
src/json-ast-to-reports/templates | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Files of src/json-ast-to-reports
File | Method | Cognitive complexity | Cyclomatic complexity |
---|---|---|---|
json-ast-to-reports.ts | start | 15.5 | 3 |
json-ast-to-reports.ts | getTotalCpx | 3.7 | 1 |
json-ast-to-reports.ts | getJsonAst | 1.7 | 1 |
Methods of src/json-ast-to-reports folder and its subfolders
(ordered by decreasing cognitive complexity)