opencode-sonarqube 1.2.34 → 1.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20666,8 +20666,9 @@ Fix these issues before ${operationType === "commit" ? "committing" : "pushing"}
|
|
|
20666
20666
|
safeLog(`[processAnalysisResult] issues=${JSON.stringify(issues)}, blockingSeverity=${blockingSeverity}`);
|
|
20667
20667
|
const hasBlockingIssues = checkBlockingIssues(issues, blockingSeverity);
|
|
20668
20668
|
safeLog(`[processAnalysisResult] hasBlockingIssues=${hasBlockingIssues}, qualityGate=${analysisResult.qualityGateStatus}`);
|
|
20669
|
-
const
|
|
20670
|
-
|
|
20669
|
+
const qgExplicitlyPassed = analysisResult.qualityGateStatus === "OK";
|
|
20670
|
+
const passedCheck = qgExplicitlyPassed && !hasBlockingIssues;
|
|
20671
|
+
safeLog(`[processAnalysisResult] qgStatus=${analysisResult.qualityGateStatus}, qgExplicitlyPassed=${qgExplicitlyPassed}, hasBlockingIssues=${hasBlockingIssues}, passedCheck=${passedCheck}`);
|
|
20671
20672
|
if (passedCheck) {
|
|
20672
20673
|
await showToast("SonarQube: Quality check passed!", "success");
|
|
20673
20674
|
return { block: false };
|