opencode-sonarqube 1.2.27 → 1.2.28
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 +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20494,7 +20494,7 @@ After fixing, I will re-run the analysis to verify.`;
|
|
|
20494
20494
|
}
|
|
20495
20495
|
};
|
|
20496
20496
|
const qualityGatePattern = /Quality Gate: \[(PASS|FAIL)\] (\w+)/;
|
|
20497
|
-
const issueCountPattern = /Blockers: (\d+), Critical: (\d+), Major: (\d+)/;
|
|
20497
|
+
const issueCountPattern = /Blockers: (\d+), Critical: (\d+), Major: (\d+), Minor: (\d+), Info: (\d+)/;
|
|
20498
20498
|
const parseAnalysisResult = (message) => {
|
|
20499
20499
|
const resultMatch = qualityGatePattern.exec(message);
|
|
20500
20500
|
const issueMatch = issueCountPattern.exec(message);
|
|
@@ -20506,7 +20506,9 @@ After fixing, I will re-run the analysis to verify.`;
|
|
|
20506
20506
|
issues: {
|
|
20507
20507
|
blocker: Number.parseInt(issueMatch[1], 10),
|
|
20508
20508
|
critical: Number.parseInt(issueMatch[2], 10),
|
|
20509
|
-
major: Number.parseInt(issueMatch[3], 10)
|
|
20509
|
+
major: Number.parseInt(issueMatch[3], 10),
|
|
20510
|
+
minor: Number.parseInt(issueMatch[4], 10),
|
|
20511
|
+
info: Number.parseInt(issueMatch[5], 10)
|
|
20510
20512
|
},
|
|
20511
20513
|
timestamp: new Date().toISOString()
|
|
20512
20514
|
};
|
|
@@ -20718,6 +20720,10 @@ Fix these issues before ${operationType === "commit" ? "committing" : "pushing"}
|
|
|
20718
20720
|
return issues.blocker > 0 || issues.critical > 0;
|
|
20719
20721
|
case "MAJOR":
|
|
20720
20722
|
return issues.blocker > 0 || issues.critical > 0 || issues.major > 0;
|
|
20723
|
+
case "MINOR":
|
|
20724
|
+
return issues.blocker > 0 || issues.critical > 0 || issues.major > 0 || issues.minor > 0;
|
|
20725
|
+
case "INFO":
|
|
20726
|
+
return issues.blocker > 0 || issues.critical > 0 || issues.major > 0 || issues.minor > 0 || issues.info > 0;
|
|
20721
20727
|
default:
|
|
20722
20728
|
return issues.blocker > 0 || issues.critical > 0;
|
|
20723
20729
|
}
|