diff --git a/helpers/Dojo/AssignmentValidator.ts b/helpers/Dojo/AssignmentValidator.ts index 0ac4f467433283a5188cdd16ee722e3f91bfad11..818a748eb1fd4d8f6feb053557177e9d42dd230d 100644 --- a/helpers/Dojo/AssignmentValidator.ts +++ b/helpers/Dojo/AssignmentValidator.ts @@ -288,7 +288,7 @@ class AssignmentValidator { } run() { - (async () => { + void (async () => { try { await this.checkRequirements(); diff --git a/helpers/Dojo/ExerciseDockerCompose.ts b/helpers/Dojo/ExerciseDockerCompose.ts index 7b088c6daa90e8298670ebeb8508d2aa31f85972..c76a95e5018aff4bbc4949c97d7560ce9b670ca1 100644 --- a/helpers/Dojo/ExerciseDockerCompose.ts +++ b/helpers/Dojo/ExerciseDockerCompose.ts @@ -60,10 +60,12 @@ class ExerciseDockerCompose { private registerChildProcess(childProcess: ChildProcessWithoutNullStreams, resolve: (value: (number | PromiseLike<number>)) => void, reject: (reason?: unknown) => void, displayable: boolean, rejectIfCodeIsNotZero: boolean) { childProcess.stdout.on('data', data => { + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-call this.log(data.toString(), false, displayable); }); childProcess.stderr.on('data', data => { + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-call this.log(data.toString(), true, displayable); }); @@ -73,7 +75,7 @@ class ExerciseDockerCompose { } run(doDown: boolean = false) { - (async () => { + void (async () => { let containerExitCode: number = -1; const filesOverrideArguments = this.composeFileOverride.map(file => `--file "${ file }"`).join(' '); diff --git a/helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts b/helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts index 08076689a5b96d5155e1968ceb96fe4ed347850d..c27722f4ac0129f0a88009d48e594cacd10dba1e 100644 --- a/helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts +++ b/helpers/Dojo/ExerciseResultsSanitizerAndValidator.ts @@ -27,7 +27,7 @@ class ExerciseResultsSanitizerAndValidator { this.containerExitCode = containerExitCode; } - private async resultsFileSanitization() { + private resultsFileSanitization() { this.events.emit('step', 'RESULTS_FILE_SANITIZATION', 'Sanitizing results file'); if ( this.exerciseResults.success === undefined ) { @@ -57,7 +57,7 @@ class ExerciseResultsSanitizerAndValidator { // Results file content sanitization - await this.resultsFileSanitization(); + this.resultsFileSanitization(); // Results folder size @@ -76,19 +76,14 @@ class ExerciseResultsSanitizerAndValidator { return true; } - private async resultsFileNotProvided(): Promise<boolean> { - await this.resultsFileSanitization(); - return true; - } - run() { - (async () => { + void (async () => { // Results file existence this.events.emit('step', 'CHECK_RESULTS_FILE_EXIST', 'Checking if results file exists'); const resultsFileOriginPath = path.join(this.folderResultsExercise, ClientsSharedConfig.filenames.results); this.resultsFilePath = path.join(this.folderResultsDojo, ClientsSharedConfig.filenames.results); - let result: boolean; + let result: boolean = true; if ( fs.existsSync(resultsFileOriginPath) ) { this.events.emit('endStep', 'CHECK_RESULTS_FILE_EXIST', 'Results file found', false); @@ -102,7 +97,7 @@ class ExerciseResultsSanitizerAndValidator { } else { this.events.emit('endStep', 'CHECK_RESULTS_FILE_EXIST', 'Results file not found', false); - result = await this.resultsFileNotProvided(); + this.resultsFileSanitization(); } if ( result ) {