Genese complexity report

<- lib.webworker.d.ts
Methods : 28
Complexity index : 17.9
Cyclomatic complexity : 28
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 lib.webworker.d.ts
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)
            
                            
                        
close Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            /**
             * Aborts dedicatedWorkerGlobal.
             */
            declare function close(): void; // ------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
postMessage Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
            
            /**
             * Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
             */
            declare function postMessage(message: any, transfer: Transferable[]): void; // --------------------------------------------------------------------------------------------------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
postMessage Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            declare function postMessage(message: any, options?: PostMessageOptions): void; // ------- +0.6 Complexity index (+0.6 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)
            
                            
                        
importScripts Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
            
            /**
             * Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
             */
            declare function importScripts(...urls: string[]): void; // ---------------------------------------------------------------------------------------- +0.5 Complexity index (+0.5 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)
            
                            
                        
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)
            
                            
                        
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)
            
                            
                        
addEventListener Complexity Index 1.6 Cyclomatic complexity 1
                            
                                
            
            declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[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 DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[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)