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;
}else{
this.assignment=resp;
}
this.endSubStep('Assignment exists',false);
this.endStep('Assignment exists and is valid',false);
}
/**
* Step 3: dojo_assignment.json file validation
* - Structure validation
* - Immutable files validation (Check if exists and if the given type is correct)
* - Build line validation (for C-derived languages and sonar activated projects)
* @private
*/
privatedojoAssignmentFileValidation(){
...
...
@@ -164,12 +189,22 @@ class AssignmentValidator {
}
this.endSubStep('Immutable files are valid',false);
// Build line validation (only if language is C/CPP/OBJ-C and sonar activated)
if ([Language.c,Language.cpp,Language.objc].includes(this.assignment.language)&&this.assignment.useSonar){
* - 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)