opencode-sonarqube 1.2.37 → 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 +10 -14
  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}`);
@@ -16869,8 +16869,7 @@ async function generatePropertiesContent(options, config2, directory) {
16869
16869
  "**/*.yaml",
16870
16870
  "**/*.yml"
16871
16871
  ].join(",");
16872
- sourceConfig.push(`sonar.inclusions=${allInclusions}`);
16873
- sourceConfig.push(`sonar.exclusions=${exclusions}`, `sonar.test.inclusions=${getTestPatterns(detection.languages)}`, "", "# Language-Specific Configuration");
16872
+ sourceConfig.push(`sonar.inclusions=${allInclusions}`, `sonar.exclusions=${exclusions}`, `sonar.test.inclusions=${getTestPatterns(detection.languages)}`, "", "# Language-Specific Configuration");
16874
16873
  lines.push(...sourceConfig);
16875
16874
  if (detection.languages.includes("typescript") || detection.languages.includes("javascript")) {
16876
16875
  const tsJsConfig = ["", "# TypeScript/JavaScript"];
@@ -19014,16 +19013,13 @@ async function runAnalysis(config2, state, options, directory) {
19014
19013
  const dir = directory ?? process.cwd();
19015
19014
  const api2 = createSonarQubeAPI(config2, state);
19016
19015
  const projectName = options.projectName ?? options.projectKey;
19017
- const propsFile = Bun.file(`${dir}/sonar-project.properties`);
19018
- if (!await propsFile.exists()) {
19019
- await writePropertiesFile({
19020
- projectKey: options.projectKey,
19021
- projectName,
19022
- sources: options.sources ?? config2.sources,
19023
- tests: options.tests ?? config2.tests,
19024
- exclusions: options.exclusions ?? config2.exclusions
19025
- }, config2, dir);
19026
- }
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);
19027
19023
  const scannerResult = await runScanner(config2, state, {
19028
19024
  projectKey: options.projectKey,
19029
19025
  projectName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sonarqube",
3
- "version": "1.2.37",
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",