Genese complexity report

<- index.d.ts
Methods : 1
Complexity index : 2.5
Cyclomatic complexity : 1
Cognitive complexity
100 % Correct 1/1
0 % Warning 0/1 (threshold : 10)
0 % Error 0/1 (threshold : 20)
Cyclomatic complexity
100 % Correct 1/1
0 % Warning 0/1 (threshold : 5)
0 % Error 0/1 (threshold : 10)
Methods of index.d.ts
ansiRegex Complexity Index 2.5 Cyclomatic complexity 1
                            
                                
            
            
            /**
            Regular expression for matching ANSI escape codes.
            
            @example
            ```
            import ansiRegex = require('ansi-regex');
            
            ansiRegex().test('\u001B[4mcake\u001B[0m');
            //=> true
            
            ansiRegex().test('cake');
            //=> false
            
            '\u001B[4mcake\u001B[0m'.match(ansiRegex());
            //=> ['\u001B[4m', '\u001B[0m']
            
            '\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
            //=> ['\u001B[4m']
            
            '\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
            //=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
            ```
            */
            declare function ansiRegex(options?: ansiRegex.Options): RegExp; // -------------------- +2.5 Complexity index (+0.5 atomic, +2 recursivity)