opencode-sonarqube 1.2.38 → 1.2.39

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 +9 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16829,8 +16829,8 @@ async function generatePropertiesContent(options, config2, directory) {
16829
16829
  const exclusions = options.exclusions ?? config2?.exclusions ?? getDefaultExclusions(detection);
16830
16830
  const sourceConfig = [
16831
16831
  "",
16832
- "# Source Configuration",
16833
- `sonar.sources=${options.sources ?? config2?.sources ?? "."}`
16832
+ "# Source Configuration - ALWAYS scans entire project",
16833
+ `sonar.sources=.`
16834
16834
  ];
16835
16835
  if (options.tests ?? config2?.tests) {
16836
16836
  sourceConfig.push(`sonar.tests=${options.tests ?? config2?.tests}`);
@@ -19013,16 +19013,13 @@ async function runAnalysis(config2, state, options, directory) {
19013
19013
  const dir = directory ?? process.cwd();
19014
19014
  const api2 = createSonarQubeAPI(config2, state);
19015
19015
  const projectName = options.projectName ?? options.projectKey;
19016
- const propsFile = Bun.file(`${dir}/sonar-project.properties`);
19017
- if (!await propsFile.exists()) {
19018
- await writePropertiesFile({
19019
- projectKey: options.projectKey,
19020
- projectName,
19021
- sources: options.sources ?? config2.sources,
19022
- tests: options.tests ?? config2.tests,
19023
- exclusions: options.exclusions ?? config2.exclusions
19024
- }, config2, dir);
19025
- }
19016
+ await writePropertiesFile({
19017
+ projectKey: options.projectKey,
19018
+ projectName,
19019
+ sources: ".",
19020
+ tests: options.tests ?? config2.tests,
19021
+ exclusions: options.exclusions ?? config2.exclusions
19022
+ }, config2, dir);
19026
19023
  const scannerResult = await runScanner(config2, state, {
19027
19024
  projectKey: options.projectKey,
19028
19025
  projectName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sonarqube",
3
- "version": "1.2.38",
3
+ "version": "1.2.39",
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",