CRAP Complexity Coverage Location
42.00 6 0/6 (0.00%) command/compute-crap.command.ts (L103 - L114)
    private processOptions(options: { json?: string | true; html?: string | true; verbosity?: LogLevel[] }): void {
        this.configService.setJsonReportFile(options.json === true ? "crap-report/crap-report.json" : options.json);
        this.configService.setHtmlReportDir(options.html === true ? "crap-report/html/" : options.html);

        if (options.verbosity != undefined) {
            this.configService.setLogger(options.verbosity);
        }

        if (this.configService.getJsonReportFile() == undefined && this.configService.getHtmlReportDir() == undefined) {
            this.logger.warn("No report will be written. Use --json or --html to specify where to write the report.");
        }
    }