opencode-sonarqube 1.2.43 → 1.2.44
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 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4057,12 +4057,7 @@ var init_types2 = __esm(() => {
|
|
|
4057
4057
|
newCodeDefinition: exports_external2.enum(["previous_version", "number_of_days", "reference_branch", "specific_analysis"]).default("previous_version").describe("How to define 'new code' for analysis"),
|
|
4058
4058
|
sources: exports_external2.string().default("src").describe("Source directories to analyze"),
|
|
4059
4059
|
tests: exports_external2.string().optional().describe("Test directories"),
|
|
4060
|
-
exclusions: exports_external2.string().optional().describe("File exclusion patterns")
|
|
4061
|
-
analyzeBeforeCommit: exports_external2.boolean().default(true).describe("Run analysis before git commit"),
|
|
4062
|
-
blockCommit: exports_external2.boolean().default(false).describe("Block commit if BLOCKER/CRITICAL issues exist"),
|
|
4063
|
-
blockPush: exports_external2.boolean().default(false).describe("Block push if BLOCKER/CRITICAL issues exist"),
|
|
4064
|
-
blockingSeverity: exports_external2.enum(["BLOCKER", "CRITICAL", "MAJOR", "MINOR", "INFO"]).default("CRITICAL").describe("Minimum severity that blocks operations"),
|
|
4065
|
-
fixBeforeCommit: exports_external2.boolean().default(false).describe("Attempt auto-fix before commit")
|
|
4060
|
+
exclusions: exports_external2.string().optional().describe("File exclusion patterns")
|
|
4066
4061
|
});
|
|
4067
4062
|
ProjectStateSchema = exports_external2.object({
|
|
4068
4063
|
projectKey: exports_external2.string(),
|
|
@@ -19581,12 +19576,7 @@ ${result.message}`;
|
|
|
19581
19576
|
autoAnalyze: true,
|
|
19582
19577
|
autoFix: true,
|
|
19583
19578
|
sources: config2.sources || "src",
|
|
19584
|
-
newCodeDefinition: "previous_version"
|
|
19585
|
-
analyzeBeforeCommit: true,
|
|
19586
|
-
blockCommit: true,
|
|
19587
|
-
blockPush: true,
|
|
19588
|
-
blockingSeverity: "CRITICAL",
|
|
19589
|
-
fixBeforeCommit: true
|
|
19579
|
+
newCodeDefinition: "previous_version"
|
|
19590
19580
|
};
|
|
19591
19581
|
await Bun.write(configPath, JSON.stringify(defaultConfig, null, 2));
|
|
19592
19582
|
logger7.info("Created default config.json", { path: configPath });
|
|
@@ -19604,11 +19594,7 @@ ${result.message}`;
|
|
|
19604
19594
|
lines.push(`- Quality Gate: ${result.qualityGate}`);
|
|
19605
19595
|
}
|
|
19606
19596
|
const projectStatusMessage = result.isNewProject ? "A new project was created on your SonarQube server." : "Connected to existing project on SonarQube server.";
|
|
19607
|
-
|
|
19608
|
-
lines.push("", projectStatusMessage, "", 'Run with action: "analyze" to start code analysis.');
|
|
19609
|
-
} else {
|
|
19610
|
-
lines.push("", "**Pre-commit blocking enabled** - commits with critical issues will be blocked.", "", projectStatusMessage, "", 'Run with action: "analyze" to start code analysis.');
|
|
19611
|
-
}
|
|
19597
|
+
lines.push("", projectStatusMessage, "", 'Run with action: "analyze" to start code analysis.');
|
|
19612
19598
|
return lines.join(`
|
|
19613
19599
|
`);
|
|
19614
19600
|
}
|