Genese complexity report

<- lib.es5.d.ts
Methods : 11
Complexity index : 4
Cyclomatic complexity : 11
Cognitive complexity
100 % Correct 11/11
0 % Warning 0/11 (threshold : 10)
0 % Error 0/11 (threshold : 20)
Cyclomatic complexity
100 % Correct 11/11
0 % Warning 0/11 (threshold : 5)
0 % Error 0/11 (threshold : 10)
Methods of lib.es5.d.ts
eval Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Evaluates JavaScript code and executes it.
             * @param x A String value that contains valid JavaScript code.
             */
            declare function eval(x: string): any; // --------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
parseInt Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Converts a string to an integer.
             * @param s A string to convert into a number.
             * @param radix A value between 2 and 36 that specifies the base of the number in numString.
             * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
             * All other strings are considered decimal.
             */
            declare function parseInt(s: string, radix?: number): number; // ----------------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
parseFloat Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Converts a string to a floating-point number.
             * @param string A string that contains a floating-point number.
             */
            declare function parseFloat(string: string): number; // -------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
isNaN Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
             * @param number A numeric value.
             */
            declare function isNaN(number: number): boolean; // ----------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
isFinite Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Determines whether a supplied number is finite.
             * @param number Any numeric value.
             */
            declare function isFinite(number: number): boolean; // -------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
decodeURI Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
             * @param encodedURI A value representing an encoded URI.
             */
            declare function decodeURI(encodedURI: string): string; // ------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
decodeURIComponent Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
             * @param encodedURIComponent A value representing an encoded URI component.
             */
            declare function decodeURIComponent(encodedURIComponent: string): string; // ---------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
encodeURI Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Encodes a text string as a valid Uniform Resource Identifier (URI)
             * @param uri A value representing an encoded URI.
             */
            declare function encodeURI(uri: string): string; // --------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
encodeURIComponent Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
             * @param uriComponent A value representing an encoded URI component.
             */
            declare function encodeURIComponent(uriComponent: string | number | boolean): string; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
escape Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
             * @param string A string value
             */
            declare function escape(string: string): string; // ----------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
unescape Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
            
            
            /**
             * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
             * @param string A string value
             */
            declare function unescape(string: string): string; // ------------------------------------------------------------------------ +0.4 Complexity index (+0.4 atomic)