opencode-sonarqube 1.2.4 → 1.2.6
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 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20222,7 +20222,13 @@ function shouldIgnoreFile2(filePath) {
|
|
|
20222
20222
|
return IGNORED_FILE_PATTERNS2.some((pattern) => pattern.test(filePath));
|
|
20223
20223
|
}
|
|
20224
20224
|
var SonarQubePlugin = async ({ client, directory, worktree }) => {
|
|
20225
|
-
const safeLog = (
|
|
20225
|
+
const safeLog = (msg) => {
|
|
20226
|
+
try {
|
|
20227
|
+
const fs = __require("node:fs");
|
|
20228
|
+
fs.appendFileSync("/tmp/sonarqube-plugin-debug.log", `${new Date().toISOString()} ${msg}
|
|
20229
|
+
`);
|
|
20230
|
+
} catch {}
|
|
20231
|
+
};
|
|
20226
20232
|
const pluginImportUrl = import.meta.url;
|
|
20227
20233
|
const resolveDirectoryFromImportUrl = () => {
|
|
20228
20234
|
try {
|
|
@@ -20729,6 +20735,7 @@ Git operation completed with changes. Consider running:
|
|
|
20729
20735
|
}
|
|
20730
20736
|
}, "event"),
|
|
20731
20737
|
"tool.execute.before": safeAsync(async (input, output) => {
|
|
20738
|
+
safeLog(`=== TOOL.EXECUTE.BEFORE HOOK CALLED === tool=${input.tool}`);
|
|
20732
20739
|
if (input.tool === "sonarqube") {
|
|
20733
20740
|
await loadPluginConfig();
|
|
20734
20741
|
}
|