Genese complexity report

<- url.d.ts
Methods : 28
Complexity index : 14.4
Cyclomatic complexity : 26
Cognitive complexity
100 % Correct 28/28
0 % Warning 0/28 (threshold : 10)
0 % Error 0/28 (threshold : 20)
Cyclomatic complexity
100 % Correct 28/28
0 % Warning 0/28 (threshold : 5)
0 % Error 0/28 (threshold : 10)
Methods of url.d.ts
parse Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
            
                function parse(urlStr: string): UrlWithStringQuery; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
parse Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
parse Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; // -------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
parse Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function parse(urlStr: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; // ------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
format Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
            
                function format(URL: URL, options?: URLFormatOptions): string; // ------------------------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
format Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function format(urlObject: UrlObject | string): string; // -------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
resolve Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function resolve(from: string, to: string): string; // ----------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
domainToASCII Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
            
                function domainToASCII(domain: string): string; // ----------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
domainToUnicode Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function domainToUnicode(domain: string): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
fileURLToPath Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * This function ensures the correct decodings of percent-encoded characters as
                 * well as ensuring a cross-platform valid absolute path string.
                 * @param url The file URL string or URL object to convert to a path.
                 */
                function fileURLToPath(url: string | URL): string; // ------------------------------------ +0.6 Complexity index (+0.6 atomic)
            
                            
                        
pathToFileURL Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * This function ensures that path is resolved absolutely, and that the URL
                 * control characters are correctly encoded when converting into a File URL.
                 * @param url The path to convert to a File URL.
                 */
                function pathToFileURL(url: string): URL; // ------------------------------------------ +0.4 Complexity index (+0.4 atomic)
            
                            
                        
Complexity Index 0.6 Cyclomatic complexity 0
                            
                                
                
                    constructor(input: string, base?: string | URL); // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
toString Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    toString(): string; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
toJSON Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    toJSON(): string; // --------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
Complexity Index 1.6 Cyclomatic complexity 0
                            
                                
                
                    constructor(init?: URLSearchParams | string | NodeJS.Dict<string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>); // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
append Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    append(name: string, value: string): void; // ----------------------------------------------------------------------------------------------------------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
delete Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    delete(name: string): void; // ---------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
entries Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    entries(): IterableIterator<[string, string]>; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
forEach Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    forEach(callback: (value: string, name: string, searchParams: this) => void): void; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
get Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    get(name: string): string | null; // --------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
getAll Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    getAll(name: string): string[]; // --------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
has Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    has(name: string): boolean; // ----------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
keys Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    keys(): IterableIterator<string>; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
set Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    set(name: string, value: string): void; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
sort Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    sort(): void; // --------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
toString Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    toString(): string; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
values Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    values(): IterableIterator<string>; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    [Symbol.iterator](): IterableIterator<[string, string]>; // ------- +0.5 Complexity index (+0.5 atomic)