Cognitive complexity
42.9 %
Correct
3/7
42.9 %
Warning
3/7
(threshold : 10)
14.3 %
Error
1/7
(threshold : 20)
Cyclomatic complexity
100 %
Correct
7/7
0 %
Warning
0/7
(threshold : 5)
0 %
Error
0/7
(threshold : 10)
Methods of ast-file-generation.service.ts
generateFromString | Complexity Index | 6.4 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
generate | Complexity Index | 10.3 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
createAstNodeChildren | Complexity Index | 22.5 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
addTypeAndCpxFactors | Complexity Index | 10.8 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
getCpxFactors | Complexity Index | 7.8 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
useWeight | Complexity Index | 13.9 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
library | Complexity Index | 8.1 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|