Genese complexity report

<- automatic-refactoring.ts
Methods : 3
Complexity index : 12.1
Cyclomatic complexity : 3
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 automatic-refactoring.ts
setRefactorer Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
            
            
                static setRefactorer(...refactorers: (new (projectService: ProjectService) => Refactorer)[]): void { // ------- +0.7 Complexity index (+0.7 atomic)
                    this.refactorers = refactorers; // ------------------------------------------------------------------------ +0.4 Complexity index (+0.4 atomic)
                }
            
                            
                        
start Complexity Index 4.7 Cyclomatic complexity 1
                            
                                
                
            
            
                static start(astFolder: AstFolder): void { // ---------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                    this.setRefactorer(BigIfElseRefactorer, UselessElseRefactorer); // --------------------------------------------- +1.4 Complexity index (+0.4 atomic, +1 structural)
            
                    this.refactorFromSourceFile(); // ------------------------------------------------------------------------------ +1.2 Complexity index (+0.2 atomic, +1 structural)
                    new RefactorReportService(this.projectService.refactorProposals, astFolder).generateRefactorReport(); // ------- +1.7 Complexity index (+0.7 atomic, +1 structural)
                }
            
                            
                        
refactorFromSourceFile Complexity Index 6.3 Cyclomatic complexity 1
                            
                                
                
            
                static refactorFromSourceFile(): void { // --------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
                    this.refactorers.forEach((r: new (projectService: ProjectService) => Refactorer) => { // ------- +2.8 Complexity index (+0.8 atomic, +2 structural)
                        const REFACTORER = new r(this.projectService); // ------------------------------------------ +0.6 Complexity index (+0.6 atomic)
                        REFACTORER.apply(); // --------------------------------------------------------------------- +1.2 Complexity index (+0.2 atomic, +1 structural)
                        this.projectService.addToRefactorProposals(REFACTORER.refactorProposals); // --------------- +1.5 Complexity index (+0.5 atomic, +1 structural)
                    });
                }