this.emitError(`The assignment doesn't exist. An assignment must be created with "assignment create" before checking it.`,`Assignment doesn't exists`,AssignmentCheckerError.ASSIGNMENT_MISSING);
this.emitError(`The assignment doesn't exist. An assignment must be created with "assignment create" before checking it.`,`Assignment doesn't exists`,AssignmentCheckerError.ASSIGNMENT_MISSING);
return;
return;
}else{
}else{
this.assignment=resp;
this.assignment=resp;
}
}
this.endSubStep('Assignment exists',false);
this.endStep('Assignment exists and is valid',false);
this.endStep('Assignment exists',false);
}
}
/**
/**
...
@@ -281,7 +285,54 @@ class AssignmentValidator {
...
@@ -281,7 +285,54 @@ class AssignmentValidator {
}
}
/**
/**
* Step 6: Run
* Step 6: Sonar analysis
* - Analyse the project with SonarCube
* @private
*/
privateasyncsonarAnalysis(){
if (this.assignment.useSonar&&this.runSonar){
this.newStep('ASSIGNMENT_SONAR','Please wait while we are running Sonar analysis on the assignment...');
* - Make a run of the assignment (If the return code is 0, the assignment is not valid because it means that there no need of modification for succeed the exercise)
* - Make a run of the assignment (If the return code is 0, the assignment is not valid because it means that there no need of modification for succeed the exercise)