Genese complexity report

<- debug.mock.ts
Methods : 1
Complexity index : 7.9
Cyclomatic complexity : 1
Cognitive complexity
100 % Correct 1/1
0 % Warning 0/1 (threshold : 10)
0 % Error 0/1 (threshold : 20)
Cyclomatic complexity
100 % Correct 1/1
0 % Warning 0/1 (threshold : 5)
0 % Error 0/1 (threshold : 10)
Methods of debug.mock.ts
method Complexity Index 7.9 Cyclomatic complexity 1
                            
                                
            
            
                method(a: string) { // ------------------- +0.3 Complexity index (+0.3 atomic)
                    const b: number[] = [1, 2]; // ------- +0.5 Complexity index (+0.5 atomic)
                    const d = b.reduce(() => { // -------- +4.5 Complexity index (+0.5 atomic, +2 structural, +2 use)
                                return; // --------------- +0.1 Complexity index (+0.1 atomic)
                            }, undefined) // ------------- +0.1 Complexity index (+0.1 atomic)
                    return a.slice(0); // ---------------- +2.4 Complexity index (+0.4 atomic, +1 structural, +1 use)
                }