Genese complexity report

<- integral-type.ts
Methods : 1
Complexity index : 27.2
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 integral-type.ts
run Complexity Index 27.2 Cyclomatic complexity 6
                            
                                
            
            
            // @ts-ignore
            export function run(cstNode: IntegralType, children: IntegralTypeChildren): any { // ------- +0.6 Complexity index (+0.6 atomic)
                const int = children.Int; // ----------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const byte = children.Byte; // --------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const long = children.Long; // --------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const char = children.Char; // --------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const short = children.Short; // ------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                return [ // ---------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    ...[].concat(int?.map(e => cstToAst(e, 'int')) ?? []), // -------------------------- +4.9 Complexity index (+0.9 atomic, +4 structural)
                    ...[].concat(byte?.map(e => cstToAst(e, 'byte')) ?? []), // ------------------------ +4.9 Complexity index (+0.9 atomic, +4 structural)
                    ...[].concat(long?.map(e => cstToAst(e, 'long')) ?? []), // ------------------------ +4.9 Complexity index (+0.9 atomic, +4 structural)
                    ...[].concat(char?.map(e => cstToAst(e, 'char')) ?? []), // ------------------------ +4.9 Complexity index (+0.9 atomic, +4 structural)
                    ...[].concat(short?.map(e => cstToAst(e, 'short')) ?? []), // ---------------------- +4.9 Complexity index (+0.9 atomic, +4 structural)
                ]
            }