Skip to content
Snippets Groups Projects
Commit 59308a71 authored by joel.vonderwe's avatar joel.vonderwe Committed by michael.minelli
Browse files

Fix sonar success bug

parent a4d25ec9
Branches
No related tags found
No related merge requests found
......@@ -313,7 +313,7 @@ class AssignmentValidator {
const runSuccess = SonarAnalyzer.runAnalysis(this.assignment.sonarKey, this.assignment.language, this.assignmentFile.buildLine);
if ( runSuccess ) {
if ( !runSuccess ) {
if ( !this.assignment.allowSonarFailure ) {
this.emitError(`Sonar gate failed`, 'Sonar analysis failure', AssignmentCheckerError.SONAR_ANALYSIS_FAILED);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment