Cognitive complexity
72.5 %
Correct
37/51
23.5 %
Warning
12/51
(threshold : 10)
3.9 %
Error
2/51
(threshold : 20)
Cyclomatic complexity
88.2 %
Correct
45/51
9.8 %
Warning
5/51
(threshold : 5)
2 %
Error
1/51
(threshold : 10)
Subfolders of src/json-ast-to-reports/models
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/models | 13 | 51 | 37 | 12 | 2 | 45 | 5 | 1 |
src/json-ast-to-reports/models/ast | 5 | 34 | 22 | 10 | 2 | 29 | 4 | 1 |
src/json-ast-to-reports/models/code | 2 | 5 | 4 | 1 | 0 | 4 | 1 | 0 |
src/json-ast-to-reports/models/report | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Files of src/json-ast-to-reports/models
File | Method | Cognitive complexity | Cyclomatic complexity |
---|---|---|---|
barchart.model.ts | plugChartHoles | 14.4 | 4 |
stats.model.ts | setPercentagesByComplexity | 9 | 2 |
barchart.model.ts | addResult | 8.5 | 2 |
barchart.model.ts | getColor | 5.3 | 3 |
barchart.model.ts | increaseOrdinate | 4.7 | 1 |
barchart.model.ts | abscissaAlreadyExists | 4.2 | 1 |
barchart.model.ts | sort | 3.8 | 1 |
barchart.model.ts | newBar | 3.6 | 1 |
stats.model.ts | plugChartHoles | 3.6 | 1 |
statuses.model.ts | add | 3.4 | 1 |
stats.model.ts | setPercentages | 3 | 1 |
barchart.model.ts | 0.6 | 0 |
Methods of src/json-ast-to-reports/models folder and its subfolders
(ordered by decreasing cognitive complexity)