Genese complexity report

<- index.d.ts
Methods : 4
Complexity index : 5.5
Cyclomatic complexity : 4
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 index.d.ts
M Complexity Index 2.8 Cyclomatic complexity 1
                            
                                
            
            // Project: https://github.com/isaacs/minimatch
            // Definitions by: vvakame <https://github.com/vvakame>
            //                 Shant Marouti <https://github.com/shantmarouti>
            // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
            
            /**
             * Tests a path against the pattern using the options.
             */
            declare function M(target: string, pattern: string, options?: M.IOptions): boolean; // ------- +2.8 Complexity index (+0.8 atomic, +2 recursivity)
            
                            
                        
match Complexity Index 1 Cyclomatic complexity 1
                            
                                
            
                /**
                 * Match against the list of files, in the style of fnmatch or glob.
                 * If nothing is matched, and options.nonull is set,
                 * then return a list containing the pattern itself.
                 */
                function match(list: ReadonlyArray<string>, pattern: string, options?: IOptions): string[]; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
filter Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * Returns a function that tests its supplied argument, suitable for use with Array.filter
                 */
                function filter(pattern: string, options?: IOptions): (element: string, indexed: number, array: ReadonlyArray<string>) => boolean; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
makeRe Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * Make a regular expression object from the pattern.
                 */
                function makeRe(pattern: string, options?: IOptions): RegExp; // ---------------------------------------------------------------------------- +0.6 Complexity index (+0.6 atomic)