opencode-sonarqube 1.2.17 → 1.2.19
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 +5 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18056,13 +18056,7 @@ class DuplicationsAPI {
|
|
|
18056
18056
|
}
|
|
18057
18057
|
}
|
|
18058
18058
|
// src/api/ce.ts
|
|
18059
|
-
|
|
18060
|
-
var debugLog = (msg) => {
|
|
18061
|
-
try {
|
|
18062
|
-
appendFileSync("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} [ce] ${msg}
|
|
18063
|
-
`);
|
|
18064
|
-
} catch {}
|
|
18065
|
-
};
|
|
18059
|
+
var debugLog = (_msg) => {};
|
|
18066
18060
|
|
|
18067
18061
|
class ComputeEngineAPI {
|
|
18068
18062
|
client;
|
|
@@ -18930,12 +18924,12 @@ function formatIssueBlock(issue2, _number2) {
|
|
|
18930
18924
|
// src/scanner/runner.ts
|
|
18931
18925
|
var logger3 = new Logger("scanner-runner");
|
|
18932
18926
|
function extractTaskId(output) {
|
|
18933
|
-
const taskIdRegex = /api\/ce\/task\?id=(\w+)/;
|
|
18927
|
+
const taskIdRegex = /api\/ce\/task\?id=([\w-]+)/;
|
|
18934
18928
|
const taskIdMatch = taskIdRegex.exec(output);
|
|
18935
18929
|
if (taskIdMatch) {
|
|
18936
18930
|
return taskIdMatch[1];
|
|
18937
18931
|
}
|
|
18938
|
-
const altRegex = /task\s*id(?::|=|\s)\s*(\w+)/i;
|
|
18932
|
+
const altRegex = /task\s*id(?::|=|\s)\s*([\w-]+)/i;
|
|
18939
18933
|
const altMatch = altRegex.exec(output);
|
|
18940
18934
|
return altMatch?.[1];
|
|
18941
18935
|
}
|
|
@@ -20071,7 +20065,7 @@ function getSeveritiesFromLevel(level) {
|
|
|
20071
20065
|
}
|
|
20072
20066
|
|
|
20073
20067
|
// src/index.ts
|
|
20074
|
-
import { readFileSync, writeFileSync
|
|
20068
|
+
import { readFileSync, writeFileSync } from "node:fs";
|
|
20075
20069
|
|
|
20076
20070
|
// src/cli.ts
|
|
20077
20071
|
var CLI_HELP = `
|
|
@@ -20291,10 +20285,7 @@ function shouldIgnoreFile2(filePath) {
|
|
|
20291
20285
|
return IGNORED_FILE_PATTERNS2.some((pattern) => pattern.test(filePath));
|
|
20292
20286
|
}
|
|
20293
20287
|
var SonarQubePlugin = async ({ client, directory, worktree }) => {
|
|
20294
|
-
const safeLog = (
|
|
20295
|
-
appendFileSync2("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} ${msg}
|
|
20296
|
-
`);
|
|
20297
|
-
};
|
|
20288
|
+
const safeLog = (_msg) => {};
|
|
20298
20289
|
const pluginImportUrl = import.meta.url;
|
|
20299
20290
|
const resolveDirectoryFromImportUrl = () => {
|
|
20300
20291
|
try {
|