Genese complexity report

<- regex.mock.ts
Methods : 3
Complexity index : 18.8
Cyclomatic complexity : 3
Cognitive complexity
66.7 % Correct 2/3
33.3 % Warning 1/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 regex.mock.ts
shortRegex Complexity Index 2.3 Cyclomatic complexity 1
                            
                                
            
            
                shortRegex() { // ---------------- +0.1 Complexity index (+0.1 atomic)
                    return /[^.[\]]+/g; // ------- +2.2 Complexity index (+0.2 atomic, +1 aggregation, +1 structural)
                }
            
                            
                        
email Complexity Index 4.7 Cyclomatic complexity 1
                            
                                
                
            
                email() { // --------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    return /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g; // ------- +4.6 Complexity index (+0.2 atomic, +3.4 aggregation, +1 structural)
                }
            
                            
                        
frenchPhoneNumber Complexity Index 11.8 Cyclomatic complexity 1
                            
                                
                
            
                frenchPhoneNumber() { // -------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    return /^(?:(?:\+|00)33[\s.-]{0,3}(?:\(0\)[\s.-]{0,3})?|0)[1-9](?:(?:[\s.-]?\d{2}){4}|\d{2}(?:[\s.-]?\d{3}){2})$/; // ------- +11.7 Complexity index (+0.2 atomic, +10.5 aggregation, +1 structural)
                }