Genese complexity report

<- example.ts
Methods : 2
Complexity index : 8.5
Cyclomatic complexity : 2
Cognitive complexity
100 % Correct 2/2
0 % Warning 0/2 (threshold : 10)
0 % Error 0/2 (threshold : 20)
Cyclomatic complexity
100 % Correct 2/2
0 % Warning 0/2 (threshold : 5)
0 % Error 0/2 (threshold : 10)
Methods of example.ts
worker Complexity Index 4 Cyclomatic complexity 1
                            
                                
            
            
            function worker(task: any, cb: fastq.done) { // ------- +2.6 Complexity index (+0.6 atomic, +2 recursivity)
              cb(null, 'hello ' + task) // ------------------------ +1.4 Complexity index (+0.4 atomic, +1 structural)
            }
            
                            
                        
genericsWorker Complexity Index 4.5 Cyclomatic complexity 1
                            
                                
            
            
            function genericsWorker(this: GenericsContext, task: number, cb: fastq.done<string>) { // ------- +2.8 Complexity index (+0.8 atomic, +2 recursivity)
              cb(null, 'the meaning of life is ' + (this.base * task)) // ----------------------------------- +1.7 Complexity index (+0.7 atomic, +1 structural)
            }