Genese complexity report

<- primary-prefix.ts
Methods : 1
Complexity index : 30.9
Cyclomatic complexity : 7
Cognitive complexity
0 % Correct 0/1
0 % Warning 0/1 (threshold : 10)
100 % Error 1/1 (threshold : 20)
Cyclomatic complexity
0 % Correct 0/1
100 % Warning 1/1 (threshold : 5)
0 % Error 0/1 (threshold : 10)
Methods of primary-prefix.ts
run Complexity Index 30.9 Cyclomatic complexity 7
                            
                                
            
            
            // @ts-ignore
            export function run(cstNode: PrimaryPrefix, children: PrimaryPrefixChildren): any { // ------- +0.6 Complexity index (+0.6 atomic)
                const parenthesisExpression = children.parenthesisExpression; // ------------------------- +0.4 Complexity index (+0.4 atomic)
                const fqnOrRefType = children.fqnOrRefType; // ------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const literal = children.literal; // ----------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const this_ = children.This; // ---------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const newExpression = children.newExpression; // ----------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const castExpression = children.castExpression; // --------------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                return [ // ------------------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
                    ...[].concat(...parenthesisExpression?.map(e => cstToAst(e)) ?? []), // -------------- +4.8 Complexity index (+0.8 atomic, +4 structural)
                    ...[].concat(...fqnOrRefType?.map(e => cstToAst(e)) ?? []), // ----------------------- +4.8 Complexity index (+0.8 atomic, +4 structural)
                    ...[].concat(...literal?.map(e => cstToAst(e)) ?? []), // ---------------------------- +4.8 Complexity index (+0.8 atomic, +4 structural)
                    ...[].concat(...newExpression?.map(e => cstToAst(e)) ?? []), // ---------------------- +4.8 Complexity index (+0.8 atomic, +4 structural)
                    ...[].concat(...castExpression?.map(e => cstToAst(e)) ?? []), // --------------------- +4.8 Complexity index (+0.8 atomic, +4 structural)
                    ...this_?.map(e => cstToAst(e, 'this')) ?? [] // ------------------------------------- +3.8 Complexity index (+0.8 atomic, +3 structural)
                ]
            }