Genese complexity report

<- primary-suffix.ts
Methods : 1
Complexity index : 26
Cyclomatic complexity : 6
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-suffix.ts
run Complexity Index 26 Cyclomatic complexity 6
                            
                                
            
            
            // @ts-ignore
            export function run(cstNode: PrimarySuffix, children: PrimarySuffixChildren): any { // --------------------------- +0.6 Complexity index (+0.6 atomic)
                const identifier = children.Identifier; // ------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const methodInvocationSuffix = children.methodInvocationSuffix; // ------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const classLiteralSuffix = children.classLiteralSuffix; // --------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const methodReferenceSuffix = children.methodReferenceSuffix; // --------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const arrayAccessSuffix = children.arrayAccessSuffix; // ----------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                return [ // -------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    ...identifier?.map(e => cstToAst(e, 'identifier')) ?? [], // --------------------------------------------- +3.8 Complexity index (+0.8 atomic, +3 structural)
                    ...[].concat(...classLiteralSuffix?.map(e => cstToAst(e)) ?? []), // ------------------------------------- +4.8 Complexity index (+0.8 atomic, +4 structural)
                    ...[].concat(...methodInvocationSuffix?.map(e => cstToAst(e, 'methodInvocationSuffix')) ?? []), // ------- +4.9 Complexity index (+0.9 atomic, +4 structural)
                    ...[].concat(...methodReferenceSuffix?.map(e => cstToAst(e, 'methodReferenceSuffix')) ?? []), // --------- +4.9 Complexity index (+0.9 atomic, +4 structural)
                    ...[].concat(...arrayAccessSuffix?.map(e => cstToAst(e, 'arrayAccessSuffix')) ?? []) // ------------------ +4.9 Complexity index (+0.9 atomic, +4 structural)
                ];
            }