Genese complexity report

<- pattern.d.ts
Methods : 18
Complexity index : 8.7
Cyclomatic complexity : 18
Cognitive complexity
100 % Correct 18/18
0 % Warning 0/18 (threshold : 10)
0 % Error 0/18 (threshold : 20)
Cyclomatic complexity
100 % Correct 18/18
0 % Warning 0/18 (threshold : 5)
0 % Error 0/18 (threshold : 10)
Methods of pattern.d.ts
isStaticPattern Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
            
            export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
isDynamicPattern Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
            
            export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
convertToPositivePattern Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            export declare function convertToPositivePattern(pattern: Pattern): Pattern; // ------------------------------ +0.4 Complexity index (+0.4 atomic)
            
                            
                        
convertToNegativePattern Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            export declare function convertToNegativePattern(pattern: Pattern): Pattern; // -------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
isNegativePattern Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            export declare function isNegativePattern(pattern: Pattern): boolean; // --------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
isPositivePattern Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            export declare function isPositivePattern(pattern: Pattern): boolean; // -------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
getNegativePatterns Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            export declare function getNegativePatterns(patterns: Pattern[]): Pattern[]; // -------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
getPositivePatterns Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            export declare function getPositivePatterns(patterns: Pattern[]): Pattern[]; // -------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
getBaseDirectory Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            export declare function getBaseDirectory(pattern: Pattern): string; // ----------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
hasGlobStar Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            export declare function hasGlobStar(pattern: Pattern): boolean; // ------------ +0.3 Complexity index (+0.3 atomic)
            
                            
                        
endsWithSlashGlobStar Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            export declare function endsWithSlashGlobStar(pattern: Pattern): boolean; // -------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
isAffectDepthOfReadingPattern Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean; // -------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
expandPatternsWithBraceExpansion Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[]; // -------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
expandBraceExpansion Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
            
            export declare function expandBraceExpansion(pattern: Pattern): Pattern[]; // ----------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
getPatternParts Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[]; // -------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
makeRe Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe; // ----------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
convertPatternsToRe Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
            
            export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[]; // -------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
matchAny Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean; // -------------------------------- +0.6 Complexity index (+0.6 atomic)