Genese complexity report

<- lib.dom.d.ts
Methods : 59
Complexity index : 30.6
Cyclomatic complexity : 59
Cognitive complexity
100 % Correct 59/59
0 % Warning 0/59 (threshold : 10)
0 % Error 0/59 (threshold : 20)
Cyclomatic complexity
100 % Correct 59/59
0 % Warning 0/59 (threshold : 5)
0 % Error 0/59 (threshold : 10)
Methods of lib.dom.d.ts
escape Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
                function escape(ident: string): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
supports Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function supports(property: string, value: string): boolean; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
supports Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function supports(conditionText: string): boolean; // ----------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
compile Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function compile(bytes: BufferSource): Promise<Module>; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
compileStreaming Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                
                function compileStreaming(source: Response | Promise<Response>): Promise<Module>; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
instantiate Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
instantiate Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>; // --------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
instantiateStreaming Complexity Index 1 Cyclomatic complexity 1
                            
                                
                
                function instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
validate Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function validate(bytes: BufferSource): boolean; // ------------------------------------------------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
alert Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function alert(message?: any): void; // ---------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
blur Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            declare function blur(): void; // --------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
captureEvents Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            /** @deprecated */
            declare function captureEvents(): void; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
close Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            declare function close(): void; // --------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
confirm Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            declare function confirm(message?: string): boolean; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
departFocus Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            declare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
focus Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            declare function focus(): void; // ------------------------------------------------------------------------------ +0.2 Complexity index (+0.2 atomic)
            
                            
                        
getComputedStyle Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
getMatchedCSSRules Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            declare function getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList; // ------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
getSelection Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            declare function getSelection(): Selection | null; // ----------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
matchMedia Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function matchMedia(query: string): MediaQueryList; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
moveBy Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function moveBy(x: number, y: number): void; // -------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
moveTo Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function moveTo(x: number, y: number): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
msWriteProfilerMark Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function msWriteProfilerMark(profilerMarkName: string): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
open Complexity Index 1 Cyclomatic complexity 1
                            
                                
            
            declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
postMessage Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
            
            declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; // --------------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
print Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            declare function print(): void; // -------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
prompt Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            declare function prompt(message?: string, _default?: string): string | null; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
releaseEvents Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            /** @deprecated */
            declare function releaseEvents(): void; // -------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
resizeBy Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function resizeBy(x: number, y: number): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
resizeTo Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function resizeTo(width: number, height: number): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
scroll Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function scroll(options?: ScrollToOptions): void; // ------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
scroll Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function scroll(x: number, y: number): void; // ------------ +0.4 Complexity index (+0.4 atomic)
            
                            
                        
scrollBy Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function scrollBy(options?: ScrollToOptions): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
scrollBy Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function scrollBy(x: number, y: number): void; // ------------ +0.4 Complexity index (+0.4 atomic)
            
                            
                        
scrollTo Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function scrollTo(options?: ScrollToOptions): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
scrollTo Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function scrollTo(x: number, y: number): void; // ------------ +0.4 Complexity index (+0.4 atomic)
            
                            
                        
stop Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            declare function stop(): void; // ------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
webkitCancelAnimationFrame Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            declare function webkitCancelAnimationFrame(handle: number): void; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
webkitConvertPointFromNodeToPage Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
webkitConvertPointFromPageToNode Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
webkitRequestAnimationFrame Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number; // -------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
toString Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            declare function toString(): string; // -------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
dispatchEvent Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            /**
             * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
             */
            declare function dispatchEvent(event: Event): boolean; // -------------------------------------------------------------------------------------------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
cancelAnimationFrame Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            declare function cancelAnimationFrame(handle: number): void; // --------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
requestAnimationFrame Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            declare function requestAnimationFrame(callback: FrameRequestCallback): number; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
atob Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function atob(data: string): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
btoa Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function btoa(data: string): string; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
clearInterval Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            declare function clearInterval(handle?: number): void; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
clearTimeout Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            declare function clearTimeout(handle?: number): void; // -------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
createImageBitmap Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
createImageBitmap Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
            
            declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
fetch Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; // -------------------------------------------------------------------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
queueMicrotask Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            declare function queueMicrotask(callback: VoidFunction): void; // --------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setInterval Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
setTimeout Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; // -------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addEventListener Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
            
            declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
addEventListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
            
            declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; // -------------------------------------------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
removeEventListener Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
            
            declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; // ------- +1.6 Complexity index (+1.6 atomic)
            
                            
                        
removeEventListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
            
            declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; // -------------------------------------------- +0.9 Complexity index (+0.9 atomic)