Genese complexity report

<- extract.service.d.ts
Methods : 4
Complexity index : 2.1
Cyclomatic complexity : 3
Cognitive complexity
100 % Correct 4/4
0 % Warning 0/4 (threshold : 10)
0 % Error 0/4 (threshold : 20)
Cyclomatic complexity
100 % Correct 4/4
0 % Warning 0/4 (threshold : 5)
0 % Error 0/4 (threshold : 10)
Methods of extract.service.d.ts
Complexity Index 0 Cyclomatic complexity 0
                            
                                
            
                constructor();
            
                            
                        
extractFieldsFromData Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                /**
                 * Extract all the fields of some data corresponding to a given extraction model
                 * @param data
                 * @param extractionModel
                 */
                static extractFieldsFromData(data: any, extractionModel: any): any; // -------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
extractFieldsForOneProperty Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                /**
                 * For a given key of an extraction model and with the path corresponding of this key,
                 * returns the fields from data which have the same key for the same path
                 * @param data
                 * @param key
                 * @param pathExtraction
                 */
                static extractFieldsForOneProperty(data: any, key: string, pathExtraction: string): object; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
extractValue Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                /**
                 * With a given key and a given path, extracts the value of a data object for this key and this path
                 * @param data
                 * @param key
                 * @param path
                 */
                static extractValue(data: any, key: string, path: string): any; // -------------------------------------------- +0.8 Complexity index (+0.8 atomic)