Genese complexity report

<- repl.d.ts
Methods : 67
Complexity index : 35.4
Cyclomatic complexity : 65
Cognitive complexity
100 % Correct 67/67
0 % Warning 0/67 (threshold : 10)
0 % Error 0/67 (threshold : 20)
Cyclomatic complexity
100 % Correct 67/67
0 % Warning 0/67 (threshold : 5)
0 % Error 0/67 (threshold : 10)
Methods of repl.d.ts
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                    
            
                    /**
                     * NOTE: According to the documentation:
                     *
                     * > Instances of `repl.REPLServer` are created using the `repl.start()` method and
                     * > _should not_ be created directly using the JavaScript `new` keyword.
                     *
                     * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS.
                     *
                     * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_class_replserver
                     */
                    private constructor();
            
                            
                        
defineCommand Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    /**
                     * Used to add new `.`-prefixed commands to the REPL instance. Such commands are invoked
                     * by typing a `.` followed by the `keyword`.
                     *
                     * @param keyword The command keyword (_without_ a leading `.` character).
                     * @param cmd The function to invoke when the command is processed.
                     *
                     * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_replserver_definecommand_keyword_cmd
                     */
                    defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; // ------------------------------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
displayPrompt Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    /**
                     * Readies the REPL instance for input from the user, printing the configured `prompt` to a
                     * new line in the `output` and resuming the `input` to accept new input.
                     *
                     * When multi-line input is being entered, an ellipsis is printed rather than the 'prompt'.
                     *
                     * This method is primarily intended to be called from within the action function for
                     * commands registered using the `replServer.defineCommand()` method.
                     *
                     * @param preserveCursor When `true`, the cursor placement will not be reset to `0`.
                     */
                    displayPrompt(preserveCursor?: boolean): void; // ---------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
clearBufferedCommand Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    /**
                     * Clears any command that has been buffered but not yet executed.
                     *
                     * This method is primarily intended to be called from within the action function for
                     * commands registered using the `replServer.defineCommand()` method.
                     *
                     * @since v9.0.0
                     */
                    clearBufferedCommand(): void; // --------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
setupHistory Complexity Index 1 Cyclomatic complexity 1
                            
                                
                    
            
                    /**
                     * Initializes a history log file for the REPL instance. When executing the
                     * Node.js binary and using the command line REPL, a history file is initialized
                     * by default. However, this is not the case when creating a REPL
                     * programmatically. Use this method to initialize a history log file when working
                     * with REPL instances programmatically.
                     * @param path The path to the history file
                     */
                    setupHistory(path: string, cb: (err: Error | null, repl: this) => void): void; // ----------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    /**
                     * events.EventEmitter
                     * 1. close - inherited from `readline.Interface`
                     * 2. line - inherited from `readline.Interface`
                     * 3. pause - inherited from `readline.Interface`
                     * 4. resume - inherited from `readline.Interface`
                     * 5. SIGCONT - inherited from `readline.Interface`
                     * 6. SIGINT - inherited from `readline.Interface`
                     * 7. SIGTSTP - inherited from `readline.Interface`
                     * 8. exit
                     * 9. reset
                     */
            
                    addListener(event: string, listener: (...args: any[]) => void): this; // ---------------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "line", listener: (input: string) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "pause", listener: () => void): this; // ------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "resume", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "SIGCONT", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "SIGINT", listener: () => void): this; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "SIGTSTP", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "exit", listener: () => void): this; // ---------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "reset", listener: (context: Context) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
emit Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
            
                    emit(event: string | symbol, ...args: any[]): boolean; // ------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "close"): boolean; // ------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "line", input: string): boolean; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "pause"): boolean; // --------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "resume"): boolean; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "SIGCONT"): boolean; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "SIGINT"): boolean; // -------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "SIGTSTP"): boolean; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "exit"): boolean; // ---------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "reset", context: Context): boolean; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    on(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "line", listener: (input: string) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "pause", listener: () => void): this; // ------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "resume", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "SIGCONT", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "SIGINT", listener: () => void): this; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "SIGTSTP", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "exit", listener: () => void): this; // ---------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "reset", listener: (context: Context) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    once(event: string, listener: (...args: any[]) => void): this; // -------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "line", listener: (input: string) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "pause", listener: () => void): this; // ------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "resume", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "SIGCONT", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "SIGINT", listener: () => void): this; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "SIGTSTP", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "exit", listener: () => void): this; // ---------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "reset", listener: (context: Context) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    prependListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "line", listener: (input: string) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "pause", listener: () => void): this; // ------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "resume", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "SIGCONT", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "SIGINT", listener: () => void): this; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "SIGTSTP", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "exit", listener: () => void): this; // ---------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "reset", listener: (context: Context) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    prependOnceListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "line", listener: (input: string) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "pause", listener: () => void): this; // ------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "resume", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "SIGCONT", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "SIGINT", listener: () => void): this; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "SIGTSTP", listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "exit", listener: () => void): this; // ---------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "reset", listener: (context: Context) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
start Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
            
                /**
                 * Creates and starts a `repl.REPLServer` instance.
                 *
                 * @param options The options for the `REPLServer`. If `options` is a string, then it specifies
                 * the input prompt.
                 */
                function start(options?: string | ReplOptions): REPLServer; // ------------------------------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
Complexity Index 0.2 Cyclomatic complexity 0
                            
                                
                    
            
                    constructor(err: Error); // ------- +0.2 Complexity index (+0.2 atomic)