Cognitive complexity
69.2 %
Correct
9/13
30.8 %
Warning
4/13
(threshold : 10)
0 %
Error
0/13
(threshold : 20)
Cyclomatic complexity
92.3 %
Correct
12/13
0 %
Warning
0/13
(threshold : 5)
7.7 %
Error
1/13
(threshold : 10)
Methods of ast-node.model.ts
evaluate | Complexity Index | 5.2 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
getSon | Complexity Index | 0.7 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
calculateAndSetCpxFactors | Complexity Index | 11.8 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
setGeneralCaseCpxFactors | Complexity Index | 3.5 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
setFunctionStructuralCpx | Complexity Index | 4.3 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
forceCpxFactors | Complexity Index | 11.2 | Cyclomatic complexity | 4 |
---|---|---|---|---|
|
setDepthCpxFactors | Complexity Index | 3.4 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
setAggregationCpxFactors | Complexity Index | 6.6 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
setElseCpxFactors | Complexity Index | 6.4 | Cyclomatic complexity | 3 |
---|---|---|---|---|
|
setRecursionOrCallbackCpxFactors | Complexity Index | 4.6 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|
setRegexCpxFactors | Complexity Index | 4.4 | Cyclomatic complexity | 2 |
---|---|---|---|---|
|
addParentCpx | Complexity Index | 13.1 | Cyclomatic complexity | 12 |
---|---|---|---|---|
|
logg | Complexity Index | 10.6 | Cyclomatic complexity | 1 |
---|---|---|---|---|
|