Genese complexity report

<- for-init.ts
Methods : 1
Complexity index : 7.3
Cyclomatic complexity : 4
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 for-init.ts
run Complexity Index 7.3 Cyclomatic complexity 4
                            
                                
            
            
            // @ts-ignore
            export function run(cstNode: ForInit, children: ForInitChildren): any { // ------------ +0.6 Complexity index (+0.6 atomic)
                const localVariableDeclaration = children.localVariableDeclaration; // ------------ +0.4 Complexity index (+0.4 atomic)
            
                return ( // ----------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    [ // -------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                        ...[].concat( // ---------------------------------------------------------- +1.1 Complexity index (+0.1 atomic, +1 structural)
                            ...(localVariableDeclaration?.map((e) => cstToAst(e)) ?? []) // ------- +3.7 Complexity index (+0.7 atomic, +3 structural)
                        ),
                    ][0]?.children || [] // ------------------------------------------------------- +1.3 Complexity index (+0.3 atomic, +1 structural)
                );
            }