Genese complexity report

<- unqualified-explicit-constructor-invocation.ts
Methods : 1
Complexity index : 16.1
Cyclomatic complexity : 4
Cognitive complexity
0 % Correct 0/1
100 % Warning 1/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 unqualified-explicit-constructor-invocation.ts
run Complexity Index 16.1 Cyclomatic complexity 4
                            
                                
            
            
            // @ts-ignore
            export function run(cstNode: UnqualifiedExplicitConstructorInvocation, children: UnqualifiedExplicitConstructorInvocationChildren): any { // ------- +0.6 Complexity index (+0.6 atomic)
                const Super = children.Super; // --------------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const argumentList = children.argumentList; // ------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const superAst = Super?.map(e => cstToAst(e, 'super'))[0] ?? undefined; // --------------------------------------------------------------------- +4.2 Complexity index (+1.2 atomic, +3 structural)
                if (superAst) superAst.type = 'function'; // --------------------------------------------------------------------------------------------------- +1.6 Complexity index (+0.6 atomic, +1 structural)
            
                return { // ------------------------------------------------------------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
                    kind: 'CallExpression', // ----------------------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    start: cstNode.location.startOffset, // ---------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    end: cstNode.location.endOffset, // -------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    pos: cstNode.location.startOffset, // ------------------------------------------------------------------------------------------------------ +0.4 Complexity index (+0.4 atomic)
                    children: [ // ----------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                        superAst, // --------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                        ...[].concat(...argumentList?.map(e => cstToAst(e)) ?? []), // ------------------------------------------------------------------------- +4.8 Complexity index (+0.8 atomic, +4 structural)
                    ].filter(e => e) // ------------------------------------------------------------------------------------------------------------------------ +2.4 Complexity index (+0.4 atomic, +2 structural)
                };
            }