opencode-sonarqube 0.1.10 → 0.1.11
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 +12 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -19219,6 +19219,18 @@ async function bootstrap(options) {
|
|
|
19219
19219
|
appendFileSync("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [BOOTSTRAP] Starting bootstrap directory=${directory} config.projectKey="${config2.projectKey || "(empty)"}"
|
|
19220
19220
|
`);
|
|
19221
19221
|
} catch {}
|
|
19222
|
+
if (!directory || directory === "/" || directory === "." || directory.length < 2) {
|
|
19223
|
+
logger5.error("Invalid directory for bootstrap", { directory });
|
|
19224
|
+
return {
|
|
19225
|
+
success: false,
|
|
19226
|
+
projectKey: "",
|
|
19227
|
+
projectToken: "",
|
|
19228
|
+
qualityGate: "",
|
|
19229
|
+
languages: [],
|
|
19230
|
+
message: `Invalid directory: ${directory}. OpenCode may have passed the wrong working directory.`,
|
|
19231
|
+
isNewProject: false
|
|
19232
|
+
};
|
|
19233
|
+
}
|
|
19222
19234
|
logger5.info("Starting SonarQube bootstrap", { directory });
|
|
19223
19235
|
if (!force) {
|
|
19224
19236
|
const state2 = await loadProjectState(directory);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sonarqube",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "OpenCode Plugin for SonarQube integration - Enterprise-level code quality from the start",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"homepage": "https://github.com/mguttmann/opencode-sonarqube#readme",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@opencode-ai/plugin": "^1.1.34",
|
|
41
|
-
"opencode-sonarqube": "0.1.
|
|
41
|
+
"opencode-sonarqube": "0.1.10",
|
|
42
42
|
"zod": "^3.24.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|