opencode-sonarqube 1.4.0 → 1.4.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19851,6 +19851,7 @@ function createHandlerContext(config3, state, projectKey, directory) {
19851
19851
  }
19852
19852
  // src/tools/handlers/setup.ts
19853
19853
  init_bootstrap();
19854
+ init_detection();
19854
19855
  init_logger();
19855
19856
  import { mkdir } from "node:fs/promises";
19856
19857
  var logger8 = new Logger("sonarqube-handler-setup");
@@ -19866,10 +19867,11 @@ ${result.message}`;
19866
19867
  const configExists = await Bun.file(configPath).exists();
19867
19868
  if (!configExists) {
19868
19869
  await mkdir(sonarqubeDir, { recursive: true });
19870
+ const detectedSources = detectSourceDirectories(directory);
19869
19871
  const defaultConfig = {
19870
19872
  level: config3.level || "enterprise",
19871
19873
  autoAnalyze: true,
19872
- sources: config3.sources || "src",
19874
+ sources: config3.sources || detectedSources,
19873
19875
  newCodeDefinition: "previous_version"
19874
19876
  };
19875
19877
  await Bun.write(configPath, JSON.stringify(defaultConfig, null, 2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sonarqube",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
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",