AutolabJS/autolabcli

View on GitHub

Showing 2 of 4 total issues

Function sendOutput has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const sendOutput = (event) => {
switch (event.name) {
case 'lang_changed':
console.log(chalk.green(`Your submission language has been changed to ${event.details.lang}`));
break;
Severity: Minor
Found in lib/cli/output/prefs.js - About 1 hr to fix

    Function socketEventHandler has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const socketEventHandler = (event, socket, data, callback) => {
    let response;
    switch (event) {
    case 'invalid':
    logger.moduleLog('error', 'Eval Model', 'Invalid options provided.');
    Severity: Minor
    Found in lib/model/eval.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language