opencode-sonarqube 1.2.28 → 1.2.30
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 +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20662,7 +20662,12 @@ Fix these issues before ${operationType === "commit" ? "committing" : "pushing"}
|
|
|
20662
20662
|
const isGitCommit = (cmd) => /git\s+commit\b/.test(cmd) && !/--amend/.test(cmd);
|
|
20663
20663
|
const isGitPush = (cmd) => /git\s+push\b/.test(cmd);
|
|
20664
20664
|
const processAnalysisResult = async (analysisResult, blockingSeverity, shouldBlock, fixBeforeCommit, autoFix) => {
|
|
20665
|
-
const
|
|
20665
|
+
const issues = analysisResult.issues;
|
|
20666
|
+
safeLog(`[processAnalysisResult] issues=${JSON.stringify(issues)}, blockingSeverity=${blockingSeverity}`);
|
|
20667
|
+
const hasBlockingIssues = checkBlockingIssues(issues, blockingSeverity);
|
|
20668
|
+
safeLog(`[processAnalysisResult] hasBlockingIssues=${hasBlockingIssues}, qualityGate=${analysisResult.qualityGateStatus}`);
|
|
20669
|
+
const passedCheck = analysisResult.qualityGateStatus === "OK" && !hasBlockingIssues;
|
|
20670
|
+
safeLog(`[processAnalysisResult] passedCheck=${passedCheck}, shouldBlock=${shouldBlock}`);
|
|
20666
20671
|
if (passedCheck) {
|
|
20667
20672
|
await showToast("SonarQube: Quality check passed!", "success");
|
|
20668
20673
|
return { block: false };
|