Genese complexity report

<- code.model.ts
Methods : 3
Complexity index : 10.5
Cyclomatic complexity : 4
Cognitive complexity
100 % Correct 3/3
0 % Warning 0/3 (threshold : 10)
0 % Error 0/3 (threshold : 20)
Cyclomatic complexity
100 % Correct 3/3
0 % Warning 0/3 (threshold : 5)
0 % Error 0/3 (threshold : 10)
Methods of code.model.ts
getLine Complexity Index 3.3 Cyclomatic complexity 1
                            
                                
                
            
            
                getLine(issue: number): CodeLine { // ------------------------ +0.3 Complexity index (+0.3 atomic)
                    return this.lines.find(l => l.issue === issue); // ------- +3.0 Complexity index (+1.0 atomic, +2 structural)
                }
            
                            
                        
setTextWithLines Complexity Index 4.4 Cyclomatic complexity 1
                            
                                
                
            
            
                /**
                 * Sets the content of the code (as string) with its CodeLines
                 */
                setTextWithLines(): void { // ------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    this.text = this.lines.map(e => `${e.text}\n`).join(''); // --------- +4.2 Complexity index (+1.2 atomic, +3 structural)
                }
            
                            
                        
setLinesDepthAndNestingCpx Complexity Index 2.8 Cyclomatic complexity 2
                            
                                
                
            
            
                /**
                 * Sets the nesting complexity to each CodeLine
                 */
                setLinesDepthAndNestingCpx(): void { // ------------------ +0.2 Complexity index (+0.2 atomic)
                    for (const line of this.lines) { // ------------------ +1.4 Complexity index (+0.4 atomic, +1 structural)
                        line.setDepthAndNestingCpx(); // ----------------- +1.2 Complexity index (+0.2 atomic, +1 structural)
                    }
                }