Genese complexity report

<- os.d.ts
Methods : 20
Complexity index : 5.5
Cyclomatic complexity : 20
Cognitive complexity
100 % Correct 20/20
0 % Warning 0/20 (threshold : 10)
0 % Error 0/20 (threshold : 20)
Cyclomatic complexity
100 % Correct 20/20
0 % Warning 0/20 (threshold : 5)
0 % Error 0/20 (threshold : 10)
Methods of os.d.ts
hostname Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
            
                function hostname(): string; // ----------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
loadavg Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
                function loadavg(): number[]; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
uptime Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                
                function uptime(): number; // ---------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
freemem Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                
                function freemem(): number; // ------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
totalmem Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                
                function totalmem(): number; // ------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
cpus Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function cpus(): CpuInfo[]; // -------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
type Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
                function type(): string; // ---------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
release Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
                function release(): string; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
networkInterfaces Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                
                function networkInterfaces(): NodeJS.Dict<NetworkInterfaceInfo[]>; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
homedir Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
                function homedir(): string; // ---------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
userInfo Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function userInfo(options: { encoding: 'buffer' }): UserInfo<Buffer>; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
userInfo Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function userInfo(options?: { encoding: BufferEncoding }): UserInfo<string>; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
arch Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
            
                function arch(): string; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
version Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
                /**
                 * Returns a string identifying the kernel version.
                 * On POSIX systems, the operating system release is determined by calling
                 * [uname(3)][]. On Windows, `pRtlGetVersion` is used, and if it is not available,
                 * `GetVersionExW()` will be used. See
                 * https://en.wikipedia.org/wiki/Uname#Examples for more information.
                 */
                function version(): string; // -------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
platform Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function platform(): NodeJS.Platform; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
tmpdir Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
                function tmpdir(): string; // ------------------ +0.2 Complexity index (+0.2 atomic)
            
                            
                        
endianness Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                function endianness(): "BE" | "LE"; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
getPriority Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                
                /**
                 * Gets the priority of a process.
                 * Defaults to current process.
                 */
                function getPriority(pid?: number): number; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
setPriority Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                /**
                 * Sets the priority of the current process.
                 * @param priority Must be in range of -20 to 19
                 */
                function setPriority(priority: number): void; // ---------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
setPriority Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
                /**
                 * Sets the priority of the process specified process.
                 * @param priority Must be in range of -20 to 19
                 */
                function setPriority(pid: number, priority: number): void; // ------- +0.4 Complexity index (+0.4 atomic)